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

Don't enable UpdateAssemblyInfo for SDK-style projects #2183

Merged
merged 1 commit into from Mar 16, 2020
Merged

Don't enable UpdateAssemblyInfo for SDK-style projects #2183

merged 1 commit into from Mar 16, 2020

Conversation

bording
Copy link
Contributor

@bording bording commented Mar 16, 2020

Fixes #2182 by adding a condition disable the target when UsingMicrosoftNETSdk is true.

@bording
Copy link
Contributor Author

bording commented Mar 16, 2020

I believe this also fixes #2181.

Copy link
Member

@arturcic arturcic left a comment

Choose a reason for hiding this comment

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

LGTM!

@arturcic arturcic merged commit 0f10c96 into GitTools:master Mar 16, 2020
@arturcic arturcic modified the milestone: 5.2.4 Mar 16, 2020
@bording bording deleted the fix-updateassemblyinfo branch March 16, 2020 20:30
@batzen
Copy link
Contributor

batzen commented Mar 16, 2020

I haven't tested this but won't this disable the updating completely when using the sdk and having GenerateAssemblyInfo=false? I guess people might want to have the update from gitversiontask. How about some unittests that verify what happens?

@bording
Copy link
Contributor Author

bording commented Mar 16, 2020

@batzen I would say that if you are using the SDK project system, you should be relying on the project system to provide those values. This is how GitVersionTask worked back in 4.x, and it's a bug that it stopped working that way.

If someone has set GenerateAssemblyInfo to false, then I would think you would not want any assembly info generated at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UpdateAssemblyInfo target should not be run for SDK-style projects
3 participants