We have upgraded our projects to VS2010 and .NET.4 and there for we are using WiX 3.5.
Creating a new buildserver for our TFS2008 using the above went well using XP however we had to add <buildprojectreferences>True</buildprojectreferences> to the wix2010.targets file.
However creating a buildserver using Windows 7 Enterprise we recieve the following error
C:\Program Files\MSBuild\Microsoft\WiX\v3.5\Wix2010.targets(886,5): error MSB4062: The "AssignProjectConfiguration" task could not be loaded from the assembly Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <usingtask> declaration is correct, and that the assembly and all its dependencies are available.
Done building target "AssignProjectConfiguration" in project "Fls.Framework.EntLibExtension.Install.wixproj" -- FAILED.</usingtask>
Here is content for Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in Fusion log
*** Assembly Binder Log Entry (6/3/2010 @ 10:46:39 AM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = FLS\svc-tfsservice
LOG: DisplayName = Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Windows/Microsoft.NET/Framework/v3.5/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : Microsoft.Build.Engine, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
LOG: Start binding of native image Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
WRN: No matching native image found.
Sorry had set a worong path i MSBuildPath!
You're running MSBuild v3.5 under CLR v2.0, which can't load CLR v4.0 assemblies. However you're starting MSBuild, it needs to be the v4.0 version.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).