Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBuyaa Namnan <bunamnan@microsoft.com>2021-06-08 00:48:17 +0300
committerGitHub <noreply@github.com>2021-06-08 00:48:17 +0300
commit61587f4f18aa082f40cce941fd913c0852641bd6 (patch)
tree80f5504690a5bd1b9886e8d420141039df2db1e8 /eng/versioning.targets
parent15eca9148387528ce5fca4c5ea2cf78d21268b26 (diff)
Add PlatformNeutralAssembly property for targeted builds of cross platform assembly (#53626)
Diffstat (limited to 'eng/versioning.targets')
-rw-r--r--eng/versioning.targets5
1 files changed, 5 insertions, 0 deletions
diff --git a/eng/versioning.targets b/eng/versioning.targets
index 9981f73a0be..4dacec01a86 100644
--- a/eng/versioning.targets
+++ b/eng/versioning.targets
@@ -84,6 +84,11 @@
</ItemGroup>
</Target>
+ <!-- Add PlatformNeutralAssembly property for targeted builds of cross platform assemblies -->
+ <ItemGroup Condition="'$(TargetsAnyOS)' != 'true' and '$(IsTestProject)' != 'true' and '@(SupportedOSPlatforms)' == ''">
+ <CompilerVisibleProperty Include="PlatformNeutralAssembly" />
+ </ItemGroup>
+
<PropertyGroup>
<!-- corefx has never generated these attributes so don't let the SDK generate them -->
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>