Skip to content

Commit 89a3535

Browse files
committed
using NET461 constant instead of NETDESKTOP
1 parent ff0ed40 commit 89a3535

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

src/GitVersionCore/GitVersionCore.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
<Product>$(AssemblyName)</Product>
1515
</PropertyGroup>
1616

17-
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
18-
<DefineConstants>NETDESKTOP</DefineConstants>
19-
</PropertyGroup>
20-
2117
<ItemGroup>
2218
<PackageReference Include="LibGit2Sharp" Version="$(PackageVersion_LibGit2Sharp)" />
2319
<PackageReference Include="JetBrains.Annotations" Version="$(PackageVersion_JetBrainsAnnotations)"></PackageReference>

src/GitVersionExe/GitVersionExe.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
<NoWarn>1591</NoWarn>
1313
</PropertyGroup>
1414

15-
<PropertyGroup Condition="'$(TargetFramework)'=='net461'">
16-
<DefineConstants>NETDESKTOP</DefineConstants>
17-
</PropertyGroup>
18-
1915
<ItemGroup Condition="'$(TargetFramework)'=='net461'">
2016
<PackageReference Include="JetBrains.Annotations" Version="$(PackageVersion_JetBrainsAnnotations)"></PackageReference>
2117
</ItemGroup>

src/GitVersionExe/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int VerifyArgumentsAndRun()
7777
}
7878

7979
ConfigureLogging(arguments);
80-
#if NETDESKTOP
80+
#if NET461
8181
if (arguments.Diag)
8282
{
8383
Logger.WriteInfo("Dumping commit graph: ");
@@ -131,7 +131,7 @@ static int VerifyArgumentsAndRun()
131131

132132
try
133133
{
134-
#if NETDESKTOP
134+
#if NET461
135135
LibGitExtensions.DumpGraph(arguments.TargetPath, Logger.WriteInfo, 100);
136136
#endif
137137
}

src/GitVersionExe/SpecifiedArgumentRunner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void Run(Arguments arguments, IFileSystem fileSystem)
6969
}
7070
var execRun = false;
7171
var msbuildRun = false;
72-
#if NETDESKTOP
72+
#if NET461
7373
execRun = RunExecCommandIfNeeded(arguments, targetPath, variables);
7474
msbuildRun = RunMsBuildIfNeeded(arguments, targetPath, variables);
7575
#endif
@@ -87,7 +87,7 @@ public static void Run(Arguments arguments, IFileSystem fileSystem)
8787
}
8888
}
8989
}
90-
#if NETDESKTOP
90+
#if NET461
9191
static bool RunMsBuildIfNeeded(Arguments args, string workingDirectory, VersionVariables variables)
9292
{
9393

0 commit comments

Comments
 (0)