-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 Property Parsing in Publish #28059
Fix Property Parsing in Publish #28059
Conversation
Darwin pipeline failing due to infrastructure issues. Opening PR for review |
src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs
Outdated
Show resolved
Hide resolved
Make parser static again instead of internal Fix last remaining test Squash me
6284cb7
to
df90a9f
Compare
Approved via email |
Co-authored-by: Daniel Plaisted <dsplaisted@gmail.com>
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.
One note, but the rest of it looks completely reasonable to me.
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.
Thanks for following up on that, let's merge this!
Resolves #28022
Backport:
#28061 (please approve this too!)
Post-Moderm:
I intercepted the
MSBuildPropertyParser
code stack too many interface layers in, so for some edge cases, properties passed via/p
and-p
were not fully parsed as it wasn't running through theOptions
Forwarding code. The ones I had tested did get parsed but for example in the above case they weren't fully parsed. Also removes an erroneous comment from the code that was old and slipped in.Risk:
Medium
Reason To Accept:
Fixes a bug which will cause erroneous errors inside of
dotnet publish
. The PublishRelease code will do an MSBuild evaluation with faulty properties which could have any number of side effects, but in general it would be unrelated to what actually gets published. Still, this is high impact and should be merged in.Testing: [OK]
dotnet publish -p:PublishRelease=true -property Configuration=Debug
dotnet publish -p:PublishRelease=true -p Configuration=Debug
Also
dotnet publish -f net7.0
Also
dotnet publish
withPublishRelease
inside of a.csproj