-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ignoring multiple imports #910
Comments
Do you envision this having an effect other than silencing the warning |
Ah, my bad, So yes, it would just silence the warning. [edited the issue] |
|
Sorry, guess I misremembered :) |
You will be able to at least suppress this when I close #68 😄 |
You cannot suppress all warnings, if you specify empty `/warnasmessage` or `/nowarn`, you get an error message. Warnings are mutated into just a message. Ignore the first commit which is the implementation of /WarnAsError Closes #68 Closes #47 Closes #910 So this: ``` MyProject.proj(3,18): warning MSB4130: The condition "true or true and true" may have been evaluated incorrectly in an earlier version of MSBuild. Please verify that the order of the AND and OR clauses is written as intended. To avoid this warning, add parentheses to make the evaluation order explicit. ``` Becomes this in with Verbosity=Detailed ``` MyProject.proj(3,18): message MSB4130: The condition "true or true and true" may have been evaluated incorrectly in an earlier version of MSBuild. Please verify that the order of the AND and OR clauses is written as intended. To avoid this warning, add parentheses to make the evaluation order explicit. ``` Here is the help message for review: ``` /warnasmessage[:code[;code2]] List of warning codes to treats as low importance messages. Use a semicolon or a comma to separate multiple warning codes. (Short form: /nowarn[:c;[c2]]) Example: /warnasmessage:MSB3026 ```
Importing a target/props file multiple times causes a MSB4011 warning. The only mechanism to avoid it is to condition the import to happen only when some property is empty. This places the burden on the importer, and cannot be done for transitive imports.
I propose that a mechanism is added for project files to suppress this warning:
The text was updated successfully, but these errors were encountered: