-
Notifications
You must be signed in to change notification settings - Fork 249
/
Directory.Build.targets
28 lines (27 loc) · 1.41 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
<Project>
<!-- For older framework targets on non-test projects include attributes to support trimming -->
<ItemGroup Condition=" '$(MSBuildProjectFile.Contains(`Test`))' != 'true' ">
<Compile Include="$(MSBuildThisFileDirectory)src\Shared\Trimming\**\*.cs"
Exclude="$(MSBuildThisFileDirectory)src\Shared\Trimming\RequiresDynamicCodeAttribute.cs"
Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net5.0'))">
<Visible>false</Visible>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)src\Shared\Trimming\RequiresDynamicCodeAttribute.cs"
Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
<Visible>false</Visible>
</Compile>
<Compile Include="$(MSBuildThisFileDirectory)src\Shared\IsExternalInit.cs"
Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net5.0'))">
<Visible>false</Visible>
</Compile>
</ItemGroup>
<!-- Because we're building commits pulled from Gerrit, SourceLink can't find our repository URL -->
<!-- This will manually fill it in (though we'll still see some warnings) -->
<Target Name="SupplySourceRootRepositoryUrl">
<ItemGroup>
<SourceRoot Update="@(SourceRoot)">
<RepositoryUrl>https://github.com/couchbase/couchbase-net-client</RepositoryUrl>
</SourceRoot>
</ItemGroup>
</Target>
</Project>