Skip to content

Commit 9565f24

Browse files
committed
Set explicit publish parameters for self contained apps
1 parent a4f4d90 commit 9565f24

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

Actors/CalculatorActor/build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ popd
66
pushd src\CalculatorActorApplication\CalculatorActor\
77
dotnet restore -s https://api.nuget.org/v3/index.json
88
dotnet build
9-
dotnet publish -o ..\..\..\CalculatorActorApplication\CalculatorActorPkg\Code
9+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\..\CalculatorActorApplication\CalculatorActorPkg\Code
1010
popd
1111

1212
pushd src\CalculatorActorApplication\CalculatorActorTestClient\
1313
dotnet restore -s https://api.nuget.org/v3/index.json
1414
dotnet build
15-
dotnet publish -o ..\..\..\CalculatorActorTestClient
15+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\..\CalculatorActorTestClient
1616
popd

Actors/CalculatorActor/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ cd -
1010
cd src/CalculatorActorApplication/CalculatorActor/
1111
dotnet restore -s https://api.nuget.org/v3/index.json
1212
dotnet build
13-
dotnet publish -o ../../../CalculatorActorApplication/CalculatorActorPkg/Code
13+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../../CalculatorActorApplication/CalculatorActorPkg/Code
1414
cd -
1515

1616
cd src/CalculatorActorApplication/CalculatorActorTestClient/
1717
dotnet restore -s https://api.nuget.org/v3/index.json
1818
dotnet build
19-
dotnet publish -o ../../../CalculatorActorTestClient
19+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../../CalculatorActorTestClient
2020
cd -

Actors/CounterActor/build.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ popd
77
pushd src\CounterActorApplication\CounterActor\
88
dotnet restore -s https://api.nuget.org/v3/index.json
99
dotnet build
10-
dotnet publish -o ..\..\..\CounterActorApplicationCSharp\CounterActorPkg\Code
10+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\..\CounterActorApplicationCSharp\CounterActorPkg\Code
1111
popd
1212

1313
pushd src\CounterActorApplication\CounterActorTestClient\
1414
dotnet restore -s https://api.nuget.org/v3/index.json
1515
dotnet build
16-
dotnet publish -o ..\..\..\CounterActorTestClient
16+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\..\CounterActorTestClient
1717
popd
1818

1919
pushd src\CounterActorApplication\CounterActor.WebService\CounterActorWebService\
2020
dotnet restore -s https://api.nuget.org/v3/index.json
2121
dotnet build
22-
dotnet publish -o ..\..\..\..\CounterActorApplicationCSharp\CounterActorWebServicePkg\Code\
22+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\..\..\CounterActorApplicationCSharp\CounterActorWebServicePkg\Code\
2323
popd

Actors/CounterActor/build.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ cd -
99
cd $DIR/src/CounterActorApplication/CounterActor/
1010
dotnet restore -s https://api.nuget.org/v3/index.json
1111
dotnet build
12-
dotnet publish -o ../../../CounterActorApplicationCSharp/CounterActorPkg/Code
12+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../../CounterActorApplicationCSharp/CounterActorPkg/Code
1313
cd -
1414

1515
cd $DIR/src/CounterActorApplication/CounterActorTestClient/
1616
dotnet restore -s https://api.nuget.org/v3/index.json
1717
dotnet build
18-
dotnet publish -o ../../../CounterActorTestClient
18+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../../CounterActorTestClient
1919
cd -
2020

2121
cd $DIR/src/CounterActorApplication/CounterActor.WebService/CounterActorWebService/
2222
dotnet restore -s https://api.nuget.org/v3/index.json
2323
dotnet build
24-
dotnet publish -o ../../../../CounterActorApplicationCSharp/CounterActorWebServicePkg/Code/
24+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../../../CounterActorApplicationCSharp/CounterActorWebServicePkg/Code/
2525
cd -

Actors/VisualObjects/build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ popd
99
pushd src\VisualObjects.ActorService\
1010
dotnet restore -s https://api.nuget.org/v3/index.json
1111
dotnet build
12-
dotnet publish -o ..\..\VisualObjectsApplicationCSharp\VisualObjects.ActorServicePkg\Code
12+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\VisualObjectsApplicationCSharp\VisualObjects.ActorServicePkg\Code
1313
popd
1414

1515
pushd src\VisualObjects.WebService\
1616
dotnet restore -s https://api.nuget.org/v3/index.json
1717
dotnet build
18-
dotnet publish -o ..\..\VisualObjectsApplicationCSharp\VisualObjects.WebServicePkg\Code
18+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\VisualObjectsApplicationCSharp\VisualObjects.WebServicePkg\Code
1919
popd
2020

2121
cp ApplicationManifest.xml VisualObjectsApplicationCSharp\.

Actors/VisualObjects/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ cd -
1313
cd `dirname $DIR/src/VisualObjects.ActorService/VisualObjects.ActorService.csproj`
1414
dotnet restore -s https://api.nuget.org/v3/index.json
1515
dotnet build
16-
dotnet publish -o ../../VisualObjectsApplicationCSharp/VisualObjects.ActorServicePkg/Code
16+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../VisualObjectsApplicationCSharp/VisualObjects.ActorServicePkg/Code
1717
cd -
1818

1919
cd `dirname $DIR/src/VisualObjects.WebService/VisualObjects.WebService.csproj`
2020
dotnet restore -s https://api.nuget.org/v3/index.json
2121
dotnet build
22-
dotnet publish -o ../..//VisualObjectsApplicationCSharp/VisualObjects.WebServicePkg/Code
22+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../..//VisualObjectsApplicationCSharp/VisualObjects.WebServicePkg/Code
2323
cd -
2424

2525
cp $DIR/ApplicationManifest.xml $DIR/VisualObjectsApplicationCSharp/.

Services/CounterService/build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ popd
66
pushd src\CounterServiceApplication\CounterService\
77
dotnet restore -s https://api.nuget.org/v3/index.json
88
dotnet build
9-
dotnet publish -o ..\..\..\CounterServiceApplication\CounterServicePkg\Code
9+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\..\CounterServiceApplication\CounterServicePkg\Code
1010
popd
1111

1212

1313
pushd src\CounterServiceApplication\CounterService.WebService\CounterServiceWebService\
1414
dotnet restore -s https://api.nuget.org/v3/index.json
1515
dotnet build
16-
dotnet publish -o ..\..\..\..\CounterServiceApplication\CounterServiceWebServicePkg\Code\
16+
dotnet publish -c Release --self-contained --runtime win-x64 -o ..\..\..\..\CounterServiceApplication\CounterServiceWebServicePkg\Code\
1717
popd

Services/CounterService/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ cd -
99
cd $DIR/src/CounterServiceApplication/CounterService/
1010
dotnet restore -s https://api.nuget.org/v3/index.json
1111
dotnet build
12-
dotnet publish -o ../../../CounterServiceApplication/CounterServicePkg/Code
12+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../../CounterServiceApplication/CounterServicePkg/Code
1313
cd -
1414

1515

1616
cd $DIR/src/CounterServiceApplication/CounterService.WebService/CounterServiceWebService/
1717
dotnet restore -s https://api.nuget.org/v3/index.json
1818
dotnet build
19-
dotnet publish -o ../../../../CounterServiceApplication/CounterServiceWebServicePkg/Code/
19+
dotnet publish -c Release --self-contained --runtime linux-x64 -o ../../../../CounterServiceApplication/CounterServiceWebServicePkg/Code/
2020
cd -

0 commit comments

Comments
 (0)