Closed ugumba closed 5 years ago
My apologies.
I was actually missing DotNetCliToolReference in the csproj. I had assumed it was not needed, since the nupkg's .props includes the line, but "dotnet restore" does not seem to look deeper than the .csproj when looking for these references. Further, my "packages/.tools" already contained "dotnet-codegen/0.4.88", so I never needed to restore until I upgraded to 0.5.13.
Once this stuff works, it's brilliant - thanks! Just wish dotnet codegen was quite a bit faster! :-)
Thanks for self-follow-up :)
For me it is still breaking after update to 0.5.13. I also updated the versin in DotNetCliToolReference but have following error:
@ugumba did you do anything else beside update DotNetCliToolReference ?
@bigdnf if you could specify how exactly are you using the DotNetCliToolReference (in which file) it would be helpful. This DotNetCliTool feature is very error-prone and poorly supported via .NET Core SDK, as it turns out.
Like below - it worked with previous version. It was used like this in every csproj.
@bigdnf is cloning https://github.com/jaredthirsk/CodeGeneration.Roslyn.Walkthrough and updating the version in Walkthrough.Foo.csproj
working and building correctly? It's the simplest project possible. Works for me. Maybe there's an issue with .NET Core SDK of yours, or some other thing?
Ok I have it working - I'm not sure what exactly helped but for others with this problem I have
Now it works :)
Umm if you've removed all .NET Core SDKs, it shouldn't actually work, you know. 👀
But I'm happy it works for you now :)
heh yes I missed one point - I installed most resent stable .NET Core SDK
0.5.13 is available on nuget, but upgrading breaks projects which have been working fine with 0.4.88. "dotnet-codegen --version" fails.