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

[Bug]: Invalid property error does not appear #9943

Closed
f-alizada opened this issue Mar 28, 2024 · 3 comments
Closed

[Bug]: Invalid property error does not appear #9943

f-alizada opened this issue Mar 28, 2024 · 3 comments
Assignees
Labels

Comments

@f-alizada
Copy link
Contributor

f-alizada commented Mar 28, 2024

Issue Description

When building project and passing the not valid property name from command line, the build does not report the error.
Example of the invocation:
dotnet msbuild .\projectfile.csproj /p:"property name"="property value"

Expected Behavior

The error to be reported 100% of the time.
MSBUILD : error MSB4177: Invalid property. The name "property name" contains an invalid character " ".

Actual Behavior

Some versions do not report the error.
I was not able to repro it via latest main branch.

Todo:

  • Understand the reason why the error not reporting in 17.9.x
  • Check if it is fixed in latest main
  • Add tests to the scenario
@f-alizada f-alizada added the bug label Mar 28, 2024
@AR-May
Copy link
Member

AR-May commented Apr 2, 2024

@Forgind We remember you have had some PR concerning this problem. Do you remember anything about this issue?

@Forgind
Copy link
Member

Forgind commented Apr 2, 2024

I think you're thinking of #9570?

Without checking, that looks like 17.9 or 17.10, so if the problem reproduces in 17.10, we may have a problem.

@f-alizada f-alizada self-assigned this Apr 4, 2024
@f-alizada
Copy link
Contributor Author

@Forgind Thank you! That is what I was trying to find :)
It is not repro in main + 17.10. Closing the issue (duplicated)

@f-alizada f-alizada closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants