Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Artifacts output for builds #1835

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Unsigned
path: "bin/${{ env.Configuration }}/packages/shipping/*"
path: "artifacts/package/${{ env.Configuration }}/*"

sign:
name: "Sign Package"
Expand Down
12 changes: 4 additions & 8 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<IsShipped>false</IsShipped>
<NoWarn>$(NoWarn);SA0001</NoWarn>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
</PropertyGroup>
Expand All @@ -13,6 +12,10 @@
<!-- We want to use experimental APIs internally -->
<NoWarn>$(NoWarn);OOXML0001;OOXML0002;OOXML0003;OOXML0004</NoWarn>
</PropertyGroup>

<PropertyGroup>
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
</PropertyGroup>

<PropertyGroup>
<IncludeSourceGenerator>false</IncludeSourceGenerator>
Expand Down Expand Up @@ -90,13 +93,6 @@
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)DocumentFormat.OpenXml.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup>
<OutputFullPath>$(MSBuildThisFileDirectory)</OutputFullPath>
<OutputDrop Condition=" '$(OutputDrop)' == '' ">$(OutputFullPath)bin\$(Configuration)\</OutputDrop>
<OutputPath>$(OutputDrop)\$(MSBuildProjectName)\</OutputPath>
<BaseIntermediateOutputPath>$(OutputFullPath)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
</PropertyGroup>

<PropertyGroup>
<IsTestProject Condition=" '$(IsTestProject)' == '' ">false</IsTestProject>
<IsBenchmarkProject Condition=" '$(IsBenchmarkProject)' == '' ">false</IsBenchmarkProject>
Expand Down
5 changes: 1 addition & 4 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,5 @@
</PropertyGroup>
<Import Condition="$(IncludeFrameworkShims)" Project="$(MSBuildThisFileDirectory)src\common\FrameworkShims.targets" />
<Import Condition="$(IncludeSourceGenerator)" Project="$(MSBuildThisFileDirectory)gen\DocumentFormat.OpenXml.Generator\SourceGenerator.targets" />
<PropertyGroup>
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\$(Configuration)\packages\</PackageOutputPath>
<PackageOutputPath Condition="$(IsShipped)">$(PackageOutputPath)shipping\</PackageOutputPath>
</PropertyGroup>

</Project>
9 changes: 9 additions & 0 deletions gen/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />

<PropertyGroup>
<IsPackable>false</IsPackable>
</PropertyGroup>

</Project>
4 changes: 4 additions & 0 deletions gen/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.targets" />
</Project>
4 changes: 2 additions & 2 deletions samples/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="..\Directory.Build.props" />
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>$(SamplesFrameworks)</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsPackable>false</IsPackable>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="..\Directory.Build.props" />
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />

<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
Expand Down
5 changes: 3 additions & 2 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>

<PropertyGroup>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>3.0.0</PackageValidationBaselineVersion>
<PackageValidationBaselineVersion>3.1.1</PackageValidationBaselineVersion>
</PropertyGroup>

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

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

<Import Project="..\Directory.Build.targets" />
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsShipped>true</IsShipped>
<IncludeFrameworkShims>true</IncludeFrameworkShims>
<TargetFrameworks>$(ProductTargetFrameworks)</TargetFrameworks>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsShipped>true</IsShipped>
<NoWarn>$(NoWarn);3003</NoWarn>
<IncludeFrameworkShims>true</IncludeFrameworkShims>
<IsNew>true</IsNew>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsShipped>true</IsShipped>
<TargetFrameworks>$(ProductTargetFrameworks)</TargetFrameworks>
<Summary>Provides additional LINQ functionality to the Open XML SDK.</Summary>
<Description>Provides additional LINQ functionality to the Open XML SDK to allow operations using XLINQ.</Description>
Expand Down
1 change: 0 additions & 1 deletion src/DocumentFormat.OpenXml/DocumentFormat.OpenXml.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsShipped>true</IsShipped>
<NoWarn>$(NoWarn);3003;CS0436</NoWarn>

<!-- For now, we have internal access to the framework assembly. That should be removed, and then we'll need to turn this on. -->
Expand Down
8 changes: 6 additions & 2 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="..\Directory.Build.props" />
</Project>
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />

<PropertyGroup>
<IsPackable>false</IsPackable>
</PropertyGroup>
</Project>
4 changes: 3 additions & 1 deletion test/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Choose>
<When Condition="$(IsTestProject)">
Expand Down Expand Up @@ -36,5 +37,6 @@
<MSBuild Projects="$(MSBuildProjectFile)" Targets="Publish" Properties="TargetFramework=%(_PublishFramework.Identity)" />
</Target>
<Target Name="PublishAll" Condition="$(IsTestProject) OR $(IsBenchmarkProject)" DependsOnTargets="PublishProjectIfFrameworkSet;PublishProjectForAllFrameworksIfFrameworkUnset" />
<Import Project="..\Directory.Build.targets" />

<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.targets" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<NoWarn>$(NoWarn);CA1822</NoWarn>
<IsPackable>false</IsPackable>
<IsBenchmarkProject>true</IsBenchmarkProject>
<!-- These tests don't use the xunit runner, but as an exe -->
<IsTestProject>false</IsTestProject>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
<IncludeFrameworkShims>true</IncludeFrameworkShims>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFrameworks>$(TestTargetFrameworks)</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<TargetFrameworks>$(AssetsTargetFrameworks)</TargetFrameworks>
<NoWarn>$(NoWarn);CA1822;CA1034</NoWarn>
<IsTestProject>false</IsTestProject>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="assets\**\*" />
Expand Down
Loading