Closed tpetricek closed 4 years ago
Hi Tomas, can you try update dotnet core to 2.2 as Giraffe is now on 2.2
I'll do that - I was expecting everything on this machine to be outdated :-).
In the meantime, renaming giraffee.fsproj
to something else also solves the problem.
In the meantime, renaming giraffee.fsproj to something else also solves the problem.
I have no clue how this is fixing it but good to know !? 🤔
Oh it's because the name of the project file is the same as a dependency which breaks dotnet restore.
Oh it's because the name of the project file is the same as a dependency which breaks dotnet restore.
Ah, good spot, that makes sense
I installed .NET Core 2.2 (info below) and still get the same error.
$ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.2.108
Commit: 33ed5b90ce
The issue is still about recursive reference. Actually, it's not resolved by renaming the project file, but by changing the AssemblyName
in the project file.
I'm really surprised I'm the first one to report this - I'd expect that everyone who creates a new Giraffe project will get this. Or is the recommended way to create project using some parameter that changes the assembly name? In any case, I think changing the assembly name in the template should solve this.
I'm guessing your folder name was Giraffe
.
For reference here's the issue in dotnet about it https://github.com/NuGet/Home/issues/6754
PR LGTM :)
This fix has been released as part of 1.0.0: https://www.nuget.org/packages/giraffe-template/1.0.0
I tried creating a simple project with Giraffe using (in Git bash on Windows):
This fails with:
My .NET version and runtims are: