Include third-party-notices.txt in all packages (#20166)
* Include third-party-notices.txt in all packages * Fix version test filename
This commit is contained in:
parent
68908b5b26
commit
1040be3588
|
|
@ -104,6 +104,14 @@
|
||||||
<BuildHelixPayload Condition="'$(BuildHelixPayload)' == '' AND '$(IsTestProject)' == 'true'">true</BuildHelixPayload>
|
<BuildHelixPayload Condition="'$(BuildHelixPayload)' == '' AND '$(IsTestProject)' == 'true'">true</BuildHelixPayload>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<PackageThirdPartyNoticesFile Condition="'$(PackageThirdPartyNoticesFile)' == ''">$(RepoRoot)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition="'$(IsPackable)' == 'true'">
|
||||||
|
<None Include="$(PackageThirdPartyNoticesFile)" Pack="true" PackagePath="." />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(Language)' == 'C#' AND '$(IsReferenceAssemblyProject)' == 'true'">
|
<ItemGroup Condition="'$(Language)' == 'C#' AND '$(IsReferenceAssemblyProject)' == 'true'">
|
||||||
<Compile Include="$(SharedSourceRoot)ReferenceAssemblyInfo.cs" LinkBase="Properties" />
|
<Compile Include="$(SharedSourceRoot)ReferenceAssemblyInfo.cs" LinkBase="Properties" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
<NuspecProperty Include="componentsversion=$(ComponentsPackageVersion)" />
|
<NuspecProperty Include="componentsversion=$(ComponentsPackageVersion)" />
|
||||||
<NuspecProperty Include="razorversion=$(MicrosoftAspNetCoreRazorDesignPackageVersion)" />
|
<NuspecProperty Include="razorversion=$(MicrosoftAspNetCoreRazorDesignPackageVersion)" />
|
||||||
<NuspecProperty Include="blazormonoversion=$(MicrosoftAspNetCoreBlazorMonoPackageVersion)" />
|
<NuspecProperty Include="blazormonoversion=$(MicrosoftAspNetCoreBlazorMonoPackageVersion)" />
|
||||||
|
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
$CommonFileElements$
|
$CommonFileElements$
|
||||||
<file src="..\..\..\THIRD-PARTY-NOTICES.txt" />
|
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
|
||||||
<file src="build\**" target="build" />
|
<file src="build\**" target="build" />
|
||||||
<file src="targets\**" target="targets" />
|
<file src="targets\**" target="targets" />
|
||||||
<file src="$publishdir$**\*" target="tools/" />
|
<file src="$publishdir$**\*" target="tools/" />
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
<NuspecProperty Include="publishDir=$(PublishDir)" />
|
<NuspecProperty Include="publishDir=$(PublishDir)" />
|
||||||
<NuspecProperty Include="componentsrootdir=..\..\..\" />
|
<NuspecProperty Include="componentsrootdir=..\..\..\" />
|
||||||
<NuspecProperty Include="blazorversion=$(PackageVersion)" />
|
<NuspecProperty Include="blazorversion=$(PackageVersion)" />
|
||||||
|
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,6 @@
|
||||||
$CommonFileElements$
|
$CommonFileElements$
|
||||||
<file src="build\**" target="build" />
|
<file src="build\**" target="build" />
|
||||||
<file src="$publishDir$**\*" target="tools" />
|
<file src="$publishDir$**\*" target="tools" />
|
||||||
<file src="$componentsrootdir$THIRD-PARTY-NOTICES.txt" target=".\THIRD-PARTY-NOTICES.txt" />
|
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@
|
||||||
<NuspecProperty Condition="'$(DotNetBuildFromSource)' != 'true'" Include="systemComponentModelAnnotationsPackageVersion=$(SystemComponentModelAnnotationsPackageVersion)" />
|
<NuspecProperty Condition="'$(DotNetBuildFromSource)' != 'true'" Include="systemComponentModelAnnotationsPackageVersion=$(SystemComponentModelAnnotationsPackageVersion)" />
|
||||||
<NuspecProperty Include="AssemblyName=$(AssemblyName)" />
|
<NuspecProperty Include="AssemblyName=$(AssemblyName)" />
|
||||||
<NuspecProperty Include="OutputPath=$(OutputPath)" />
|
<NuspecProperty Include="OutputPath=$(OutputPath)" />
|
||||||
|
<NuspecProperty Include="PackageThirdPartyNoticesFile=$(PackageThirdPartyNoticesFile)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
<file src="$OutputPath$**\$AssemblyName$.dll" target="lib\" />
|
<file src="$OutputPath$**\$AssemblyName$.dll" target="lib\" />
|
||||||
<file src="$OutputPath$**\$AssemblyName$.pdb" target="lib\" />
|
<file src="$OutputPath$**\$AssemblyName$.pdb" target="lib\" />
|
||||||
<file src="$OutputPath$**\$AssemblyName$.xml" target="lib\" />
|
<file src="$OutputPath$**\$AssemblyName$.xml" target="lib\" />
|
||||||
<file src="..\..\THIRD-PARTY-NOTICES.txt" target=".\THIRD-PARTY-NOTICES.txt" />
|
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
<file src="$OutputPath$**\$AssemblyName$.dll" target="lib\" />
|
<file src="$OutputPath$**\$AssemblyName$.dll" target="lib\" />
|
||||||
<file src="$OutputPath$**\$AssemblyName$.pdb" target="lib\" />
|
<file src="$OutputPath$**\$AssemblyName$.pdb" target="lib\" />
|
||||||
<file src="$OutputPath$**\$AssemblyName$.xml" target="lib\" />
|
<file src="$OutputPath$**\$AssemblyName$.xml" target="lib\" />
|
||||||
<file src="..\..\THIRD-PARTY-NOTICES.txt" target=".\THIRD-PARTY-NOTICES.txt" />
|
<file src="$PackageThirdPartyNoticesFile$" target=".\THIRD-PARTY-NOTICES.txt" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@
|
||||||
|
|
||||||
<!-- So we can use the tool from source within the repo without having to pack -->
|
<!-- So we can use the tool from source within the repo without having to pack -->
|
||||||
<BlazorToolsDir>$(MSBuildThisFileDirectory)Blazor\Build\src\bin\$(Configuration)\$(DefaultNetCoreTargetFramework)\</BlazorToolsDir>
|
<BlazorToolsDir>$(MSBuildThisFileDirectory)Blazor\Build\src\bin\$(Configuration)\$(DefaultNetCoreTargetFramework)\</BlazorToolsDir>
|
||||||
|
|
||||||
|
<PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.txt</PackageThirdPartyNoticesFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.txt" Pack="true" PackagePath="." />
|
|
||||||
|
|
||||||
<!-- Add a project dependency without reference output assemblies to enforce build order -->
|
<!-- Add a project dependency without reference output assemblies to enforce build order -->
|
||||||
<!-- Applying workaround for https://github.com/microsoft/msbuild/issues/2661 and https://github.com/dotnet/sdk/issues/952 -->
|
<!-- Applying workaround for https://github.com/microsoft/msbuild/issues/2661 and https://github.com/dotnet/sdk/issues/952 -->
|
||||||
<ProjectReference
|
<ProjectReference
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
||||||
<!-- There is no way to suppress the .dev.runtimeconfig.json generation. -->
|
<!-- There is no way to suppress the .dev.runtimeconfig.json generation. -->
|
||||||
<ProjectRuntimeConfigDevFilePath>$(IntermediateOutputPath)ignoreme.dev.runtimeconfig.json</ProjectRuntimeConfigDevFilePath>
|
<ProjectRuntimeConfigDevFilePath>$(IntermediateOutputPath)ignoreme.dev.runtimeconfig.json</ProjectRuntimeConfigDevFilePath>
|
||||||
|
|
||||||
<VersionFileIntermediateOutputPath>$(IntermediateOutputPath).version</VersionFileIntermediateOutputPath>
|
<VersionFileIntermediateOutputPath>$(IntermediateOutputPath)$(SharedFxName).versions.txt</VersionFileIntermediateOutputPath>
|
||||||
|
|
||||||
<!-- The project representing the shared framework doesn't produce a .NET assembly or symbols. -->
|
<!-- The project representing the shared framework doesn't produce a .NET assembly or symbols. -->
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
|
@ -497,4 +497,13 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="IncludeVersionFile"
|
||||||
|
DependsOnTargets="GenerateSharedFxVersionsFiles"
|
||||||
|
BeforeTargets="_GetPackageFiles">
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="$(VersionFileIntermediateOutputPath)" Pack="true" PackagePath="." />
|
||||||
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ namespace Microsoft.AspNetCore
|
||||||
[Fact]
|
[Fact]
|
||||||
public void ItContainsVersionFile()
|
public void ItContainsVersionFile()
|
||||||
{
|
{
|
||||||
var versionFile = Path.Combine(_sharedFxRoot, ".version");
|
var versionFile = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.versions.txt");
|
||||||
AssertEx.FileExists(versionFile);
|
AssertEx.FileExists(versionFile);
|
||||||
var lines = File.ReadAllLines(versionFile);
|
var lines = File.ReadAllLines(versionFile);
|
||||||
Assert.Equal(2, lines.Length);
|
Assert.Equal(2, lines.Length);
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
</GetCurrentProjectStaticWebAssetsDependsOn>
|
</GetCurrentProjectStaticWebAssetsDependsOn>
|
||||||
|
|
||||||
<IdentityUIFrameworkVersion Condition="'$(IdentityUIFrameworkVersion)' == ''">Bootstrap4</IdentityUIFrameworkVersion>
|
<IdentityUIFrameworkVersion Condition="'$(IdentityUIFrameworkVersion)' == ''">Bootstrap4</IdentityUIFrameworkVersion>
|
||||||
|
<PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
@ -32,7 +33,6 @@
|
||||||
<None Include="build\*" Pack="true" PackagePath="build\" />
|
<None Include="build\*" Pack="true" PackagePath="build\" />
|
||||||
<None Include="buildMultiTargeting\*" Pack="true" PackagePath="buildMultiTargeting\" />
|
<None Include="buildMultiTargeting\*" Pack="true" PackagePath="buildMultiTargeting\" />
|
||||||
<None Include="buildTransitive\*" Pack="true" PackagePath="buildTransitive\" />
|
<None Include="buildTransitive\*" Pack="true" PackagePath="buildTransitive\" />
|
||||||
<None Include="THIRD-PARTY-NOTICES.txt" Pack="true" PackagePath="/THIRD-PARTY-NOTICES.txt" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue