From 293d47286161827ecc0d6e96f9eb7b82dafe8307 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 26 May 2021 12:09:00 +0200 Subject: Generate targets files that throws for unsupported netstandard applicable tfms (#53244) * Generate targets files that throw for unsupported NS tfm For S.D.Common, S.Speech and S.Sec.Crypto.Pkcs we manually added a targets file to mark the .NETStandard asset as not applicable. This was done to allow defining a minimum supported .NETCoreApp version, even though a compatible .NETStandard asset is available. This commit automatically generates that targets file based on items. --- Directory.Build.targets | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'Directory.Build.targets') diff --git a/Directory.Build.targets b/Directory.Build.targets index e6457e6111c..0460647e6de 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -54,6 +54,7 @@ $(RuntimePackageDisclaimer) $(PackageDescription) + $(BeforePack);AddNETStandardCompatErrorFileForPackaging @@ -70,4 +71,39 @@ + + + + + <_NETStandardCompatErrorFilePath>$(BaseIntermediateOutputPath)netstandardcompaterrors\%(NETStandardCompatError.Identity)\$(PackageId).targets + <_NETStandardCompatErrorFileTarget>NETStandardCompatError_$(PackageId.Replace('.', '_'))_$([System.String]::new('%(NETStandardCompatError.Supported)').Replace('.', '_')) + <_NETStandardCompatErrorFileContent> + + + + +]]> + + + + + + + + + + + -- cgit v1.2.3