Skip to content

Commit 24619b8

Browse files
authored
Merge pull request #20250 from dotnet-maestro-bot/merge/release/3.1-to-master
[automated] Merge branch 'release/3.1' => 'master'
2 parents 9249a95 + f29ddaf commit 24619b8

14 files changed

+30
-10
lines changed

Directory.Build.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@
105105
<SkipTests Condition="'$(SkipHelixReadyTests)' == 'true' AND '$(BuildHelixPayload)' == 'true'">true</SkipTests>
106106
</PropertyGroup>
107107

108+
<PropertyGroup>
109+
<PackageThirdPartyNoticesFile Condition="'$(PackageThirdPartyNoticesFile)' == ''">$(RepoRoot)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
110+
</PropertyGroup>
111+
112+
<ItemGroup Condition="'$(IsPackable)' == 'true'">
113+
<None Include="$(PackageThirdPartyNoticesFile)" Pack="true" PackagePath="." />
114+
</ItemGroup>
115+
108116
<ItemGroup Condition="'$(Language)' == 'C#' AND '$(IsReferenceAssemblyProject)' == 'true'">
109117
<Compile Include="$(SharedSourceRoot)ReferenceAssemblyInfo.cs" LinkBase="Properties" />
110118
</ItemGroup>

eng/Version.Details.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,4 @@
345345
<Sha>c9f2423cb5a2ab1ee8de0ef10e536d7672b1a2ea</Sha>
346346
</Dependency>
347347
</ToolsetDependencies>
348-
</Dependencies>
348+
</Dependencies>

src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<NuspecProperty Include="componentsversion=$(ComponentsPackageVersion)" />
2525
<NuspecProperty Include="razorversion=$(MicrosoftAspNetCoreRazorDesignPackageVersion)" />
2626
<NuspecProperty Include="blazormonoversion=$(MicrosoftAspNetCoreBlazorMonoPackageVersion)" />
27+
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
2728
</ItemGroup>
2829

2930
<ItemGroup>

src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</metadata>
99
<files>
1010
$CommonFileElements$
11-
<file src="..\..\..\THIRD-PARTY-NOTICES.txt" />
11+
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
1212
<file src="build\**" target="build" />
1313
<file src="targets\**" target="targets" />
1414
<file src="$taskskDir$\**" target="tools/" />

src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<NuspecProperty Include="publishDir=$(PublishDir)" />
3535
<NuspecProperty Include="componentsrootdir=..\..\..\" />
3636
<NuspecProperty Include="blazorversion=$(PackageVersion)" />
37+
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
3738
</ItemGroup>
3839

3940
</Project>

src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
$CommonFileElements$
88
<file src="build\**" target="build" />
99
<file src="$publishDir$**\*" target="tools" />
10-
<file src="$componentsrootdir$THIRD-PARTY-NOTICES.txt" target=".\THIRD-PARTY-NOTICES.txt" />
10+
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
1111
</files>
1212
</package>

src/Components/Components/src/Microsoft.AspNetCore.Components.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<NuspecProperty Condition="'$(DotNetBuildFromSource)' != 'true'" Include="systemComponentModelAnnotationsPackageVersion=$(SystemComponentModelAnnotationsPackageVersion)" />
5959
<NuspecProperty Include="AssemblyName=$(AssemblyName)" />
6060
<NuspecProperty Include="OutputPath=$(OutputPath)" />
61+
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
6162
</ItemGroup>
6263

6364
</Project>

src/Components/Components/src/Microsoft.AspNetCore.Components.multitarget.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<file src="$OutputPath$**\$AssemblyName$.dll" target="lib\" />
2222
<file src="$OutputPath$**\$AssemblyName$.pdb" target="lib\" />
2323
<file src="$OutputPath$**\$AssemblyName$.xml" target="lib\" />
24-
<file src="..\..\THIRD-PARTY-NOTICES.txt" target=".\THIRD-PARTY-NOTICES.txt" />
24+
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
2525
</files>
2626
</package>

src/Components/Components/src/Microsoft.AspNetCore.Components.netcoreapp.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
<file src="$OutputPath$**\$AssemblyName$.dll" target="lib\" />
1616
<file src="$OutputPath$**\$AssemblyName$.pdb" target="lib\" />
1717
<file src="$OutputPath$**\$AssemblyName$.xml" target="lib\" />
18-
<file src="..\..\THIRD-PARTY-NOTICES.txt" target=".\THIRD-PARTY-NOTICES.txt" />
18+
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
1919
</files>
2020
</package>

src/Components/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
<!-- So we can use the tool from source within the repo without having to pack -->
2222
<BlazorToolsDir>$(MSBuildThisFileDirectory)Blazor\Build\src\bin\$(Configuration)\$(DefaultNetCoreTargetFramework)\</BlazorToolsDir>
23+
24+
<PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.txt</PackageThirdPartyNoticesFile>
2325
</PropertyGroup>
2426

2527
<PropertyGroup>

src/Components/Directory.Build.targets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
</Target>
2525

2626
<ItemGroup>
27-
<None Include="$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.txt" Pack="true" PackagePath="." />
28-
2927
<!-- Add a project dependency without reference output assemblies to enforce build order -->
3028
<!-- Applying workaround for https://github.com/microsoft/msbuild/issues/2661 and https://github.com/dotnet/sdk/issues/952 -->
3129
<ProjectReference

src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
6767
<!-- There is no way to suppress the .dev.runtimeconfig.json generation. -->
6868
<ProjectRuntimeConfigDevFilePath>$(IntermediateOutputPath)ignoreme.dev.runtimeconfig.json</ProjectRuntimeConfigDevFilePath>
6969

70-
<VersionFileIntermediateOutputPath>$(IntermediateOutputPath).version</VersionFileIntermediateOutputPath>
70+
<VersionFileIntermediateOutputPath>$(IntermediateOutputPath)$(SharedFxName).versions.txt</VersionFileIntermediateOutputPath>
7171

7272
<!-- The project representing the shared framework doesn't produce a .NET assembly or symbols. -->
7373
<DebugType>none</DebugType>
@@ -501,4 +501,13 @@ This package is an internal implementation of the .NET Core SDK and is not meant
501501
</ItemGroup>
502502
</Target>
503503

504+
<Target Name="IncludeVersionFile"
505+
DependsOnTargets="GenerateSharedFxVersionsFiles"
506+
BeforeTargets="_GetPackageFiles">
507+
508+
<ItemGroup>
509+
<None Include="$(VersionFileIntermediateOutputPath)" Pack="true" PackagePath="." />
510+
</ItemGroup>
511+
</Target>
512+
504513
</Project>

src/Framework/test/SharedFxTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void ItContainsValidDepsJson()
131131
[Fact]
132132
public void ItContainsVersionFile()
133133
{
134-
var versionFile = Path.Combine(_sharedFxRoot, ".version");
134+
var versionFile = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.versions.txt");
135135
AssertEx.FileExists(versionFile);
136136
var lines = File.ReadAllLines(versionFile);
137137
Assert.Equal(2, lines.Length);

src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
</GetCurrentProjectStaticWebAssetsDependsOn>
2424

2525
<IdentityUIFrameworkVersion Condition="'$(IdentityUIFrameworkVersion)' == ''">Bootstrap4</IdentityUIFrameworkVersion>
26+
<PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
2627

2728
</PropertyGroup>
2829

@@ -32,7 +33,6 @@
3233
<None Include="build\*" Pack="true" PackagePath="build\" />
3334
<None Include="buildMultiTargeting\*" Pack="true" PackagePath="buildMultiTargeting\" />
3435
<None Include="buildTransitive\*" Pack="true" PackagePath="buildTransitive\" />
35-
<None Include="THIRD-PARTY-NOTICES.txt" Pack="true" PackagePath="/THIRD-PARTY-NOTICES.txt" />
3636
</ItemGroup>
3737

3838
<ItemGroup>

0 commit comments

Comments
 (0)