teach `dotnet new` how to create f# programs
See original GitHub issuedotnet new should also scaffold f# program.
The template is not a problem.
What’s the best way to specify the language?
- command line argument (
--language F#
), defaultc#
? - new command
dotnet-new-fsharp.exe
( likedotnet compile
=>dotnet-compile-fsc.exe
) - new argument
F#
without--language
A personal feedback
make c#
explicit like f#
for new, asking what language use if not specified, is better long term, more dotnet
, less c# dotnet
.
Easier to discover for new user too
Issue Analytics
- State:
- Created 8 years ago
- Comments:18 (15 by maintainers)
Top Results From Across the Web
Get started with F# with command-line tools
Use the dotnet new command to create a class library project in the src folder named Library. ... Run dotnet build to build...
Read more >dotnet new <TEMPLATE> - .NET CLI
The dotnet new command creates new .NET projects based on the specified template.
Read more >.NET Tutorial | Hello World in 5 minutes
Step-by-step instructions and videos for installing .NET and building your first Hello World .NET application. Develop with free tools for Linux, macOS, ...
Read more >NET default templates for dotnet new - .NET CLI
The following table shows the templates that come pre-installed with the .NET SDK. The default language for the template is shown inside the ......
Read more >Tutorial: Create a .NET tool using the .NET CLI
Open a command prompt and create a folder named repository. · Navigate to the repository folder and enter the following command: .NET CLI...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i added
--lang
with dotnet/cli#1027 , so f#/c# works. Btw default it’s c#, but command line it’s pretty for all languages 😄 thx all for feedback.Further improvement ( like
dotnet new fsharp/console
) are discussed in dotnet/cli#655@enricosada the PR here is still in need of rebasing. I’m moving out to RC milestone. Let us know if this can happen today.