问题描述
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 (将#修改为@)