Skip to content

Commit 9321194

Browse files
committed
(proj) target net472
1 parent 89a3535 commit 9321194

File tree

18 files changed

+39
-27
lines changed

18 files changed

+39
-27
lines changed

build/pack.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Task("Test")
5252
CollectCoverage = true,
5353
CoverletOutputFormat = CoverletOutputFormat.opencover,
5454
CoverletOutputDirectory = parameters.Paths.Directories.TestCoverageOutput + "/",
55-
CoverletOutputName = $"{project.GetFilenameWithoutExtension()}.coverage.xml"
55+
CoverletOutputName = $"{project.GetFilenameWithoutExtension()}.{framework}.coverage.xml"
5656
};
5757

5858
if (IsRunningOnUnix())

build/stages/common-steps.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,17 @@ steps:
55
packageType: sdk
66
version: 2.2.107
77
installationPath: $(Agent.ToolsDirectory)/dotnet
8+
- task: CmdLine@2
9+
condition: eq( variables['Agent.OS'], 'Darwin' )
10+
displayName: 'Select Mono version'
11+
inputs:
12+
script: |
13+
SYMLINK=5_18_1
14+
MONOPREFIX=/Library/Frameworks/Mono.framework/Versions/$SYMLINK
15+
echo "##vso[task.setvariable variable=DYLD_FALLBACK_LIBRARY_PATH;]$MONOPREFIX/lib:/lib:/usr/lib:$DYLD_LIBRARY_FALLBACK_PATH"
16+
echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
17+
echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH"
18+
sudo rm /Library/Frameworks/Mono.framework/Versions/Current
19+
sudo ln -s $MONOPREFIX /Library/Frameworks/Mono.framework/Versions/Current
820
- script: dotnet tool install --global Cake.Tool
921
displayName: 'Install Cake tool'

build/utils/parameters.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class BuildParameters
99
public string Configuration { get; private set; }
1010

1111
public string CoreFxVersion { get; private set; } = "netcoreapp2.1";
12-
public string FullFxVersion { get; private set; } = "net461";
12+
public string FullFxVersion { get; private set; } = "net472";
1313

1414
public string DockerDistro { get; private set; }
1515
public string DockerDotnetVersion { get; private set; }

src/GitVersionCore.Tests/GitVersionCore.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net461</TargetFramework>
4+
<TargetFramework>net472</TargetFramework>
55
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
66

77
<DebugType>full</DebugType>

src/GitVersionCore/GitVersionCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
55
<RootNamespace>GitVersion</RootNamespace>
66
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
77
<DocumentationFile>bin\$(Configuration)\GitVersionCore.xml</DocumentationFile>

src/GitVersionExe.Tests/GitVersionExe.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net461</TargetFramework>
3+
<TargetFramework>net472</TargetFramework>
44
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
55
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
66
</PropertyGroup>

src/GitVersionExe/GitVersionExe.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<OutputType>Exe</OutputType>
55
<RootNamespace>GitVersion</RootNamespace>
66
<AssemblyName>GitVersion</AssemblyName>
7-
<TargetFrameworks Condition=" '$(TargetFrameworks)' == '' ">net461;netcoreapp2.1</TargetFrameworks>
7+
<TargetFrameworks Condition=" '$(TargetFrameworks)' == '' ">net472;netcoreapp2.1</TargetFrameworks>
88
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
99
<PlatformTarget>AnyCPU</PlatformTarget>
1010
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1111
<DocumentationFile>bin\$(Configuration)\GitVersion.xml</DocumentationFile>
1212
<NoWarn>1591</NoWarn>
1313
</PropertyGroup>
1414

15-
<ItemGroup Condition="'$(TargetFramework)'=='net461'">
15+
<ItemGroup Condition="'$(TargetFramework)'=='net472'">
1616
<PackageReference Include="JetBrains.Annotations" Version="$(PackageVersion_JetBrainsAnnotations)"></PackageReference>
1717
</ItemGroup>
1818

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 NET461
80+
#if NET472
8181
if (arguments.Diag)
8282
{
8383
Logger.WriteInfo("Dumping commit graph: ");
@@ -131,7 +131,7 @@ static int VerifyArgumentsAndRun()
131131

132132
try
133133
{
134-
#if NET461
134+
#if NET472
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 NET461
72+
#if NET472
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 NET461
90+
#if NET472
9191
static bool RunMsBuildIfNeeded(Arguments args, string workingDirectory, VersionVariables variables)
9292
{
9393

src/GitVersionTask.MsBuild/GitVersionTask.MsBuild.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net472;netcoreapp2.1</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.Build" Version="15.9.20" />
8+
<PackageReference Include="Microsoft.Build" Version="16.0.461" />
99
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.0.461" />
1010
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="2.1.0" />
1111
</ItemGroup>

0 commit comments

Comments
 (0)