Merge pull request #632 from Sergio0694/dev/DisableRuntimeMarshalling
Generate [DisableRuntimeMarshalling] in all projects
このコミットが含まれているのは:
1ファイル変更
+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.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする