C# wix需要一个程序集清单-我有一个
我已经创建了一个C#CustomActions项目,用于wix中创建安装程序。我所拥有的只是示例项目和引用它的示例wix项目。我在C#项目中创建了一个app.manifest 我得到的是:C# wix需要一个程序集清单-我有一个,c#,wix,custom-action,C#,Wix,Custom Action,我已经创建了一个C#CustomActions项目,用于wix中创建安装程序。我所拥有的只是示例项目和引用它的示例wix项目。我在C#项目中创建了一个app.manifest 我得到的是: 1>------ Build started: Project: SetupProject1, Configuration: Debug x86 ------ 1> C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -dDe
1>------ Build started: Project: SetupProject1, Configuration: Debug x86 ------
1> C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -dDebug -d"DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\\" -dSolutionDir=C:\src\WixTest\ -dSolutionExt=.sln -dSolutionFileName=WixTest.sln -dSolutionName=WixTest -dSolutionPath=C:\src\WixTest\WixTest.sln -dConfiguration=Debug -dOutDir=bin\Debug\ -dPlatform=x86 -dProjectDir=C:\src\SetupProject1\ -dProjectExt=.wixproj -dProjectFileName=SetupProject1.wixproj -dProjectName=SetupProject1 -dProjectPath=C:\src\SetupProject1\SetupProject1.wixproj -dTargetDir=C:\src\SetupProject1\bin\Debug\ -dTargetExt=.msi -dTargetFileName=SetupProject1.msi -dTargetName=SetupProject1 -dTargetPath=C:\src\SetupProject1\bin\Debug\SetupProject1.msi -out obj\Debug\ -arch x86 -ext ..\WixTest\bin\Debug\WixTest.CA.dll Product.wxs
1>candle.exe(0,0): error CNDL0144: The extension '..\WixTest\bin\Debug\WixTest.CA.dll' could not be loaded because of the following reason: Could not load file or assembly 'file:///C:\src\WixTest\bin\Debug\WixTest.CA.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
1>Done building project "SetupProject1.wixproj" -- FAILED.
1>
======生成:0成功,1失败,1为最新,0已跳过==========
知道我还需要做什么吗?是的,我看了一下-请试试这个:
WixTestCA
的引用,将WixTest
保留在其中。您不需要直接引用WixTestCA文件。您需要一个项目参考Manufacturer
添加到Custom元素的class='InstallInitialize'
之后,以指示在InstallExecuteSequence中为相关自定义操作安排的时间产品元素
:
<Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="Add Company Name here" UpgradeCode="ADD-VALID-GUID-HERE">
如果您在虚拟机上,则可能缺少运行时。或者它可能是一个路径问题——一个文件夹解析问题。@SteinÅsmul不在虚拟机上,我已经对所有内容进行了三次检查。你能看一下吗?我在问题中提出了示例程序。谢谢
<Custom Action='LicenseInfoCustomAction' After='InstallInitialize'>NOT Installed</Custom>