-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
19 lines (16 loc) · 929 Bytes
/
Directory.Build.targets
File metadata and controls
19 lines (16 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<Project>
<!-- Settings that are only set for executables -->
<PropertyGroup Condition="'$(OutputType)' != 'Library' AND '$(UseWindowsForms)' != 'true' AND '$(UseWPF)' != 'true' AND '$(UseWinUI)' != 'true' ">
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>
<!-- Emit the [DisableRuntimeMarshalling] attribute for all .NET 8 projects -->
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
<AssemblyAttribute Include="System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute" />
</ItemGroup>
<!-- Emit the [ComVisible(false)] attribute for WinUI targets -->
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0-windows'))">
<AssemblyAttribute Include="System.Runtime.InteropServices.ComVisibleAttribute">
<_Parameter1>false</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>