-
Notifications
You must be signed in to change notification settings - Fork 773
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
[build] Fix ordering issues with ExposeExperimentalFeatures compiler switch #4828
[build] Fix ordering issues with ExposeExperimentalFeatures compiler switch #4828
Conversation
build/Common.prod.props
Outdated
@@ -59,6 +59,19 @@ | |||
<Message Importance="high" Text="**AssemblyVersionDebug** TargetFramework: $(TargetFramework), MinVerVersion: $(MinVerVersion), MinVerMajor: $(MinVerMajor), MinVerMinor: $(MinVerMinor), MinVerPatch: $(MinVerPatch), MinVerPreRelease: $(MinVerPreRelease), BuildNumber: $(BuildNumber), FileVersion: $(FileVersion), ExposeExperimentalFeatures: $(ExposeExperimentalFeatures)" /> | |||
</Target> | |||
|
|||
<Target Name="ResolveExposeExperimentalFeatures" AfterTargets="MinVer"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be run after AssemblyVersionTarget
?
<Target Name="ResolveExposeExperimentalFeatures" AfterTargets="MinVer"> | |
<Target Name="ResolveExposeExperimentalFeatures" AfterTargets="AssemblyVersionTarget"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had that at first but AssemblyVersionTarget
gets skipped for non-publish builds and we want this section to always run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When publishing builds, is the ordering guaranteed? We don't want this target to be evaluated before AssemblyVersionTarget
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure about that, but I changed it so it now has a DependsOnTargets="AssemblyVersionTarget"
Codecov Report
@@ Coverage Diff @@
## main #4828 +/- ##
=======================================
Coverage 83.93% 83.93%
=======================================
Files 293 293
Lines 11998 11998
=======================================
Hits 10070 10070
Misses 1928 1928 |
Changes
EXPOSE_EXPERIMENTAL_FEATURES
constant is set AFTER the version resolution logic fires