2013-03-06 63 views
2

我正在開發一個示例,我使用Octopus Deploy在安裝時配置和創建clickonce軟件包,並且在「生產」機器上使用mage.exe時遇到了一些問題。我已經包括mage.exe和mageui.exe,但使用mage.exeMage.exe獨立使用

錯誤,當我得到以下錯誤

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) 

所以我的問題是需要什麼樣的依存關係運行mage.exe,而不安裝.NET Framework SDK?

回答

2

我設法弄清楚使用FUSLOGVW.exe的問題。我已經從.NET Framework 4.5中複製了mage.exe和mageui.exe,默認情況下它並未安裝在Windows 2008 Server中。從.NET 4.0取得法師解決了這個問題。

+0

我一直在研究clickonce腳本,這可能會讓你感興趣。 https://github.com/jonnii/BuildDeploySupport/blob/master/package/tools/deploy/ClickOnce.ps1 – jonnii 2013-03-17 16:23:10

+0

非常棒!我會看一看。我還在bitbucket上創建了一個示例應用程序 - https://bitbucket.org/jnus/clickonceandoctopusdeploy – jaspernygaard 2013-03-19 08:09:49

+0

另外,爲什麼要用octopus創建點擊一次包?我認爲這應該由構建服務器完成。 – jonnii 2013-03-20 00:21:45