Move generation of SuggestedBindingRedirects.targets to inner build by ericstj · Pull Request #112379 · dotnet/runtime · GitHub
Skip to content

Move generation of SuggestedBindingRedirects.targets to inner build#112379

Merged
ericstj merged 2 commits into
dotnet:mainfrom
ericstj:ResourcesExtensionsSuggestedRedirectVersion
Feb 12, 2025
Merged

Move generation of SuggestedBindingRedirects.targets to inner build#112379
ericstj merged 2 commits into
dotnet:mainfrom
ericstj:ResourcesExtensionsSuggestedRedirectVersion

Conversation

@ericstj

@ericstj ericstj commented Feb 10, 2025

Copy link
Copy Markdown
Member

Fixes #111892

These targets depend on the AssemblyVersion of the library which is specific to the inner-build of the library. Generate them in the inner-build.

I tried including in the package as part of the inner-build as well but we also have other infrastructure in the outer build that observes targets added to the package, but can only do so if they're added in the outer build.


I can't make that work so long as it runs in the outer build - since NuGet passes items out from inner-build only in a private item (_PackageFiles). Probably I could refactor that to be part of the inner-build but it would be a larger change.

These targets depend on the AssemblyVersion of the library which is
specific to the inner-build of the library.  Generate them in the inner-build.
@ericstj ericstj requested a review from ViktorHofer February 10, 2025 22:50
@ericstj ericstj self-assigned this Feb 10, 2025
@ericstj ericstj marked this pull request as ready for review February 10, 2025 22:51
@ericstj

ericstj commented Feb 10, 2025

Copy link
Copy Markdown
Member Author

We should backport this to servicing as well.

Comment thread src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj Outdated
@ericstj ericstj merged commit 70a577c into dotnet:main Feb 12, 2025
@ericstj

ericstj commented Feb 12, 2025

Copy link
Copy Markdown
Member Author

/backport to release/9.0-staging

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/13290017456

@ericstj

ericstj commented Feb 12, 2025

Copy link
Copy Markdown
Member Author

/backport to release/8.0-staging

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/13290022508

@github-actions

Copy link
Copy Markdown
Contributor

ericstj added a commit to ericstj/runtime that referenced this pull request Feb 12, 2025
…otnet#112379)

* Move generation of SuggestedBindingRedirects.targets to inner build

These targets depend on the AssemblyVersion of the library which is
specific to the inner-build of the library.  Generate them in the inner-build.

* Update src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj
ericstj added a commit that referenced this pull request Feb 19, 2025
…112379) (#112494)

* Move generation of SuggestedBindingRedirects.targets to inner build

These targets depend on the AssemblyVersion of the library which is
specific to the inner-build of the library.  Generate them in the inner-build.

* Update src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.Resources.Extensions 9.0.1 NuGet addresses wrong version in targets file

2 participants