MSBuildLocator icon indicating copy to clipboard operation
MSBuildLocator copied to clipboard

Failure to load NuGet SDKs in dotnet format

Open rainersigwald opened this issue 4 years ago • 1 comments

@rainersigwald Rainer Sigwald FTE if you run the command below

dotnet tool install -g dotnet-format --version 4.0.121404 --add-source https://dotnet.myget.org/F/format/api/v3/index.json

and then run this command over this repo: https://github.com/dotnet/tye

dotnet-format -w tye.sln -v diag

you should get a bin log. Would be very curious to get a second opinion on what is happening here

from https://github.com/dotnet/format/issues/584#issuecomment-614135659

I reproduce with these instructions but haven't dug in.

rainersigwald avatar Apr 16 '20 19:04 rainersigwald

@sharwell Found that the NuGetSdkResolver wouldn't load unless we added a local dependency on Newtonsoft.Json. I'm not yet sure why the AssemblyLoader that we use couldn't resolve it from the SDK folder as it does other MSBuild dependencies.

JoeRobich avatar May 26 '20 22:05 JoeRobich

@rainersigwald , it this issue still relevant? image

YuliiaKovalova avatar Aug 23 '23 15:08 YuliiaKovalova

dotnet format is shipped in the SDK these days, and I've successfully used it on many projects - I'm leaning towards this is probably not relevant anymore.

baronfel avatar Aug 23 '23 15:08 baronfel

Can confirm that we have not had recent reports of this issue.

JoeRobich avatar Aug 24 '23 00:08 JoeRobich

Close as not relevant anymore. Thank you for your responses!

YuliiaKovalova avatar Aug 24 '23 10:08 YuliiaKovalova