Coder Social home page Coder Social logo

Comments (3)

SirUppyPancakes avatar SirUppyPancakes commented on June 27, 2024 1

dotnet/templating#1401
Looks like it's a bug in dotnet.exe and the fix should ship with the .NET Core 2.1.0 full release.

from fable-templates.

SirUppyPancakes avatar SirUppyPancakes commented on June 27, 2024

It seems that specifying F# as the language makes it work:

dotnet new fable -lang F#
dotnet new fable-electron -lang F#

Both of the above work.

Maybe F# is not set as the default for the template? I notice in the list below:

Templates                                         Short Name          Language          Tags
-----------------------------------------------------------------------------------------------------------
Console Application                               console             [C#], F#, VB      Common/Console
Class library                                     classlib            [C#], F#, VB      Common/Library
Simple Fable App                                  fable               F#                Fable
Fable.Template.Electron App                       fable-electron      F#                Fable/Electron
Unit Test Project                                 mstest              [C#], F#, VB      Test/MSTest
xUnit Test Project                                xunit               [C#], F#, VB      Test/xUnit
ASP.NET Core Empty                                web                 [C#], F#          Web/Empty
ASP.NET Core Web App (Model-View-Controller)      mvc                 [C#], F#          Web/MVC
ASP.NET Core Web App                              razor               [C#]              Web/MVC/Razor Pages
ASP.NET Core with Angular                         angular             [C#]              Web/MVC/SPA
ASP.NET Core with React.js                        react               [C#]              Web/MVC/SPA
ASP.NET Core with React.js and Redux              reactredux          [C#]              Web/MVC/SPA
ASP.NET Core Web API                              webapi              [C#], F#          Web/WebAPI
global.json file                                  globaljson                            Config
NuGet Config                                      nugetconfig                           Config
Web Config                                        webconfig                             Config
Solution File                                     sln                                   Solution
Razor Page                                        page                                  Web/ASP.NET
MVC ViewImports                                   viewimports                           Web/ASP.NET
MVC ViewStart                                     viewstart                             Web/ASP.NET

That all of other templates which specify a language mark the default language with [], but the fable templates do not mark F# with this (even though it is the only language). It seems a little silly they wouldn't have the tool pick the only language automatically as the default though, even if it wasn't marked as such :^)

from fable-templates.

alfonsogarciacaro avatar alfonsogarciacaro commented on June 27, 2024

Thanks for the report! Yes, it was a regression in one of the dotnet SDK releases, which is a bit annoying. I hope they fix it quickly :)

from fable-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.