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 bug with dotnet publish -p:Foo #30265

Merged

Conversation

nagilson
Copy link
Member

@nagilson nagilson commented Feb 1, 2023

Just discovered this on my own testing ... since NET 7 there has been a invalid index exception which occurs when you pack or publish and give an incomplete property key value pair, such as dotnet publish -p:Foo. This fixes said error. In NET 6 it was a no op to do this.

@dsplaisted
Copy link
Member

What happens to a property such as this when it gets to the MSBuild property parsing?

Should we consider this for 7.0 servicing (or at least 7.0.300)?

@nagilson
Copy link
Member Author

nagilson commented Feb 1, 2023

@dsplaisted That's a good question... looks like MSBuild undefines it. I will change this code to account for this. Need to check if ProjectInstance thinks "" is an MSBuildian null. I think we should service in 7.0.300.

src/Cli/dotnet/ReleasePropertyProjectLocator.cs Outdated Show resolved Hide resolved
src/Cli/dotnet/ReleasePropertyProjectLocator.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants