Skip to content

Conversation

@Forgind
Copy link
Contributor

@Forgind Forgind commented Jan 17, 2024

Fixes #12301

Assembly version is easy. File version is best effort, since I didn't see a better way to find the 'real' path to the output assembly than using the paths passed in when calling the task. I don't know if that's guaranteed to be complete, but it at least had what I needed in the simple case I was testing, and if it's missing, it should just not include it rather than failing.

Before:
image

After:
image

The app (12301.csproj in this case) has a ProjectReference to library. This adds the assembly version and file version to that reference in the deps.json.

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Jan 17, 2024
This is only necessary for tests that pretend particular assemblies have been created without actually creating them
Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

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

I would prefer to see a test for this. It would help make it clearer what the change does and make it easier to review.

@Forgind
Copy link
Contributor Author

Forgind commented Feb 1, 2024

This isn't worth a test. I added two screenshots instead.

Copy link
Member

@nagilson nagilson left a comment

Choose a reason for hiding this comment

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

Thank you for this change, it looks good to me! The screenshot was helpful. I would retarget this to 8.0.400 or main before merging, though.

@Forgind
Copy link
Contributor Author

Forgind commented Jun 10, 2024

Thank you for this change, it looks good to me! The screenshot was helpful. I would retarget this to 8.0.400 or main before merging, though.

Good point. I can retarget to 8.0.4xx.

@Forgind Forgind requested review from a team as code owners June 10, 2024 18:58
@Forgind Forgind changed the base branch from release/8.0.3xx to release/8.0.4xx June 10, 2024 18:58
@baronfel baronfel merged commit 3a88ce8 into dotnet:release/8.0.4xx Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants