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

Fix issue with Sentry CLI msbuild properties #2119

Merged
merged 4 commits into from
Jan 17, 2023
Merged

Conversation

mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Jan 17, 2023

After some more testing, I found that the msbuild properties weren't working correctly when Sentry 3.26.0 was imported as a nuget package.

Fixed by:

  • Rename the file to Sentry.targets instead of Sentry.props. This matters as targets files are appended to the end-user's build by Nuget towards the end of evaluation, while props files are placed at the beginning.
  • Set properties that are dependent on other properties within a target, so the evaluation order is deterministic.

Also made some minor formatting improvements.

We'll want to release this as 3.26.1 asap.

@mattjohnsonpint mattjohnsonpint merged commit 48b2f5a into main Jan 17, 2023
@mattjohnsonpint mattjohnsonpint deleted the fix-msbuild branch January 17, 2023 23:01
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.

2 participants