Versucht man mit msbuild 4 x64 eine Custom Action für den Wix Installer zu kompilieren, endet das meist in folgender Fehlermeldung:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve
this reference. Could not locate the assembly "Microsoft.Deployment.WindowsInstaller, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this
reference is required by your code, you may get compilation errors. [C:\....CustomActi
ons\MyProjectCustomActions.csproj]
Dies liegt daran, dass das Auflösen des Assembly – Pfades nicht funktioniert.
Abhilfe schafft das Eintragen des folgenden Keys in die Registry:
HKLM\Software\Microsoft\.NetFramework\AssemblyFolders\Wix 3.7
Technorati-Markierungen: microsoft,msbuild,windows,visual studio,.net,c#,wix,windows installer framework,error,custom action
Keine Kommentare:
Kommentar veröffentlichen