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

Enhance MSB4019 message #10938

Merged
merged 8 commits into from
Nov 11, 2024
Merged

Conversation

jrdodds
Copy link
Contributor

@jrdodds jrdodds commented Nov 6, 2024

Fixes #10333

Context

Change the MSB4019 error message (ImportedProjectNotFound) to include the unevaluated value of the Import element's Project attribute.

Changes Made

Changed the error message to use the wording proposed in the issue.
Added the unevaluated value of the Project attribute when the error message is used.
Added a unit test for the MSB4019 error.

Testing

Tested manually with a test project file on Windows and macOS.
Tested by running all unit tests on Windows and macOS.

Notes

The unit test checks that a MSB4019 error is reported and that the unevaluated value is in the error message.

Copy link
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@maridematte maridematte merged commit 963f4a6 into dotnet:main Nov 11, 2024
10 checks passed
@jrdodds jrdodds deleted the jrdodds/ImproveMSB4019 branch November 11, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve MSB4019 to include unevaluated path
3 participants