我正在尝试根据我的cruisecontrol.net构建服务器为三个环境(开发,测试和产品)进行部署。
到目前为止,我已经尝试了三个不同的角度,但没有运气:
1)msbuild,target =通过msbuild属性发布,设置网址等。适用于每个部署,但这三个安装不能共存。
2)msbuild,target =发布,通过调用mage.exe覆盖exe.manifest,使用mage.exe进行签名,并使用.deployment进行相同的操作。
3)msbuild,target =重建,'手动'将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