Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid restoring net45 targeting pack in Traversal SDK #430

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

ViktorHofer
Copy link
Member

The NoTargets SDK already sets the AutomaticallyUseReferenceAssemblyPackages property to false but the Traversal SDK didn't. As the Traversal SDK defines a default TFM (net45), the reference assembly pack is being downloaded automatically. This shows us as a prebuild in dotnet/runtime and other repositories that build from source.

cc @NikolaMilosavljevic

The NoTargets SDK already sets the AutomaticallyUseReferenceAssemblyPackages property to false but the Traversal SDK didn't. As the Traversal SDK defines a default TFM (net45), the reference assembly pack is being downloaded automatically. This shows us as a prebuild in dotnet/runtime and other repositories that build from source.
@ViktorHofer
Copy link
Member Author

ViktorHofer commented Mar 23, 2023

@jeffkl @AndyGerlicher any idea why CI is failing? Unsure if that's related to my change as it complains about a file not found. I wouldn't expect the current Traversal tests to depend on the .NET Framework reference assemblies.

EDIT: Looks like CI just passed after a retry (?).

@jeffkl
Copy link
Contributor

jeffkl commented Mar 23, 2023

Yeah sorry that's a weird error that MSBuild throws occasionally, I haven't had time to root cause it.

src/Traversal/Sdk/Sdk.props Outdated Show resolved Hide resolved
@jeffkl jeffkl enabled auto-merge (squash) March 23, 2023 20:55
@ViktorHofer
Copy link
Member Author

Omg, sorry for that, I should have tested it locally... Thanks for the fix. After merging the change in, can we please publish a new version to nuget.org?

@jeffkl
Copy link
Contributor

jeffkl commented Mar 23, 2023

After merging the change in, can we please publish a new version to nuget.org?

Yes absolutely, I usually publish a package for every change

@jeffkl jeffkl merged commit 75b3188 into microsoft:main Mar 23, 2023
@ViktorHofer ViktorHofer deleted the patch-5 branch March 24, 2023 09:03
ViktorHofer added a commit to dotnet/runtime that referenced this pull request Mar 24, 2023
Avoids net45 prebuilds in Traversal projects: microsoft/MSBuildSdks#430
akoeplinger pushed a commit to dotnet/runtime that referenced this pull request Mar 24, 2023
Avoids net45 prebuilds in Traversal projects: microsoft/MSBuildSdks#430
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.

2 participants