Merge pull request #632 from Sergio0694/dev/DisableRuntimeMarshalling

Generate [DisableRuntimeMarshalling] in all projects
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2023-10-19 13:22:54 +02:00
コミット ba80b6aa01
1ファイル変更
+10 -8
+10 -8
ファイルの表示
@@ -55,6 +55,11 @@
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
</PropertyGroup>
<!-- Emit the [DisableRuntimeMarshalling] attribute for all .NET 7 projects -->
<ItemGroup Condition="$(TargetFramework.StartsWith('net7.0'))">
<AssemblyAttribute Include="System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute" />
</ItemGroup>
<!-- Emit the [SupportedOSVersion] attribute if needed -->
<Target Name="EmitSupportedOSVersionAttributeForTargetOS"
BeforeTargets="PrepareForBuild">
@@ -66,14 +71,11 @@
</Target>
<!-- Emit the [ComVisible(false)] attribute for WinUI targets -->
<Target Name="EmitComVisibleAttributeForWinUIProjects"
BeforeTargets="PrepareForBuild">
<ItemGroup Condition="$(TargetFramework.StartsWith('net7.0-windows'))">
<AssemblyAttribute Include="System.Runtime.InteropServices.ComVisibleAttribute">
<_Parameter1>false</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Target>
<ItemGroup Condition="$(TargetFramework.StartsWith('net7.0-windows'))">
<AssemblyAttribute Include="System.Runtime.InteropServices.ComVisibleAttribute">
<_Parameter1>false</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<!--
The following target has been ported from TerraFX.Interop.Windows.