Skip to content

Conversation

@zivkan
Copy link
Member

@zivkan zivkan commented Sep 18, 2025

fixes: #50767

In order for nuget to support non-SDK style project pack in Visual Studio, I changed the layout for a bunch of files related to pack. This made it into the SDK via the VMR insertion: dotnet/dotnet#2126

@zivkan
Copy link
Member Author

zivkan commented Sep 18, 2025

When I build locally, I still get NuGet.ProjectModel.dll and all of its dependencies in Sdks\Microsoft.Net.Sdk\tools\net10.0. I don't understand why these files were NOT being copied before my pack changes, as this csproj had a reference to NuGet.ProjectModel for 8 years. I haven't had time to look into binlogs to try to understand why it wasn't being copied before. Removing the package reference causes a compile error.

fyi @marcpopMSFT @DrewScoggins

@zivkan
Copy link
Member Author

zivkan commented Sep 19, 2025

Looks like I forgot to clean the artifacts directory. Doing so and rebuilding locally, I no longer see any of the extra dlls in the tools/net10.0 directory. Ready for review and merge.

@baronfel baronfel requested a review from a team September 19, 2025 17:44
Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

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

It almost seems too simple :-)

It would be nice to eventually have some way of making sure things like this don't accidentally happen again. but this looks good for now.

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