Skip to content

C#: Change ID of buildless output assembly #15854

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

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

tamasvajk
Copy link
Contributor

@tamasvajk tamasvajk commented Mar 8, 2024

This PR changes the computed ID of the output assembly in buildless mode. The assembly ID typically looks like: 01szix0x.nzd.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, but to compute this, Roslyn needs to process assembly attributes, which might fail on a set of source files that were not meant to be compiled together.

@github-actions github-actions bot added the C# label Mar 8, 2024
@tamasvajk tamasvajk marked this pull request as ready for review March 8, 2024 11:51
@tamasvajk tamasvajk requested a review from a team as a code owner March 8, 2024 11:51
michaelnebel
michaelnebel previously approved these changes Mar 8, 2024
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

LGTM!

@tamasvajk
Copy link
Contributor Author

@michaelnebel I had to push an extra commit to this PR to fix Populate too. The exception that I'm experiencing in DCA happens in assembly.ToString(), so I changed that, and additionally changed the name and version too just to be on the safe side.

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

👍

@tamasvajk tamasvajk merged commit 35a8e7c into github:main Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants