dotnet new giraffe fails after latest update
See original GitHub issueFrom @dustinmoris on December 16, 2017 22:27
Steps to reproduce
dotnet new giraffe
or as @cartermp demo’d in his blog post:
dotnet new giraffe -o GiraffeSample
Expected behavior
The CLI should identify that the giraffe
template only supports F# as language and therefore successfully create an F# Giraffe application without asking the user to specify the additional -lang
parameter.
Actual behavior
The command fails and shows help for dotnet new
. This is a regression bug as it worked as expected in previous versions.
Environment data
dotnet --info
output:
.NET Command Line Tools (2.0.3)
Product Information:
Version: 2.0.3
Commit SHA-1 hash: eb1d5ee318
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.0.3/
Microsoft .NET Core Shared Framework Host
Version : 2.0.3
Build : a9190d4a75f4a982ae4b4fa8d1a24526566c69df
Copied from original issue: dotnet/cli#8257
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (3 by maintainers)
Top Results From Across the Web
A dotnet new template for Giraffe web applications.
The dotnet new giraffe command was temporarily broken in certain versions of .NET Core 2.x where all templates with a single supported language...
Read more >Giraffe and AspNetCore.Identity: Error opening Binary File
Although my project starts and works fine, in visual studio code it is constantly stating that I have an error with my module...
Read more >An Updated and Simpler Dotnet New Template for API Projects ...
Funny, I just updated the Giraffe template a few days ago to upgrade my project to netcore 3.1 only to find that it...
Read more >Giraffe Development in 2022
If you dotnet test , it should fail because the tests expects “hello test” instead of “hello world”. However, you have now invoked...
Read more >F# Interactive (dotnet) Reference
Learn how F# Interactive (dotnet fsi) is used to run F# code interactively at the console or to execute F# scripts.
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
Would like to clarify that this affects any template that by default supports any .NET language other than C#. Two immediate examples that come to mind are the templates for Giraffe and the SAFE Stack. Both have dotnet cli templates that at the moment do not work unless the language option for F# is supplied. The Giraffe repo already has two issues related to this: https://github.com/giraffe-fsharp/Giraffe/issues/173, https://github.com/giraffe-fsharp/Giraffe/issues/170.
…also, what is the thinking around letting devs change the default language at the CLI level so that -lang f# or -lang vb gets used automatically and F# and VB devs don’t have to always type out the lang option for multi-lang templates. I think I remember mention of this in the early days, wondering if this is still viable…
Thanks - was evidently confused by SDK vs runtime versions! Glad it’s not something I’m doing wrong…