Skip to content

Setting IncludeSourceRevisionInInformationalVersion may cause RepositoryUrl assembly attribute to be empty #48580

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

Closed
tmat opened this issue Apr 18, 2025 · 0 comments · Fixed by #48582

Comments

@tmat
Copy link
Member

tmat commented Apr 18, 2025

GetAssemblyAttributes target may execute before InitializeSourceControlInformationFromSourceControlManager,
which results in RepositoryUrl being empty in the generated assembly level attribute:

Image

If design-time build and regular build execute these targets in different order it blocks debugging because Hot Reload will attempt to apply the change to this attribute, which is currently not supported.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Apr 18, 2025
tmat added a commit to tmat/sdk that referenced this issue Apr 18, 2025
tmat added a commit to tmat/sdk that referenced this issue Apr 18, 2025
@dotnet-policy-service dotnet-policy-service bot removed the untriaged Request triage from a team member label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant