From f69aa07c5f29c4b5756912e4e2bbf0bab3cab00e Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 19 Aug 2024 12:52:36 +0200 Subject: [PATCH] Fix condition for adding package readmes (#106590) * Fix condition for adding package readmes Fixes https://github.com/dotnet/runtime/issues/106585 The EnableDefualtPackageReadmeFile property needs to be defined before packaging.targets is imported. * Enable package readme validation for everything in runtime --- eng/packaging.targets | 1 + .../pkg/sfx/Microsoft.NETCore.App/Directory.Build.props | 1 - src/libraries/Directory.Build.targets | 5 +---- .../Microsoft.NET.Runtime.WebAssembly.Templates.csproj | 2 ++ .../Microsoft.Diagnostics.NETCore.Client.csproj | 2 ++ src/tools/illink/src/ILLink.Tasks/ILLink.Tasks.csproj | 2 ++ 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/eng/packaging.targets b/eng/packaging.targets index eb55af12b6d91..99912459fe02c 100644 --- a/eng/packaging.targets +++ b/eng/packaging.targets @@ -22,6 +22,7 @@ $(MSBuildThisFileDirectory)useSharedDesignerContext.txt + true PACKAGE.md PACKAGE.md $(BeforePack);ValidatePackageReadmeExists diff --git a/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props b/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props index d6af2ef9b786c..f2379fc9ff34d 100644 --- a/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props +++ b/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props @@ -6,7 +6,6 @@ $(MicrosoftNetCoreAppFrameworkName) false .NET Runtime - true + true - - - true diff --git a/src/mono/wasm/templates/Microsoft.NET.Runtime.WebAssembly.Templates.csproj b/src/mono/wasm/templates/Microsoft.NET.Runtime.WebAssembly.Templates.csproj index 0a4927e350fe7..bc6ac6d8a8474 100644 --- a/src/mono/wasm/templates/Microsoft.NET.Runtime.WebAssembly.Templates.csproj +++ b/src/mono/wasm/templates/Microsoft.NET.Runtime.WebAssembly.Templates.csproj @@ -16,6 +16,8 @@ $(NoWarn);NU5128 true false + + false diff --git a/src/tests/tracing/eventpipe/common/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj b/src/tests/tracing/eventpipe/common/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj index 49503b15eedcd..8acc555e78d55 100644 --- a/src/tests/tracing/eventpipe/common/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj +++ b/src/tests/tracing/eventpipe/common/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj @@ -13,6 +13,8 @@ true false true + + false diff --git a/src/tools/illink/src/ILLink.Tasks/ILLink.Tasks.csproj b/src/tools/illink/src/ILLink.Tasks/ILLink.Tasks.csproj index c7bda095b5b2b..ea27178d3faab 100644 --- a/src/tools/illink/src/ILLink.Tasks/ILLink.Tasks.csproj +++ b/src/tools/illink/src/ILLink.Tasks/ILLink.Tasks.csproj @@ -18,6 +18,8 @@ false false $(TargetsForTfmSpecificContentInPackage);AddBuildOutputToToolsPackage + + false