wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
129 stars 24 forks source link

"ResolveWixReferences" task could not be loaded #5428

Closed BerndBunk closed 8 years ago

BerndBunk commented 8 years ago

Bug Report: Since a few days (middle of October) I see this error in all my WiX projects:

C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(735,5): error MSB4062: The "ResolveWixReferences" task could not be loaded from the assembly C:\Program Files (x86)\WiX Toolset v3.10\bin\WixTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. <<<

I see this problem on 3 different Windows 10 VMs, with VS2012 Up5, VS2013 Up5 and VS2015 Up3 all using WiX v3.10.1124.0. I switched to WiX v3.10.3.3007 (latest stable) but that did not fix the issue. Interestingly all my VMs broke at the same time without me changing any source code or anything in Visual Studio. The only thing I did was the weekly Windows Update...

I have seen some older threads in here about that issue in different WiX versions (mainly in 3.11), but all were closed without a clear solution or workaround! And I see this thread for a different project having exactly my issue since 7 days https://github.com/Microsoft/ProtocolTestFramework/issues/18) Coincidence?

Can someone tell me what to change to fix or workaround this issue?

Regards, Bernd

robmen commented 8 years ago

Please fill out the template, it helps us process the issues faster. But anyway:

For support please contact the wix-users mailing list.

It is possible through discussion a specific bug in the WiX Toolset will be uncovered but usually someone can help you find the error in your .wxs code.

IChickenNugget commented 4 years ago

I'm using Wix Toolset v3.10.4.4718. I ran into this issue recently. In my particular case, .NET 3.5 was uninstalled/removed by a Windows update (which was required by Wix).

Others have reported an issue with Windows update removing .NET 3.5 on the Windows forum: Windows 10 update removing .NET 3.5

Reinstalling .NET 3.5 resolved my issue.

dbirthare commented 2 years ago

I am facing exact same error, I tried reinstalling .NET 3.5 and one more solution wix - Error The "ResolveWixReferences" task could not be loaded from the assembly - Stack Overflow I tried but nothing seems to help.

Can someone help me fix this error?