-
Notifications
You must be signed in to change notification settings - Fork 311
/
AfterSolutionBuild.targets
29 lines (23 loc) · 1.17 KB
/
AfterSolutionBuild.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project>
<ItemGroup>
<_PublishProject Include="$(RepoRoot)src\csharp\Microsoft.Spark.Worker\Microsoft.Spark.Worker.csproj" />
</ItemGroup>
<ItemGroup>
<_PublishTarget Include="FullFramework" Framework="net461" RuntimeId="win-x64" />
<_PublishTarget Include="WindowsCore" Framework="netcoreapp3.1" RuntimeId="win-x64" />
<_PublishTarget Include="LinuxCore" Framework="netcoreapp3.1" RuntimeId="linux-x64" />
<_PublishTarget Include="MacOSCore" Framework="netcoreapp3.1" RuntimeId="osx-x64" />
</ItemGroup>
<Target Name="PublishSparkWorker"
AfterTargets="Build"
Condition="'$(PublishSparkWorker)' == 'true'">
<Error Condition="'$(SparkWorkerPublishDir)' == ''"
Text="SparkWorkerPublishDir variable is not set." />
<Exec Command="dotnet publish "@(_PublishProject)" ^
-c $(Configuration) ^
-f %(_PublishTarget.Framework) ^
-r %(_PublishTarget.RuntimeId) ^
-o "$(SparkWorkerPublishDir)\%(_PublishTarget.Framework)\%(_PublishTarget.RuntimeId)" ^
/p:OfficialBuildId=$(OfficialBuildId)" />
</Target>
</Project>