From 8dd17ac1e55df7cdd73d8f1cfee21afcea53b6e9 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Sun, 18 Aug 2024 20:14:42 +0200 Subject: [PATCH 1/2] 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. --- src/libraries/Directory.Build.targets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets index 34b18328451563..225fd844fc9bb1 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -5,6 +5,9 @@ MicrosoftAspNetCore Open $(TestStrongNameKeyId) + + + true @@ -121,14 +124,11 @@ - + true - - - true From 973cb4aae010c0e5c2fe4768ecf67149232a1981 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 19 Aug 2024 10:07:21 +0200 Subject: [PATCH 2/2] 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 | 3 --- .../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, 7 insertions(+), 4 deletions(-) diff --git a/eng/packaging.targets b/eng/packaging.targets index eb55af12b6d910..99912459fe02c1 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 d6af2ef9b786c8..f2379fc9ff34da 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 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 0a4927e350fe7a..bc6ac6d8a84747 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 49503b15eedcda..8acc555e78d55b 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 c7bda095b5b2ba..ea27178d3faabe 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