Comments (3)
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.
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.
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)
- same issue as isaacabraham on 11 May HOT 2
- dotnet fable --port free -- -p failed HOT 3
- Fable 2 and paket HOT 13
- Should the lock file be included in simple template HOT 14
- Template for dotnet 3.1? HOT 4
- New Electron Template HOT 2
- error FSHARP: This expression was expected to have type 'Cmd<'a>' HOT 4
- missing dotnet-tools.json in template content HOT 3
- Include a "build for production" script in package.json HOT 2
- Include a .gitignore file in the root directory HOT 2
- Should we add Femto to the template? HOT 1
- Templates clash, unable to resolve the template to instantiate. HOT 2
- Using femto with the fable-snowpack template. HOT 1
- Start dotnet compiler in package.json instead of snowpack.config.js HOT 1
- Using the template with yarn HOT 2
- Templates for non-JS languages HOT 2
- Enable debugging fable in vscode HOT 1
- npm start fails due to invalid webpack config HOT 1
- V4 template HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fable-templates.