Microsoft.Windows.UI.Xaml.CSharp.targets was not found - VS17 - Last MRT Build
See original GitHub issueHi, I come to you guys for help because I’ve been trying for some time to get the build portal to work at 100% without much success, I don’t know if it’s a bug or something wrong on my side.
I get the following error while MSBuild runs the command
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe" "C:\Users\PROJECTPATH\UWP\PROJECTNAME.sln" /t:Build /p:Configuration=MASTER /p:Platform=x86
During the generation of an APPX from the solution build with the toolkit. I’m suspecting a path issue/something not installed that I missed, but I can’t find it sadly.
EDIT : I should mention that the files actually does not exist, nor it’s parent folder and that my sln file mentions Visual Studio 2015, that surprises me.
Cheers
Here’s the error :
ows.UI.Xaml.CSharp.targets" was not found. Also, tried to find "Microsoft\WindowsXaml\v15.0\Microsoft.Windows.UI.Xaml.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths a
re defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.
C:\Users\Technoshop_User\Documents\Dev Projects\Unity\GTS_Demo\UWP\GeneratedProjects\UWP\Assembly-CSharp\Assembly-CSharp.csproj(178,11): error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Micros
oft\WindowsXaml\v15.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Also, tried to find "Microsoft\WindowsXaml\v15.0\Microsoft.Windows.UI.Xaml.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (
x86)\MSBuild" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in o
ne of the search paths.
C:\Users\Technoshop_User\Documents\Dev Projects\Unity\GTS_Demo\UWP\GeneratedProjects\UWP\Assembly-CSharp-firstpass\Assembly-CSharp-firstpass.csproj(183,11): error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Build
Tools\MSBuild\Microsoft\WindowsXaml\v15.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Also, tried to find "Microsoft\WindowsXaml\v15.0\Microsoft.Windows.UI.Xaml.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) -
"C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file
exists on disk in one of the search paths.```
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
I’ll be damned, I uninstalled a VS Build Tool version that I installed next to my VS17 installations this morning, and MRTK used VS17 MSBuild ( I just added it too, dunno if related ) and the appx build went AFAIK smoothly. At this point I don’t know if I had very poor look with my environment or if tuts we not explicit enough… But it looks like it’s gonna work. I’ll try to deploy this, I’ll keep you posted.
Thank you so much, this actually works. I have been banging my head on this issue for about a week, only to learn you just have to reinstall the build tool.