Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
dafc26a
Remove old dotnet feeds (#278)
NikolaMilosavljevic May 30, 2023
94ec24e
add review comment to sb files (#279)
oleksandr-didyk Jun 13, 2023
71e82ae
Remove redundant SourceBuildTrimNetFrameworkTargets property (#280)
v-chayan Jun 28, 2023
793f1c8
[main] Update dependencies from dotnet/source-build-externals (#273)
dotnet-maestro[bot] Jul 20, 2023
17d39d5
[main] Update dependencies from dotnet/arcade (#272)
dotnet-maestro[bot] Jul 24, 2023
c71ddd8
Rev nuget package dependencies (#285)
NikolaMilosavljevic Aug 3, 2023
850f61a
Remove sourcelink dependency (#287)
NikolaMilosavljevic Aug 7, 2023
24fb150
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Aug 21, 2023
c2f7c7a
Remove SBRPs from source build prebuilt baseline (#289)
mmitche Aug 22, 2023
783889e
Enable SDL and Binskim (#293)
NikolaMilosavljevic Aug 30, 2023
9950500
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Sep 12, 2023
047ca3b
[main] Update dependencies from dotnet/arcade (#291)
dotnet-maestro[bot] Sep 12, 2023
21dd7ca
[main] Update dependencies from dotnet/source-build-externals (#283)
dotnet-maestro[bot] Sep 12, 2023
311b060
Localized file check-in by OneLocBuild Task: Build definition ID 877:…
dotnet-bot Sep 12, 2023
d386e9e
Update branding for Releases.json library (#277)
joeloff Sep 12, 2023
5957c5c
Remove trimmable setting which is not supported in netstandard2.0 (#294)
MichaelSimons Sep 13, 2023
d360dd3
[main] Update dependencies from dotnet/source-build-externals (#295)
dotnet-maestro[bot] Sep 28, 2023
3a25b8c
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Sep 28, 2023
8babbda
[main] Update dependencies from dotnet/arcade (#297)
dotnet-maestro[bot] Sep 28, 2023
f68f29c
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Oct 9, 2023
327285b
[main] Update dependencies from dotnet/source-build-externals (#298)
dotnet-maestro[bot] Oct 9, 2023
5f7c732
build.cmd: Fix VS2022 setup vars (#239)
julianxhokaxhiu Oct 9, 2023
1d17426
[main] Update dependencies from dotnet/arcade (#300)
dotnet-maestro[bot] Oct 9, 2023
2d72ebe
[main] Update dependencies from dotnet/source-build-externals (#304)
dotnet-maestro[bot] Oct 28, 2023
a87bcdc
[main] Update dependencies from dotnet/arcade (#303)
dotnet-maestro[bot] Oct 28, 2023
a663676
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Oct 28, 2023
2cac697
[main] Update dependencies from dotnet/arcade (#305)
dotnet-maestro[bot] Oct 28, 2023
f290ad2
Update dependencies from https://github.com/dotnet/arcade build 20231…
dotnet-maestro[bot] Oct 28, 2023
eddd01b
[main] Update dependencies from dotnet/arcade (#308)
dotnet-maestro[bot] Nov 12, 2023
1911386
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Nov 12, 2023
0d6c22d
Update README.md (#316)
NikolaMilosavljevic Dec 1, 2023
d831049
Remove Microsoft.SourceBuild.Intermediate from prebuilt baseline (#318)
ellahathaway Dec 11, 2023
dadaa16
[main] Update dependencies from dotnet/arcade (#311)
dotnet-maestro[bot] Dec 11, 2023
b48307d
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Dec 11, 2023
1331c02
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Dec 12, 2023
fdef093
Brand to .NET 9 (#321)
ViktorHofer Dec 12, 2023
1ea5d82
[main] Update dependencies from dotnet/arcade (#323)
dotnet-maestro[bot] Jan 7, 2024
b4f8847
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Jan 7, 2024
e56c69b
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Jan 17, 2024
643a0cb
Update SDK versions (#329)
NikolaMilosavljevic Jan 24, 2024
b27069f
[main] Update dependencies from dotnet/arcade (#327)
dotnet-maestro[bot] Jan 30, 2024
9abdab1
Update to Unified Build controls (#330)
mmitche Feb 1, 2024
e31e233
Move SB metadata to intermediates (#331)
ellahathaway Feb 5, 2024
58b859f
Fix for #275 (#333)
NikolaMilosavljevic Feb 5, 2024
d260974
Fix casing and Subsets (#334)
mmitche Feb 13, 2024
822ff26
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Feb 14, 2024
455fa61
Update NuGetAuthenticate@0 in pipelines (#335)
akoeplinger Feb 15, 2024
ea942a3
[main] Update dependencies from dotnet/arcade (#337)
dotnet-maestro[bot] Mar 11, 2024
8ce6ec7
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Mar 11, 2024
a2dbc39
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Mar 18, 2024
2a7741c
[main] Update dependencies from dotnet/arcade (#342)
dotnet-maestro[bot] Mar 18, 2024
8351133
Clean-up deployment-tools (light version) (#343)
ViktorHofer Mar 18, 2024
2cfbeb3
Fix official build (#345)
ViktorHofer Mar 18, 2024
ee02dbf
Move documentation files into docs root folder (#344)
ViktorHofer Mar 19, 2024
26f1ca0
Update dependencies from https://github.com/dotnet/arcade build (#347)
dotnet-maestro[bot] Mar 19, 2024
c787eef
Clean-up deployment-tools repository (2) (#346)
ViktorHofer Mar 19, 2024
4f2326d
Unify publishing infrastructure (#348)
ViktorHofer Mar 19, 2024
9f396bf
Update EOL versions
richlander Mar 20, 2024
efadcd5
Remove common changes
richlander Mar 20, 2024
35d3ac9
Update to CentOS Stream 9
richlander Mar 20, 2024
e920a74
Merge pull request #350 from dotnet/update-eol-versions
richlander Mar 20, 2024
4876363
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Mar 22, 2024
67be6ac
[main] Update dependencies from dotnet/arcade (#351)
dotnet-maestro[bot] Mar 22, 2024
596a11e
[main] Update dependencies from dotnet/arcade (#353)
dotnet-maestro[bot] Mar 22, 2024
6b80783
1ES pipeline templates (#355)
NikolaMilosavljevic Mar 26, 2024
9645c05
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] May 13, 2024
f7b49fc
[main] Update dependencies from dotnet/arcade (#360)
dotnet-maestro[bot] May 13, 2024
61bb574
Update image names (#364)
NikolaMilosavljevic May 14, 2024
bc9bf8d
Fix for directory not found issue (#365)
jwwise-best May 23, 2024
4017482
Call NuGetAuthenticate after SetupNuGetSources (#367)
mmitche May 29, 2024
d882ae4
Updating calls to GetTempPath in NetCoreCheck to GetTempPath2 (#368)
MSLukeWest Jun 5, 2024
9a36b4a
[main] Update dependencies from dotnet/arcade (#366)
dotnet-maestro[bot] Jun 9, 2024
65074e9
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Jun 9, 2024
a2ed2b4
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Jul 11, 2024
f6b54d8
[main] Update dependencies from dotnet/arcade (#370)
dotnet-maestro[bot] Jul 11, 2024
f9760cb
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Jul 12, 2024
0db0f41
Clean-up deployment-tools and remove unnecessary deps (#373)
ViktorHofer Jul 12, 2024
790d2fd
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Jul 16, 2024
aa4bf29
Remove outdated CredScanSuppressions.json (#378)
akoeplinger Jul 18, 2024
6935df1
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Jul 18, 2024
1f2704f
Downgrade S.T.J to 8.0.3 (#381)
ViktorHofer Jul 23, 2024
cdb868d
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Jul 23, 2024
22e5891
[main] Update dependencies from dotnet/arcade (#379)
dotnet-maestro[bot] Jul 23, 2024
a965349
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Jul 29, 2024
0d42cb4
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Jul 29, 2024
3394535
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Jul 30, 2024
910a00e
Update dependencies from https://github.com/dotnet/arcade build 20240…
dotnet-maestro[bot] Aug 5, 2024
7871ee3
Update Microsoft.Build.Tasks.Core package version to 17.9.5 (#385)
NikolaMilosavljevic Aug 6, 2024
e791f5a
[main] Update dependencies from dotnet/arcade (#389)
dotnet-maestro[bot] Aug 27, 2024
fbf353c
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Aug 27, 2024
57d7bae
Enable Central Package Management and NuGetAudit (#390)
ViktorHofer Aug 27, 2024
3eed993
[main] Update dependencies from dotnet/arcade (#392)
dotnet-maestro[bot] Oct 7, 2024
2ea1c7c
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Oct 7, 2024
f97e9d2
Suppress NuGet audit warning for S.T.J 8.0.4 (#397)
NikolaMilosavljevic Oct 15, 2024
e64c4e7
Update source-build team references (#396)
MichaelSimons Oct 15, 2024
86e48a7
[main] Update dependencies from dotnet/arcade (#395)
dotnet-maestro[bot] Oct 21, 2024
ceda306
Disable native projects (#399)
NikolaMilosavljevic Oct 24, 2024
4d818b1
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Oct 28, 2024
8c18294
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Nov 22, 2024
c302d96
fix dotnet-mage tool documentation link in readme (#403)
leventemihaly Nov 22, 2024
fbff564
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Nov 22, 2024
0cae9f6
[main] Update dependencies from dotnet/arcade (#404)
dotnet-maestro[bot] Nov 22, 2024
e8c3f04
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Nov 25, 2024
973af82
Enable native projects (#406)
NikolaMilosavljevic Nov 26, 2024
33bdfdb
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Dec 2, 2024
27e095c
[main] Update dependencies from dotnet/source-build-reference-package…
dotnet-maestro[bot] Dec 10, 2024
b3f618f
Update dependencies from https://github.com/dotnet/arcade build 20241…
dotnet-maestro[bot] Dec 10, 2024
810fbe4
Update version of System.Text.Json (#412)
NikolaMilosavljevic Dec 11, 2024
095f98f
[main] Update dependencies from dotnet/arcade (#410)
dotnet-maestro[bot] Dec 16, 2024
6a28217
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Dec 16, 2024
04146de
Update MicroBuild plugin to v4 (#415)
ViktorHofer Dec 20, 2024
b947800
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Dec 23, 2024
486e6f1
Update URL for releases-index.json (#419)
joeloff Dec 24, 2024
c7bcd7d
[main] Update dependencies from dotnet/arcade (#417)
dotnet-maestro[bot] Dec 30, 2024
1221f5b
[main] Update dependencies from dotnet/arcade (#420)
dotnet-maestro[bot] Jan 6, 2025
f8e072a
Stabilize 1.0.0 branding (#276)
joeloff May 19, 2023
0e12bac
Update patch version for 1.0.1 release
joeloff Jan 9, 2025
bb649e3
Stabalize version
joeloff Jan 9, 2025
ec00f5e
Force assembly version to 1.0.0.0
joeloff Jan 9, 2025
70f6f3f
Merge CDN101
joeloff Jan 9, 2025
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
12 changes: 0 additions & 12 deletions .config/CredScanSuppressions.json

This file was deleted.

52 changes: 0 additions & 52 deletions .vsconfig

This file was deleted.

60 changes: 28 additions & 32 deletions Build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,38 @@
<PropertyGroup>
<!-- Disable target framework filtering for top level projects -->
<NoTargetFrameworkFiltering>true</NoTargetFrameworkFiltering>

<!-- Disable native projects - see https://github.com/dotnet/deployment-tools/issues/398 -->
<DisableNativeProjects>false</DisableNativeProjects>
</PropertyGroup>

<!--
Subsets are already imported by Directory.Build.props.
Reference the projects for traversal build. Ordering matters here.
-->
<ItemGroup>
<ProjectReference Include="@(ProjectToBuild)" />
<ItemGroup Condition="'$(DotNetBuild)' != 'true'">
<ClickOnceProjectToBuild Include="src/clickonce/**/*.csproj" Pack="true" />
<ClickOnceProjectToBuild Include="src/clickonce/native/build-native.proj" Pack="false" Condition="'$(DisableNativeProjects)' != 'true'"/>
<ProjectReference Include="@(ClickOnceProjectToBuild)"
BuildInParallel="true"
Test="false">
<AdditionalProperties Condition="'$(ClickOnceConfiguration)' != ''">Configuration=$(ClickOnceConfiguration)</AdditionalProperties>
</ProjectReference>

<ProjectReference Include="src/clickonce/NetCoreCheck/*.pkgproj"
Pack="true"
Test="false"
BuildInParallel="false"
Condition="'$(TargetOS)' == 'windows' and '$(DisableNativeProjects)' != 'true'">
<AdditionalProperties Condition="'$(ClickOnceConfiguration)' != ''">Configuration=$(ClickOnceConfiguration)</AdditionalProperties>
</ProjectReference>
</ItemGroup>

<!--
Exclude installer depproj and pkgproj from static graph restore. We restore them below.
Remove when https://github.com/NuGet/Home/issues/9398 is fixed.
-->
<ItemGroup Condition="'$(MSBuildRestoreSessionId)' != ''">
<ProjectReference Remove="@(DepprojProjectToBuild)" />
<ProjectReference Remove="@(PkgprojProjectToBuild)" />
<ProjectReference Remove="@(BundleProjectToBuild)" />
<ItemGroup>
<ProjectReference Include="src/Microsoft.Deployment.DotNet.Releases/src/Microsoft.Deployment.DotNet.Releases.csproj"
Pack="true"
Test="false"
BuildInParallel="true" />
<ProjectReference Include="src/Microsoft.Deployment.DotNet.Releases/tests/Microsoft.Deployment.DotNet.Releases.Tests.csproj"
Pack="false"
Test="true"
BuildInParallel="true" />
</ItemGroup>

<!-- Custom arcade target which isn't available in Microsoft.Build.Traversal. -->
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />

<Import Project="$(RepositoryEngineeringDir)SubsetValidation.targets" />

<Target Name="BuildLocalTasks"
BeforeTargets="Restore">
<MSBuild Projects="$(RepoTasksDir)tasks.proj"
Targets="BuildAndRestoreIncrementally"/>
</Target>

<Target Name="RestoreWithoutStaticGraph"
BeforeTargets="Restore">
<MSBuild Projects="@(DepprojProjectToBuild);@(PkgprojProjectToBuild);@(BundleProjectToBuild)"
Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid());RestoreUseStaticGraphEvaluation=false"
Targets="Restore" />
</Target>

</Project>
12 changes: 0 additions & 12 deletions CHECKLIST.md

This file was deleted.

117 changes: 57 additions & 60 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,54 +1,53 @@
<Project TreatAsLocalProperty="RepoRoot">
<Project>

<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />

<!-- Provides a way to override ClickOnce configuration. -->
<PropertyGroup>
<!--
For non-SDK projects that import this file and then import Microsoft.Common.props,
tell Microsoft.Common.props not to import Directory.Build.props again
-->
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
<ClickOnceConfiguration Condition="'$(ClickOnceConfiguration)' == ''">$(Configuration)</ClickOnceConfiguration>
</PropertyGroup>

<PropertyGroup Label="CalculateTargetOS">
<BuildOS>linux</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOSPlatform('OSX'))">osx</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOSPlatform('FREEBSD'))">freebsd</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOSPlatform('NETBSD'))">netbsd</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOSPlatform('ILLUMOS'))">illumos</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOSPlatform('SOLARIS'))">solaris</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOSPlatform('HAIKU'))">haiku</BuildOS>
<BuildOS Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">windows</BuildOS>
<TargetOS Condition="'$(TargetOS)' == ''">$(BuildOS)</TargetOS>
<HostOS Condition="'$(HostOS)' == ''">$(TargetOS)</HostOS>
</PropertyGroup>

<!--
Import the arcade sdk with these requirements.
After:
Configuration setup
Before:
DebugType needs to be not be set to embedded at least for facades
OutputPath setup
-->
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(SkipImportArcadeSdkFromRoot)' != 'true'" />

<!-- Set these properties early enough for libraries as they import the Arcade SDK not early enough. -->
<PropertyGroup Condition="'$(SkipImportArcadeSdkFromRoot)' == 'true'">
<RepoRoot>$([MSBuild]::EnsureTrailingSlash('$(MSBuildThisFileDirectory)'))</RepoRoot>
<RepositoryEngineeringDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'eng'))</RepositoryEngineeringDir>
<ArtifactsDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'artifacts'))</ArtifactsDir>
<ArtifactsBinDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'bin'))</ArtifactsBinDir>
<ArtifactsObjDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'obj'))</ArtifactsObjDir>

<!-- Create English satellite assemblies (which shouldn't be required, but preserves previous build behavior) -->
<XlfLanguages>en;cs;de;es;fr;it;ja;ko;pl;pt-BR;ru;tr;zh-Hans;zh-Hant</XlfLanguages>

<ErrorOnOutOfDateXlf>true</ErrorOnOutOfDateXlf>
<PropertyGroup Label="CalculateArch">
<!-- Build architecture is what we are building on. -->
<BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)</BuildArchitecture>
<!-- The target architecture is the what the customer is targeting their outputs to run on. -->
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">$(BuildArchitecture)</TargetArchitecture>
<!-- The host architecture is the what the customer will build on. Much of the time, Host==Target. -->
<HostArchitecture Condition="'$(HostArchitecture)' == ''">$(TargetArchitecture)</HostArchitecture>
</PropertyGroup>

<!-- Configuration properties which are needed in both the (isolated) restore and build phases. -->
<Import Project="$(RepositoryEngineeringDir)Configurations.props" />
<PropertyGroup Label="CalculateRID">
<BuildRid Condition="'$(BuildRid)' == '' and '$(MSBuildRuntimeType)' == 'core'">$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier)</BuildRid>
<BuildRid Condition="'$(BuildRid)' == '' and '$(MSBuildRuntimeType)' != 'core'">win-$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant)</BuildRid>

<!--
Get '<subset>Project' items. Using the items lets projects handle
$(Subset) automatically when creating project-to-project dependencies.
-->
<Import Project="$(RepositoryEngineeringDir)Subsets.props" />
<TargetRid Condition="'$(TargetRid)' == ''">$(BuildRid.Substring(0, $(BuildRid.LastIndexOf('-'))))-$(TargetArchitecture)</TargetRid>
<HostRid Condition="'$(HostRid)' == ''">$(TargetRid)</HostRid>

<PropertyGroup>
<!-- Installer specific, required during restore. -->
<InstallerTasksOutputPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'installer.tasks'))</InstallerTasksOutputPath>
<InstallerTasksAssemblyPath Condition="'$(MSBuildRuntimeType)' == 'Core'">$([MSBuild]::NormalizePath('$(InstallerTasksOutputPath)', 'Debug', 'netstandard2.0', 'installer.tasks.dll'))</InstallerTasksAssemblyPath>
<InstallerTasksAssemblyPath Condition="'$(MSBuildRuntimeType)' != 'Core'">$([MSBuild]::NormalizePath('$(InstallerTasksOutputPath)', 'Debug', 'net46', 'installer.tasks.dll'))</InstallerTasksAssemblyPath>
<!-- Source-only builds are non portable, except for cross-builds.
Source-only cross-builds default to the portable configuration so the resulting SDK works on a wider range of distros. -->
<PortableBuild Condition="'$(PortableBuild)' == '' and '$(DotNetBuildSourceOnly)' == 'true' and '$(BuildArchitecture)' == '$(TargetArchitecture)'">false</PortableBuild>
<PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>

<PortableRid Condition="'$(PortableRid)' == '' and '$(TargetOS)' == 'freebsd'">freebsd-$(TargetArchitecture)</PortableRid>
<PortableRid Condition="'$(PortableRid)' == '' and '$(TargetOS)' == 'osx'">osx-$(TargetArchitecture)</PortableRid>
<PortableRid Condition="'$(PortableRid)' == '' and '$(TargetOS)' == 'linux'">linux-$(TargetArchitecture)</PortableRid>
<PortableRid Condition="$(TargetRid.StartsWith('linux-musl')) or $(TargetRid.StartsWith('alpine'))">linux-musl-$(TargetArchitecture)</PortableRid>
<PortableRid Condition="'$(PortableRid)' == '' and '$(TargetOS)' == 'windows'">win-$(TargetArchitecture)</PortableRid>

<DocsDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'docs'))</DocsDir>
<ManPagesDir>$([MSBuild]::NormalizeDirectory('$(DocsDir)', 'manpages'))</ManPagesDir>
<TargetRid Condition="'$(PortableBuild)' == 'true' and '$(PortableRid)' != ''">$(PortableRid)</TargetRid>
</PropertyGroup>

<!-- Packaging properties -->
Expand All @@ -63,33 +62,31 @@
<LicenseUrl>https://github.com/dotnet/deployment-tools/blob/main/LICENSE.TXT</LicenseUrl>
<LicenseFile>$(RepoRoot)LICENSE.TXT</LicenseFile>
<ThirdPartyNoticesFile>$(RepoRoot)THIRD-PARTY-NOTICES.TXT</ThirdPartyNoticesFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

<!-- Indicates this is not an officially supported release. Release branches should set this to false. -->
<!-- Keep it in sync with PRERELEASE in eng/native/configureplatform.cmake -->
<IsPrerelease>true</IsPrerelease>

<!-- Experimental packages should not be stable -->
<SuppressFinalPackageVersion Condition="'$(SuppressFinalPackageVersion)' == '' and $(MSBuildProjectName.Contains('Experimental'))">true</SuppressFinalPackageVersion>
<IsShippingAssembly Condition="$(MSBuildProjectName.Contains('Experimental'))">false</IsShippingAssembly>

<!-- We don't want Private packages to be shipped to NuGet.org -->
<IsShippingPackage Condition="$(MSBuildProjectName.Contains('Private')) and '$(MSBuildProjectExtension)' == '.pkgproj'">false</IsShippingPackage>
</PropertyGroup>

<!-- Language configuration -->
<ItemGroup>
<Content Include="$(LicenseFile)"
Pack="true"
PackagePath="/" />
<Content Include="$(ThirdPartyNoticesFile)"
Pack="true"
PackagePath="/" />
</ItemGroup>

<PropertyGroup>
<!-- Language configuration -->
<Deterministic>true</Deterministic>
</PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

<PropertyGroup>
<!-- Default to portable build if not explicitly set -->
<PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>
<!-- Used for launchSettings.json and runtime config files. -->
<AppDesignerFolder>Properties</AppDesignerFolder>
<!-- Determine what architecture we are building on. -->
<BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
</PropertyGroup>
<CodeAnalysisRuleset>$(RepositoryEngineeringDir)CodeAnalysis.ruleset</CodeAnalysisRuleset>

<Import Project="$(RepositoryEngineeringDir)Analyzers.props" />
<!-- Only upgrade NuGetAudit warnings to errors for official builds. -->
<WarningsNotAsErrors Condition="'$(OfficialBuild)' != 'true'">$(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
</PropertyGroup>

</Project>
31 changes: 21 additions & 10 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
<Project>

<PropertyGroup>
<!--
For non-SDK projects that import this file and then import Microsoft.Common.targets,
tell Microsoft.Common.targets not to import Directory.Build.targets again
-->
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
</PropertyGroup>

<Import Project="$(RepositoryEngineeringDir)python.targets" />
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(SkipImportArcadeSdkFromRoot)' != 'true'" />
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />


<!--
Arcade SDK versioning is defined by static properties in a targets file: work around this by
moving properties based on versioning into a target.
-->
<Target Name="GetProductVersions">
<PropertyGroup>
<IncludePreReleaseLabelInPackageVersion Condition="'$(DotNetFinalVersionKind)' != 'release'">true</IncludePreReleaseLabelInPackageVersion>
<IncludePreReleaseLabelInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludePreReleaseLabelInPackageVersion>
<IncludePreReleaseLabelInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludePreReleaseLabelInPackageVersion>

<ProductVersionSuffix Condition="'$(IncludePreReleaseLabelInPackageVersion)' == 'true'">-$(VersionSuffix)</ProductVersionSuffix>
<ProductBandVersion Condition="'$(ProductBandVersion)' == ''">$(MajorVersion).$(MinorVersion)</ProductBandVersion>
<ProductionVersion Condition="'$(ProductionVersion)' == ''">$(ProductBandVersion).$(PatchVersion)</ProductionVersion>
<ProductVersion>$(ProductionVersion)$(ProductVersionSuffix)</ProductVersion>

<NativeVersion>$(ProductVersion)</NativeVersion>
</PropertyGroup>
</Target>

</Project>
32 changes: 32 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<Project>

<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<!-- Using multiple feeds isn't supported by Maestro: https://github.com/dotnet/arcade/issues/14155. -->
<NoWarn>$(NoWarn);NU1507</NoWarn>
</PropertyGroup>

<ItemGroup>
<!-- MSBuild dependencies -->
<PackageVersion Include="Microsoft.Build.Tasks.Core" Version="17.9.5" />

<!-- Runtime dependencies -->
<PackageVersion Include="System.Security.Cryptography.Xml" Version="8.0.0" />
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
<PackageVersion Include="System.Formats.Asn1" Version="8.0.1" /> <!-- Pin transitive dependency to avoid vulnerable 8.0.0 version. -->
</ItemGroup>

<!-- DotNetBuild overrides needed until https://github.com/dotnet/source-build/issues/4467 is implemented. -->
<ItemGroup>
<PackageVersion Update="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildTasksCoreVersion)" Condition="'$(MicrosoftBuildTasksCoreVersion)' != ''" />
<PackageVersion Update="System.Security.Cryptography.Xml" Version="$(SystemSecurityCryptographyXmlVersion)" Condition="'$(SystemSecurityCryptographyXmlVersion)' != ''" />
<PackageVersion Update="System.Text.Json" Version="$(SystemTextJsonVersion)" Condition="'$(SystemTextJsonVersion)' != ''" />
</ItemGroup>

<!-- Suppress System.Text.Json/8.0.4 advisory as desktop msbuild doesn't yet provide binding redirects for the non-vulnerable version (8.0.5). -->
<ItemGroup>
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-8g4q-xg66-9fp4" />
</ItemGroup>

</Project>
7 changes: 0 additions & 7 deletions Documentation/README.md

This file was deleted.

Loading