web:
Trap
{
Write-Host $_.Exception.Message;
Continue
};
Connect-ServiceFabricCluster
Remove-ServiceFabricApplicationPackage -ApplicationPackagePathInImageStore coin_web -ImageStoreConnectionString fabric:ImageStore
Remove-ServiceFabricApplication fabric:/Coin_web
Unregister-ServiceFabricApplicationType Coin.SF.WebType 1.0.0
Copy-ServiceFabricApplicationPackage -ApplicationPackagePath 'D:\sfpublish\web' -ApplicationPackagePathInImageStore coin_web -ImageStoreConnectionString fabric:ImageStore -CompressPackage -TimeoutSec 1800
Register-ServiceFabricApplicationType coin_web
Get-ServiceFabricApplicationType
New-ServiceFabricApplication fabric:/Coin_web Coin.SF.WebType 1.0.0
server:
Trap
{
Write-Host $_.Exception.Message;
Continue
};
Connect-ServiceFabricCluster
Remove-ServiceFabricApplicationPackage -ApplicationPackagePathInImageStore coin_serve -ImageStoreConnectionString fabric:ImageStore
Remove-ServiceFabricApplication fabric:/Coin_Server
Unregister-ServiceFabricApplicationType Coin.SFType 1.0.0
Copy-ServiceFabricApplicationPackage -ApplicationPackagePath 'D:\sfpublish\server' -ApplicationPackagePathInImageStore coin_server -ImageStoreConnectionString fabric:ImageStore -CompressPackage -TimeoutSec 1800
Register-ServiceFabricApplicationType coin_server
Get-ServiceFabricApplicationType
New-ServiceFabricApplication fabric:/Coin_Server Coin.SFType 1.0.0
发布方式:
针对整个解决方案,releaseX64,重新生成,打包,压缩(web/server),拷贝217(D:/sfpublic),解压,脚本