Skip to content

Improve MSB4019 to include unevaluated path #10333

@danmoseley

Description

@danmoseley

Example -- I got this

C:\git\aspire-samples\samples\AspireWithJavaScript\AspireJavaScript.Angular\node_modules\lmdb\dependencies\lz4\lib\dll\example\fullbench-dll.vcxproj(28,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.pr
ops" was not found. Confirm that the expression in the Import declaration "\Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.

this originates from this line in the .vcxproj:

<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />

It would be useful to know that $(VCTargetsPath) is evaluating to empty. It takes me a little closer to the problem.

At the point that MSB4019 is emitted, can it access the unevaluated value of the attribute, and include that in the message?

Metadata

Metadata

Assignees

Labels

Area: DebuggabilityIssues impacting the diagnosability of builds, including logging and clearer error messages.Priority:2Work that is important, but not critical for the releasebackloghelp wantedIssues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.triaged

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions