clickonce - Mage.exe 独立使用

标签 clickonce mage octopus-deploy

我正在开发一个示例,我在其中使用 Octopus Deploy 在安装时配置和创建 clickonce 程序包,但我在“生产”机器上使用 mage.exe 时遇到了一些问题。我已经包含了 mage.exe 和 mageui.exe,但是在使用 mage.exe 时出现以下错误

ERROR:

Unhandled Exception: System.TypeLoadException: Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
2013-03-05 20:28:12 INFO     ERROR:    at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount)
2013-03-05 20:28:12 INFO     ERROR:    at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount)
2013-03-05 20:28:12 INFO     ERROR:    at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
2013-03-05 20:28:12 INFO     ERROR:    at System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord)
2013-03-05 20:28:12 INFO     ERROR:    at System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget)
2013-03-05 20:28:12 INFO     ERROR:    at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target)
2013-03-05 20:28:12 INFO     ERROR:    at System.Reflection.RuntimeAssembly.GetCustomAttributesData()
2013-03-05 20:28:12 INFO     ERROR:    at System.Reflection.CustomAttributeData.GetCustomAttributes(Assembly target)
2013-03-05 20:28:12 INFO     ERROR:    at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(Assembly a, UltimateResourceFallbackLocation& fallbackLocation)
2013-03-05 20:28:12 INFO     ERROR:    at System.Resources.ResourceManager.CommonSatelliteAssemblyInit()
2013-03-05 20:28:12 INFO     ERROR:    at System.Resources.ResourceManager..ctor(Type resourceSource)
2013-03-05 20:28:12 INFO     ERROR:    at MageCLI.Application.get_Resources()
2013-03-05 20:28:12 INFO     ERROR:    at MageCLI.Application.InternalError(String message, String stackTrace)
2013-03-05 20:28:12 INFO     ERROR:    at MageCLI.Application.Main(String[] args)

所以我的问题是在不安装 .NET Framework SDK 的情况下运行 mage.exe 需要哪些依赖项?

最佳答案

我设法使用 FUSLOGVW.exe 解决了问题。我已经从 .NET Framework 4.5 中复制了 mage.exe 和 mageui.exe,默认情况下它没有安装在 Windows 2008 Server 中。从 .NET 4.0 获取 mage 解决了这个问题。

关于clickonce - Mage.exe 独立使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15242895/

相关文章:

c# - 如何获取 visual studio 使用的 clickonce 构建脚本来发布我的应用程序

roslyn - Octopack 将 csc.exs 放在双 bin 文件夹中

ClickOnce 应用程序文件下载组

c# - 无需安装即可使用 ClickOnce API

c# - 使用 Apache 服务器的 ClickOnce 更新

.net - Clickonce 签名的应用程序失败并显示 "has a different computed hash than specified in manifest"。法师无法解决问题

php - 添加到 grid.php 文件的网格选择

powershell - 尝试在 octopus 部署中的 powershell 脚本中执行 exe

iis-7.5 - 部署后如何让 IIS 站点自动启动?

.net - ClickOnce仍然是Windows Forms应用程序部署的方法吗?