我试图在我的 Cruisecontrol.net 构建服务器的基础上,让部署适用于三个环境,开发、测试和生产。
到目前为止,我已经尝试了三个不同的角度,但没有运气:
1) msbuild, target=Publish, 通过 msbuild 属性设置 urls 等。每个部署都可以正常工作,但三个安装不能共存。
2) msbuild,target=Publish,通过调用 mage.exe 覆盖 exe.manifest,使用 mage.exe 签名,使用 .deployment 进行同样的操作。
3) msbuild, target=Rebuild, 'manually' 将 debug\bin 内容复制到相关的 app.publish 子文件夹,然后与 2) 中的 mage 进行相同的练习。
下面是应用程序激活时的错误显示和在我的构建服务器上运行的批处理文件(适用于特定的 sprint,但该过程在这里不太有趣)。这有点粗糙,仍在进行中。重建解决方案后运行批处理文件。
关于我可以尝试什么的任何线索?谢谢,安德斯,丹麦
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://dkapp17/rap1d/Dev/Rap1D_Dev_WPF.application resulted in exception. Following failure messages were detected:
+ Downloading http://dkapp17/rap1d/dev/rap1d_wpf.application did not succeed.
+ The remote server returned an error: (404) Not Found.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [26-02-2012 21:16:40] : Activation of http://dkapp17/rap1d/Dev/Rap1D_Dev_WPF.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [26-02-2012 21:16:40] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://dkapp17/rap1d/dev/rap1d_wpf.application did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
还有我的批处理文件
del "c:\Temp_deploy\*.*" /S/Q
del "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\*.*" /S/Q
xcopy c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\*.* "c:\Temp_deploy\Rap1D_WPF_2_0_28_3253\" /S
xcopy "c:\Temp_deploy\Rap1D_WPF_2_0_28_3253\*.*" "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\Application Files\Rap1D_WPF_2_0_28_3253\" /S
C:\ccnet.output\Rap1d-ci\src\3rdParty\Mage\mage -New Application -Processor x86 -ToFile "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\Application Files\Rap1D_WPF_2_0_28_3253\Rap1D1_WPF.exe.manifest" -name "PNRap1D_Dev" -Version "2.0.28.3253" -FromDirectory "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\Application Files\Rap1D_WPF_2_0_28_3253"
C:\ccnet.output\Rap1d-ci\src\3rdParty\Mage\mage -Sign "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\Application Files\Rap1D_WPF_2_0_28_3253\Rap1D1_WPF.exe.manifest" -CertFile c:\ccnet.output\Rap1d-ci\src\Rap1D_WPF\Dev_TempKey.pfx
C:\ccnet.output\Rap1d-ci\src\3rdParty\Mage\mage -New Deployment -Processor x86 -Install true -Publisher Grundfos -ProviderUrl http://dkapp17/rap1d/dev/rap1d_wpf.application -ToFile "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\Rap1D_Dev_WPF.application" -AppManifest "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\Application Files\Rap1D_WPF_2_0_28_3253\Rap1D1_WPF.exe.manifest"
C:\ccnet.output\Rap1d-ci\src\3rdParty\Mage\mage -Sign "c:\ccnet.output\Rap1d-ci\src\Rap1d_WPF\bin\Debug\app.publish\Rap1D_Dev_WPF.application" -CertFile c:\ccnet.output\Rap1d-ci\src\Rap1D_WPF\Dev_TempKey.pfx
pause