Skip to content

Conversation

@JoeRobich
Copy link
Member

No description provided.

<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="System.Collections.Immutable" />
<PackageReference Include="System.Composition" />
<PackageReference Include="System.ValueTuple" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got build warnings that System.ValueTuple was unnecessary and could be removed.

@JoeRobich JoeRobich force-pushed the dev/jorobich/update-sdks branch from d887921 to 21f6d99 Compare March 25, 2025 06:06
@JoeRobich JoeRobich force-pushed the dev/jorobich/update-sdks branch from 641ecb5 to 9d5e790 Compare March 25, 2025 07:31
MicrosoftBuildLocator.RegisterMSBuildPath(instance.MSBuildPath);
// Find and load NuGet assemblies if msbuildPath is in a VS installation. This mimics what
// Microsoft.Build.Locator does when calling RegisterInstance.
var nugetPath = Path.GetFullPath(Path.Combine(instance.MSBuildPath, "..", "..", "..", "Common7", "IDE", "CommonExtensions", "Microsoft", "NuGet"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changed here that made it break on the SDK upgrade?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So kept having runs on Windows where project loading was failing due to a missing NuGet method seeing this issue - dotnet/msbuild#6289. I am certain the circumstances are different but then I looked at msbuildlocator which has this behavior on .NET Framework when calling RegisterInstance. I just copied it over to work here. I can likely remove it, but am deferring until I remove net472 as a build target.

@JoeRobich JoeRobich merged commit 028f592 into master Aug 5, 2025
21 of 22 checks passed
@JoeRobich JoeRobich deleted the dev/jorobich/update-sdks branch August 5, 2025 20:06
JoeRobich added a commit that referenced this pull request Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants