Skip to content

Commit d73225f

Browse files
committed
Put ExtraDefine in Directory.Build.props
1 parent 496fc2f commit d73225f

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<Project>
2+
23
<PropertyGroup>
34
<OutputPath>$(MSBuildThisFileDirectory)bin\$(MSBuildProjectName)\$(Configuration)\</OutputPath>
45
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
6+
<DefineConstants Condition=" '$(ExtraDefine)' != '' ">$(DefineConstants);$(ExtraDefine)</DefineConstants>
57
</PropertyGroup>
68

79
<ItemGroup>
810
<PackageReference Include="Nerdbank.GitVersioning" Version="2.0.37-beta" PrivateAssets="all" />
911
</ItemGroup>
12+
1013
</Project>

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@
2828
<ItemGroup>
2929
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
3030
</ItemGroup>
31-
<Import Project="..\LibGit2Sharp\ExtraDefine.targets" />
3231
</Project>

LibGit2Sharp/ExtraDefine.targets

Lines changed: 0 additions & 7 deletions
This file was deleted.

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<PackageReference Include="System.Diagnostics.TraceSource" Version="4.0.0" />
3939
</ItemGroup>
4040
<Import Project="CodeGenerator.targets" />
41-
<Import Project="ExtraDefine.targets" />
4241
<Target Name="SetNuSpecProperties" BeforeTargets="GenerateNuspec" DependsOnTargets="GetBuildVersion">
4342
<PropertyGroup>
4443
<PackageIconUrl>https://github.com/libgit2/libgit2sharp/raw/$(GitCommitIdShort)/square-logo.png</PackageIconUrl>

0 commit comments

Comments
 (0)