-
Notifications
You must be signed in to change notification settings - Fork 10
/
Directory.Build.targets
59 lines (52 loc) · 2.52 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project>
<PropertyGroup>
<NoWarn>$(NoWarn);CS8632;SYSLIB0011</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0-macos'">
<DefineConstants>$(DefineConstants);MAC</DefineConstants>
<SupportedOSPlatformVersion>11.0</SupportedOSPlatformVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(EnableDefaultItems)' == 'true' ">
<None Remove="**/*.sql" />
<None Remove="**/*.js" />
<None Remove="**/*.css" />
</ItemGroup>
<ItemGroup Condition=" '$(EnableDefaultItems)' == 'true' ">
<EmbeddedResource Include="**/*.sql" />
<EmbeddedResource Include="**/*.js" />
<EmbeddedResource Include="**/*.css" />
</ItemGroup>
<!-- Xamarin.Mac Preview 14 workaround -->
<ItemGroup Condition=" '$(EnableDefaultmacOSItems)' == 'true' ">
<BundleResource Remove="Resources/**/*.cs" />
<BundleResource Remove="Resources/**/*.resx" />
</ItemGroup>
<!-- Precompiled localization satellite assemblies -->
<Target Name="ComputePrecompiledSatelliteAssemblies" BeforeTargets="ComputeIntermediateSatelliteAssemblies">
<ItemGroup>
<PrecompiledLocalizationFiles Include="$(MSBuildThisFileDirectory)\Localization\*\$(ProjectName).resources.dll" />
<PrecompiledLocalizationFiles Include="$(MSBuildThisFileDirectory)\Localization\*\$(AssemblyName).resources.dll" />
<IntermediateSatelliteAssembliesWithTargetPath Include="@(PrecompiledLocalizationFiles)">
<Culture>%(RecursiveDir)</Culture>
<TargetPath>%(RecursiveDir)$(AssemblyName).resources.dll</TargetPath>
</IntermediateSatelliteAssembliesWithTargetPath>
</ItemGroup>
</Target>
<Target Name="AddInternalsVisibleTo" BeforeTargets="GetAssemblyAttributes">
<ItemGroup Condition="!$(AssemblyName.EndsWith('.Test'))">
<InternalsVisibleToSuffix Include=".Test" />
</ItemGroup>
<!-- Handle InternalsVisibleTo -->
<ItemGroup Condition="'@(InternalsVisibleTo->Count())' > 0">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>%(InternalsVisibleTo.Identity)</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<!-- Handle InternalsVisibleToSuffix -->
<ItemGroup Condition="@(InternalsVisibleToSuffix->Count()) > 0">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>$(AssemblyName)%(InternalsVisibleToSuffix.Identity)</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Target>
</Project>