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

Use PackageDownloadAndReference to avoid including msbuild dependencies #75561

Merged
merged 5 commits into from
Oct 23, 2024

Conversation

tmat
Copy link
Member

@tmat tmat commented Oct 18, 2024

No description provided.

@tmat tmat requested a review from a team as a code owner October 18, 2024 20:15
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 18, 2024
@tmat
Copy link
Member Author

tmat commented Oct 18, 2024

@ericstj ptal

@tmat tmat requested a review from a team as a code owner October 18, 2024 20:18
Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

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

Feels like we're missing a feature in NuGet or the SDK somewhere for this...it'll work though!

Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

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

Please double check the package content before and after this change.

One trick I use is

build -pack /p:NuSpecOutputPath=artifacts\specs\before
git checkout myBranch
build -pack /p:NuSpecOutputPath=artifacts\specs\after

Then I diff the folders. While you're at it, also double check the deps file. If you'd like another set of eyes ping me and I'll have a look.

@tmat
Copy link
Member Author

tmat commented Oct 18, 2024

Source build isn't happy :(

@tmat
Copy link
Member Author

tmat commented Oct 18, 2024

Please double check the package content before and after this change.

Yup, I did verify it's the same content (modulo SRM before last commit)

</PropertyGroup>
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">
Copy link
Member

Choose a reason for hiding this comment

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

There's no reason why you need PackageReference for sourcebuild. It should work just the same there.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Would you mind filing an issue? We can remove the condition here once fixed.

Copy link
Member

Choose a reason for hiding this comment

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

I learned that source build isn't really meant to have .NETFramework targets so that might not have been the root cause, but I bet there is something like that - where the SBRP packages differ from the real packages in a way that causes an error


<ItemDefinitionGroup>
<PackageDownloadAndReference>
<Folder>lib/$(TargetFramework)</Folder>
Copy link
Member

Choose a reason for hiding this comment

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

I assume this is guaranteed to be lower case so no need for a defensive ToLowerInvariant() call.

Copy link
Member Author

Choose a reason for hiding this comment

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

We set the TFM, so I'd hope we use lower case.

@tmat tmat enabled auto-merge (squash) October 22, 2024 17:22
@jaredpar jaredpar disabled auto-merge October 23, 2024 19:50
@jaredpar jaredpar merged commit f3348c2 into dotnet:release/dev17.12 Oct 23, 2024
25 of 28 checks passed
@jaredpar
Copy link
Member

Remaining test failure was flaky, merged over it so we can get .NET 9 SDK moving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants