From 1040be35882ea9af85c026b6e998911b5d799926 Mon Sep 17 00:00:00 2001 From: William Godbe Date: Fri, 27 Mar 2020 10:15:32 -0700 Subject: [PATCH] Include third-party-notices.txt in all packages (#20166) * Include third-party-notices.txt in all packages * Fix version test filename --- Directory.Build.targets | 8 ++++++++ .../src/Microsoft.AspNetCore.Blazor.Build.csproj | 1 + .../src/Microsoft.AspNetCore.Blazor.Build.nuspec | 2 +- .../src/Microsoft.AspNetCore.Blazor.DevServer.csproj | 1 + .../src/Microsoft.AspNetCore.Blazor.DevServer.nuspec | 2 +- .../src/Microsoft.AspNetCore.Components.csproj | 1 + ...Microsoft.AspNetCore.Components.multitarget.nuspec | 2 +- .../Microsoft.AspNetCore.Components.netcoreapp.nuspec | 2 +- src/Components/Directory.Build.props | 2 ++ src/Components/Directory.Build.targets | 2 -- .../src/Microsoft.AspNetCore.App.Runtime.csproj | 11 ++++++++++- src/Framework/test/SharedFxTests.cs | 2 +- .../UI/src/Microsoft.AspNetCore.Identity.UI.csproj | 2 +- 13 files changed, 29 insertions(+), 9 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index bc8bb5dfc8..94595c4b88 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -104,6 +104,14 @@ true + + $(RepoRoot)THIRD-PARTY-NOTICES.TXT + + + + + + diff --git a/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.csproj b/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.csproj index 2f5b3297f5..93fa3fa9d6 100644 --- a/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.csproj +++ b/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.csproj @@ -23,6 +23,7 @@ + diff --git a/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.nuspec b/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.nuspec index 26ca818d7f..2094d3fc5f 100644 --- a/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.nuspec +++ b/src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.nuspec @@ -8,7 +8,7 @@ $CommonFileElements$ - + diff --git a/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.csproj b/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.csproj index 4749a781ca..53514cf36c 100644 --- a/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.csproj +++ b/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.csproj @@ -33,6 +33,7 @@ + diff --git a/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.nuspec b/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.nuspec index 2f0f6b8479..77df4b791b 100644 --- a/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.nuspec +++ b/src/Components/Blazor/DevServer/src/Microsoft.AspNetCore.Blazor.DevServer.nuspec @@ -7,6 +7,6 @@ $CommonFileElements$ - + diff --git a/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj b/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj index 6bc25e8d43..87960ab55f 100644 --- a/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj +++ b/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj @@ -54,6 +54,7 @@ + diff --git a/src/Components/Components/src/Microsoft.AspNetCore.Components.multitarget.nuspec b/src/Components/Components/src/Microsoft.AspNetCore.Components.multitarget.nuspec index 700ea95fa9..4bd2ba3b7c 100644 --- a/src/Components/Components/src/Microsoft.AspNetCore.Components.multitarget.nuspec +++ b/src/Components/Components/src/Microsoft.AspNetCore.Components.multitarget.nuspec @@ -21,6 +21,6 @@ - + diff --git a/src/Components/Components/src/Microsoft.AspNetCore.Components.netcoreapp.nuspec b/src/Components/Components/src/Microsoft.AspNetCore.Components.netcoreapp.nuspec index 8561bc2f2f..87fb784083 100644 --- a/src/Components/Components/src/Microsoft.AspNetCore.Components.netcoreapp.nuspec +++ b/src/Components/Components/src/Microsoft.AspNetCore.Components.netcoreapp.nuspec @@ -15,6 +15,6 @@ - + diff --git a/src/Components/Directory.Build.props b/src/Components/Directory.Build.props index 02d423b43e..b017bb81ea 100644 --- a/src/Components/Directory.Build.props +++ b/src/Components/Directory.Build.props @@ -16,6 +16,8 @@ $(MSBuildThisFileDirectory)Blazor\Build\src\bin\$(Configuration)\$(DefaultNetCoreTargetFramework)\ + + $(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.txt diff --git a/src/Components/Directory.Build.targets b/src/Components/Directory.Build.targets index b992960cc3..a3eb973629 100644 --- a/src/Components/Directory.Build.targets +++ b/src/Components/Directory.Build.targets @@ -4,8 +4,6 @@ - - $(IntermediateOutputPath)ignoreme.dev.runtimeconfig.json - $(IntermediateOutputPath).version + $(IntermediateOutputPath)$(SharedFxName).versions.txt none @@ -497,4 +497,13 @@ This package is an internal implementation of the .NET Core SDK and is not meant + + + + + + + diff --git a/src/Framework/test/SharedFxTests.cs b/src/Framework/test/SharedFxTests.cs index 2fc09b96b0..558fc34439 100644 --- a/src/Framework/test/SharedFxTests.cs +++ b/src/Framework/test/SharedFxTests.cs @@ -131,7 +131,7 @@ namespace Microsoft.AspNetCore [Fact] public void ItContainsVersionFile() { - var versionFile = Path.Combine(_sharedFxRoot, ".version"); + var versionFile = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.versions.txt"); AssertEx.FileExists(versionFile); var lines = File.ReadAllLines(versionFile); Assert.Equal(2, lines.Length); diff --git a/src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj b/src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj index d803f42f5a..0f37a23a40 100644 --- a/src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj +++ b/src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj @@ -23,6 +23,7 @@ Bootstrap4 + $(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.TXT @@ -32,7 +33,6 @@ -