在 TeamCity 中构建 Wix 项目并发送到 Octopus 时 GetAssem 有问题

问题描述

     error MSB4018: The "GetAssemblyVersionInfo" task Failed unexpectedly.
 error MSB4018: System.BadImageFormatException: Could not load file or assembly 'Web.Client.Installer.exe' or one of its dependencies. The module was expected to contain an assembly manifest.
    File name: 'Web.Client.Installer.exe' ---> System.BadImageFormatException: Could not load file or assembly 'Web.Client.Installer.exe' or one of its dependencies. The module was expected to contain an assembly manifest.
    File name: 'Web.Client.Installer.exe'
      
       at System.Reflection.AssemblyName.nGetFileinformation(String s)
       at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
       at OctoPack.Tasks.GetAssemblyVersionInfo.UseAssemblyVersion(FiLeversionInfo info) in C:\buildAgent\work\43311e7383a06d57\source\OctoPack.Tasks\GetAssemblyVersionInfo.cs:line 84
       at OctoPack.Tasks.GetAssemblyVersionInfo.CreateTaskItemFromFiLeversionInfo(String path) in C:\buildAgent\work\43311e7383a06d57\source\OctoPack.Tasks\GetAssemblyVersionInfo.cs:line 62
       at OctoPack.Tasks.GetAssemblyVersionInfo.Execute() in C:\buildAgent\work\43311e7383a06d57\source\OctoPack.Tasks\GetAssemblyVersionInfo.cs:line 39
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecuti

我必须进行 2 个构建步骤,第一步是 .net 构建。它构建良好,没有问题。第二步,上面显示错误。两种配置相似。唯一的区别是:

/p:RunWixToolsOutOfProc=true /p:RunOctoPack=true /p:OctoPackPublishPackagetoHttp=http://server/nuget/packages?replace=true /p:OctoPackPublishApiKey=some_key

理解它找不到exe文件但是我如何告诉teamcity找到这个文件

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...