add publish file

This commit is contained in:
Alexey Bannov 2019-09-10 16:40:33 +03:00
parent c50b5b0fc9
commit 297b91e560

31
build/publish.bat Normal file
View File

@ -0,0 +1,31 @@
echo "Delete publish folder"
del /s /q publish
echo "Publish ASC.Notify.csproj project"
dotnet publish ..\common\services\ASC.Notify\ASC.Notify.csproj -c Release -o publish/ASC.Notify/
if not %errorlevel% == 0 goto end
echo "Publish ASC.People.csproj project"
dotnet publish ..\products\ASC.People\Server\ASC.People.csproj -c Release -o publish/ASC.People/
if not %errorlevel% == 0 goto end
echo "Publish ASC.Studio.Notify.csproj project"
dotnet publish ..\common\services\ASC.Studio.Notify\ASC.Studio.Notify.csproj -c Release -o publish/ASC.Studio.Notify/
if not %errorlevel% == 0 goto end
echo "Publish ASC.Web.Api.csproj project"
dotnet publish ..\web\ASC.Web.Api\ASC.Web.Api.csproj -c Release -o publish/ASC.Web.Studio
if not %errorlevel% == 0 goto end
echo "Publish ASC.Web.Studio.csproj project"
dotnet publish ..\web\ASC.Web.Studio\ASC.Web.Studio.csproj -c Release -o publish/ASC.Web.Studio
if not %errorlevel% == 0 goto end
echo "Publish ASC.People project"
xcopy ..\products\ASC.People\Client\*.* publish\ASC.People.Client\ /E /R /Y
echo "Publish ASC.Web.Client project"
xcopy ..\web\ASC.Web.Client\*.* publish\ASC.Web.Client\ /E /R /Y
:end
pause