Skip to content

Commit

Permalink
GitTools#3334 - re-target to .net6.0 and .net7.0 in place of netstand…
Browse files Browse the repository at this point in the history
…ard2.0
  • Loading branch information
arturcic committed Feb 17, 2023
1 parent 7cee737 commit 6c70392
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 208 deletions.
2 changes: 2 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>

<EndYear>$([System.DateTime]::Today.Year)</EndYear>
<Authors>GitTools and Contributors</Authors>
<Copyright>Copyright GitTools $(EndYear).</Copyright>
Expand Down
1 change: 0 additions & 1 deletion src/GitTools.Testing/GitTools.Testing.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/GitVersion.App.Tests/GitVersion.App.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>

<IsTestProject>true</IsTestProject>
</PropertyGroup>

Expand Down
1 change: 0 additions & 1 deletion src/GitVersion.App/GitVersion.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<OutputType>Exe</OutputType>
<RootNamespace>GitVersion</RootNamespace>
<AssemblyName>gitversion</AssemblyName>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<PlatformTarget>AnyCPU</PlatformTarget>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/GitVersion.Core.Tests/GitVersion.Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>

<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DebugSymbols>true</DebugSymbols>
Expand Down

This file was deleted.

147 changes: 0 additions & 147 deletions src/GitVersion.Core/Extensions/NullableAttributes.cs

This file was deleted.

27 changes: 13 additions & 14 deletions src/GitVersion.Core/GitVersion.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>GitVersion</RootNamespace>
<DocumentationFile>bin\$(Configuration)\GitVersionCore.xml</DocumentationFile>

Expand All @@ -14,26 +13,26 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Polly"/>
<PackageReference Include="System.Net.Requests"/>
<PackageReference Include="Polly" />
<PackageReference Include="System.Net.Requests" />

<PackageReference Include="JetBrains.Annotations" PrivateAssets="All"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions"/>
<PackageReference Include="Microsoft.Extensions.Options"/>
<PackageReference Include="YamlDotNet"/>
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
<PackageReference Include="Microsoft.Extensions.Options" />
<PackageReference Include="YamlDotNet" />
</ItemGroup>

<ItemGroup>
<Compile Remove="VersionConverters\*\AddFormats\**\*.*"/>
<Compile Remove="VersionConverters\*\Templates\**\*.*"/>
<EmbeddedResource Include="VersionConverters\*\AddFormats\**\*.*"/>
<EmbeddedResource Include="VersionConverters\*\Templates\**\*.*"/>
<Compile Remove="VersionConverters\*\AddFormats\**\*.*" />
<Compile Remove="VersionConverters\*\Templates\**\*.*" />
<EmbeddedResource Include="VersionConverters\*\AddFormats\**\*.*" />
<EmbeddedResource Include="VersionConverters\*\Templates\**\*.*" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="GitVersion.Core.Tests"/>
<InternalsVisibleTo Include="GitVersion.App.Tests"/>
<InternalsVisibleTo Include="GitVersion.MsBuild.Tests"/>
<InternalsVisibleTo Include="GitVersion.Core.Tests" />
<InternalsVisibleTo Include="GitVersion.App.Tests" />
<InternalsVisibleTo Include="GitVersion.MsBuild.Tests" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/GitVersion.Core/Helpers/ProcessHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Runtime.InteropServices;
using GitVersion.Extensions;

namespace GitVersion.Helpers;

Expand Down
4 changes: 0 additions & 4 deletions src/GitVersion.LibGit2Sharp/GitVersion.LibGit2Sharp.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="LibGit2Sharp"/>
</ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/GitVersion.MsBuild.Tests/GitVersion.MsBuild.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>

<IsTestProject>true</IsTestProject>
</PropertyGroup>

Expand Down
2 changes: 0 additions & 2 deletions src/GitVersion.MsBuild/GitVersion.MsBuild.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>

<PackageId>GitVersion.MsBuild</PackageId>
<Title>GitVersionMsBuild</Title>
<PackageVersion Condition="$(PackageVersion) == '' Or $(PackageVersion) == '*Undefined*'">0.0.1-alpha-0001</PackageVersion>
Expand Down
14 changes: 7 additions & 7 deletions src/GitVersion.MsBuild/nuget-files.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<Target_net70>tools/net7.0</Target_net70>
</PropertyGroup>
<ItemGroup Condition="$(IsPackaging) != ''">
<None Include="msbuild/tools/*.*" Pack="true" PackagePath="tools" />
<None Include="msbuild/build/*.*" Pack="true" PackagePath="build" />
<None Include="msbuild/buildMultiTargeting/*.*" Pack="true" PackagePath="buildMultiTargeting" />
<None Include="msbuild/tools/*.*" Pack="true" PackagePath="tools" />
<None Include="msbuild/build/*.*" Pack="true" PackagePath="build" />
<None Include="msbuild/buildMultiTargeting/*.*" Pack="true" PackagePath="buildMultiTargeting" />

<None Include="$(PublishTask_net60)/**/*" Pack="true" PackagePath="$(Target_net60)" />
<None Include="$(PublishTask_net70)/**/*" Pack="true" PackagePath="$(Target_net70)" />
<None Include="bin/$(Configuration)/netstandard2.0/GitVersion.MsBuild.*" Pack="true" PackagePath="$(Target_net60)" />
<None Include="bin/$(Configuration)/netstandard2.0/GitVersion.MsBuild.*" Pack="true" PackagePath="$(Target_net70)" />
<None Include="$(PublishTask_net60)/**/*" Pack="true" PackagePath="$(Target_net60)" />
<None Include="$(PublishTask_net70)/**/*" Pack="true" PackagePath="$(Target_net70)" />
<None Include="bin/$(Configuration)/net6.0/GitVersion.MsBuild.*" Pack="true" PackagePath="$(Target_net60)" />
<None Include="bin/$(Configuration)/net7.0/GitVersion.MsBuild.*" Pack="true" PackagePath="$(Target_net70)" />
</ItemGroup>
</Project>

0 comments on commit 6c70392

Please sign in to comment.