</AssemblyAttribute>
</ItemGroup>
+ <!-- Adds UnsupportedOSPlatform attribute for requested libraries -->
+ <ItemGroup Condition="'$(UnsupportedOSPlatform)' != '' and '$(IsTestProject)' != 'true'">
+ <AssemblyAttribute Include="System.Runtime.Versioning.UnsupportedOSPlatform">
+ <_Parameter1>$(UnsupportedOSPlatform)</_Parameter1>
+ </AssemblyAttribute>
+ </ItemGroup>
+
<Target Name="DecideIfWeNeedToIncludeDllSafeSearchPathAttribute"
Condition="'$(IsDotNetFrameworkProductAssembly)' == 'true' and '$(IsTestProject)' != 'true' and '$(IsTestSupportProject)' != 'true'">
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
+ <IncludePlatformAttributes>true</IncludePlatformAttributes>
+ <UnsupportedOSPlatform>windows</UnsupportedOSPlatform>
</PropertyGroup>
</Project>
\ No newline at end of file