Skip to content

Commit 936f9e7

Browse files
authored
Use Artifacts output for builds (dotnet#1835)
1 parent 36d5627 commit 936f9e7

File tree

19 files changed

+34
-30
lines changed

19 files changed

+34
-30
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
uses: actions/upload-artifact@v4
9090
with:
9191
name: Unsigned
92-
path: "bin/${{ env.Configuration }}/packages/shipping/*"
92+
path: "artifacts/package/${{ env.Configuration }}/*"
9393

9494
sign:
9595
name: "Sign Package"

Directory.Build.props

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<Project>
33
<PropertyGroup>
44
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5-
<IsShipped>false</IsShipped>
65
<NoWarn>$(NoWarn);SA0001</NoWarn>
76
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
87
</PropertyGroup>
@@ -13,6 +12,10 @@
1312
<!-- We want to use experimental APIs internally -->
1413
<NoWarn>$(NoWarn);OOXML0001;OOXML0002;OOXML0003;OOXML0004</NoWarn>
1514
</PropertyGroup>
15+
16+
<PropertyGroup>
17+
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
18+
</PropertyGroup>
1619

1720
<PropertyGroup>
1821
<IncludeSourceGenerator>false</IncludeSourceGenerator>
@@ -90,13 +93,6 @@
9093
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)DocumentFormat.OpenXml.snk</AssemblyOriginatorKeyFile>
9194
</PropertyGroup>
9295

93-
<PropertyGroup>
94-
<OutputFullPath>$(MSBuildThisFileDirectory)</OutputFullPath>
95-
<OutputDrop Condition=" '$(OutputDrop)' == '' ">$(OutputFullPath)bin\$(Configuration)\</OutputDrop>
96-
<OutputPath>$(OutputDrop)\$(MSBuildProjectName)\</OutputPath>
97-
<BaseIntermediateOutputPath>$(OutputFullPath)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
98-
</PropertyGroup>
99-
10096
<PropertyGroup>
10197
<IsTestProject Condition=" '$(IsTestProject)' == '' ">false</IsTestProject>
10298
<IsBenchmarkProject Condition=" '$(IsBenchmarkProject)' == '' ">false</IsBenchmarkProject>

Directory.Build.targets

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@
2626
</PropertyGroup>
2727
<Import Condition="$(IncludeFrameworkShims)" Project="$(MSBuildThisFileDirectory)src\common\FrameworkShims.targets" />
2828
<Import Condition="$(IncludeSourceGenerator)" Project="$(MSBuildThisFileDirectory)gen\DocumentFormat.OpenXml.Generator\SourceGenerator.targets" />
29-
<PropertyGroup>
30-
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\$(Configuration)\packages\</PackageOutputPath>
31-
<PackageOutputPath Condition="$(IsShipped)">$(PackageOutputPath)shipping\</PackageOutputPath>
32-
</PropertyGroup>
29+
3330
</Project>

gen/Directory.Build.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
4+
5+
<PropertyGroup>
6+
<IsPackable>false</IsPackable>
7+
</PropertyGroup>
8+
9+
</Project>

gen/Directory.Build.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.targets" />
4+
</Project>

samples/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
3-
<Import Project="..\Directory.Build.props" />
3+
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
44

55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
77
<TargetFrameworks>$(SamplesFrameworks)</TargetFrameworks>
8-
<IsPackable>false</IsPackable>
8+
<IsPackable>false</IsPackable>
99
</PropertyGroup>
1010

1111
</Project>

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
3-
<Import Project="..\Directory.Build.props" />
3+
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
44

55
<PropertyGroup>
66
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>

src/Directory.Build.targets

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<Project>
23

34
<PropertyGroup>
45
<EnablePackageValidation>true</EnablePackageValidation>
5-
<PackageValidationBaselineVersion>3.0.0</PackageValidationBaselineVersion>
6+
<PackageValidationBaselineVersion>3.1.1</PackageValidationBaselineVersion>
67
</PropertyGroup>
78

89
<ItemGroup Condition="$(IsFramework)">
@@ -12,5 +13,5 @@
1213

1314
<Import Project="$(MSBuildThisFileDirectory)\PEVerify.targets" />
1415

15-
<Import Project="..\Directory.Build.targets" />
16+
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.targets" />
1617
</Project>

src/DocumentFormat.OpenXml.Features/DocumentFormat.OpenXml.Features.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<IsShipped>true</IsShipped>
54
<IncludeFrameworkShims>true</IncludeFrameworkShims>
65
<TargetFrameworks>$(ProductTargetFrameworks)</TargetFrameworks>
76
</PropertyGroup>

src/DocumentFormat.OpenXml.Framework/DocumentFormat.OpenXml.Framework.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<IsShipped>true</IsShipped>
54
<NoWarn>$(NoWarn);3003</NoWarn>
65
<IncludeFrameworkShims>true</IncludeFrameworkShims>
76
<IsNew>true</IsNew>

0 commit comments

Comments
 (0)