Build/Test Issues

Microsoft.Xaml.Targets, XamlBuildTask

Started by kostek on 7,079 views

Hi
After switching from VS 2015 to 2017 i started having issued while building projects that contain WorkflowFundation files (xaml).

Error:
NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/documentation/troubleshooting_project-build-issues
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Xaml.targets: XC1020: Build error occurred in the XAML MSBuild task: 'Could not load file or assembly 'XamlBuildTask, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'


Repro :
Create test project with workflow foundation files and there you are, it fails to build.

Additional info:
If Xaml files are removed the project builds correctly. It works w/o problems in 2015.

I checked that XamlBuildTask.dll is available in the "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\" but what looks suspicious to me is that the version it searches for "Version=15.0.0.0". That version of the file does no exist and probably shouldn't.

Thanks
M.
Hi,

Thanks for sharing this issue.

It looks like MS introduced a new binding redirection in VS2017 around this DLL. I've just added the redirection to NCrunch and it now seems to work correctly. I've included a fix in the build below:

http://downloads.ncrunch.net/NCrunch_Console_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_Console_3.11.0.7.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.11.0.7.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.11.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.11.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.11.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.11.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.11.0.7.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.11.0.7.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.11.0.7.zip
Works like a charm !

Thx for a very quick solution :)

Great support!

Post a reply

Log in to reply.