You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[8:39 AM] Rainer Sigwald
I have no idea what's going wrong here; please file a bug. I repro but don't know what would cause a silent ignore
[8:40 AM] Rainer Sigwald
changing $(VSToolsPath) to a constant makes it error, as I would expect
[8:40 AM] Rainer Sigwald
ah, there's a clue
[8:40 AM] Rainer Sigwald
we have a fallback from the early Willow days for certain folders
[8:41 AM] Rainer Sigwald
Search paths being used for $(VSToolsPath) are ;$(MSBuildProgramFiles32)\MSBuild\Microsoft\VisualStudio\v$(VisualStudioVersion)
[8:43 AM] Rainer Sigwald
ah, it's because there's no definition for VSToolsPath by default, but we have it in projectImportSearchPaths
[8:43 AM] Rainer Sigwald
we should still error, though, if the fallback doesn't work
[8:43 AM] Rainer Sigwald
so that's a bug
Versions & Configurations
C:\Program Files\Microsoft Visual Studio\2022\Preview>msbuild -version
Microsoft (R) Build Engine version 17.0.0-preview-21317-11+c579afe9c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
17.0.0.31711
The text was updated successfully, but these errors were encountered:
Issue Description
Imports using
$(VSToolsPath)
are ignored by MSBuild. The preprocess step silently comments them out instead of importing the file.Workaround: use an equivalent value (
$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)
works).Steps to Reproduce
Expected Behavior
I expect Microsoft.TextTemplating.targets to be imported.
Actual Behavior
Output from msbuild /pp:
Analysis
Per teams chat:
Versions & Configurations
The text was updated successfully, but these errors were encountered: