Keep building packages that are marked packable (#22616)
This commit is contained in:
parent
7079762008
commit
aeb28d4b83
|
|
@ -8,7 +8,8 @@
|
||||||
|
|
||||||
<!-- If the user has specified that they want to skip building any test related projects with SkipTestBuild,
|
<!-- If the user has specified that they want to skip building any test related projects with SkipTestBuild,
|
||||||
suppress all targets for TestProjects using ExcludeFromBuild. -->
|
suppress all targets for TestProjects using ExcludeFromBuild. -->
|
||||||
<ExcludeFromBuild Condition="'$(SkipTestBuild)' == 'true' and
|
<ExcludeFromBuild Condition="'$(IsPackable)' != 'true' and
|
||||||
|
'$(SkipTestBuild)' == 'true' and
|
||||||
('$(IsTestProject)' == 'true' or
|
('$(IsTestProject)' == 'true' or
|
||||||
'$(IsUnitTestProject)' == 'true' or
|
'$(IsUnitTestProject)' == 'true' or
|
||||||
'$(IsTestAssetProject)' == 'true' or
|
'$(IsTestAssetProject)' == 'true' or
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
|
||||||
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
||||||
|
<IsPackable>true</IsPackable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
|
||||||
|
|
||||||
<!-- Define Target overrides after importing Directory.Build.targets so these don't get overridden -->
|
<!-- Define Target overrides after importing Directory.Build.targets so these don't get overridden -->
|
||||||
<Target Name="Pack" DependsOnTargets="$(PackDependsOn)" Condition="'$(IsPackable)' == 'true' and '$(SkipTestBuild)' != 'true'">
|
<Target Name="Pack" DependsOnTargets="$(PackDependsOn)" Condition="'$(IsPackable)' == 'true'">
|
||||||
<Telemetry EventName="NETCORE_ENGINEERING_TELEMETRY" EventData="Category=Pack" />
|
<Telemetry EventName="NETCORE_ENGINEERING_TELEMETRY" EventData="Category=Pack" />
|
||||||
<Message Text="> gradlew $(GradleOptions) createPackage" Importance="high" />
|
<Message Text="> gradlew $(GradleOptions) createPackage" Importance="high" />
|
||||||
<Exec Command="./gradlew $(GradleOptions) createPackage" />
|
<Exec Command="./gradlew $(GradleOptions) createPackage" />
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
<Copy SourceFiles="build\libs\%(JavaBuildFiles.Identity)" DestinationFolder="$(PackageOutputPath)" />
|
<Copy SourceFiles="build\libs\%(JavaBuildFiles.Identity)" DestinationFolder="$(PackageOutputPath)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="Build" Condition="'$(SkipTestBuild)' != 'true'">
|
<Target Name="Build">
|
||||||
<Telemetry EventName="NETCORE_ENGINEERING_TELEMETRY" EventData="Category=Build" />
|
<Telemetry EventName="NETCORE_ENGINEERING_TELEMETRY" EventData="Category=Build" />
|
||||||
<Exec Command="./gradlew $(GradleOptions) compileJava" />
|
<Exec Command="./gradlew $(GradleOptions) compileJava" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue