This repository was archived by the owner on Jan 1, 2021. It is now read-only.
File tree 12 files changed +23
-40
lines changed
12 files changed +23
-40
lines changed Original file line number Diff line number Diff line change 27
27
# ###################
28
28
29
29
.vscode
30
+ artifacts
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
using GitVersion . Infrastructure ;
2
2
3
- namespace GitVersion . Cli
3
+ namespace GitVersion
4
4
{
5
5
public class CliModule : IGitVersionModule
6
6
{
Original file line number Diff line number Diff line change 3
3
using System . Reflection ;
4
4
using GitVersion . Command ;
5
5
6
- namespace GitVersion . Cli . Extensions
6
+ namespace GitVersion . Extensions
7
7
{
8
8
public static class CommandExtension
9
9
{
Original file line number Diff line number Diff line change 1
1
using System . Collections . Generic ;
2
2
using GitVersion . Infrastructure ;
3
3
4
- namespace GitVersion . Cli . Extensions
4
+ namespace GitVersion . Extensions
5
5
{
6
6
public static class ContainerRegistrarExtensions
7
7
{
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
5
5
<TargetFramework >net5.0</TargetFramework >
6
- <RootNamespace >GitVersion.Cli</RootNamespace >
6
+ <RootNamespace >GitVersion</RootNamespace >
7
+ </PropertyGroup >
8
+
9
+ <PropertyGroup Condition =" '$(PackAsTool)' == 'true' " >
10
+ <ToolCommandName >dotnet-gitversion</ToolCommandName >
11
+ <PackageId >GitVersion.Tool</PackageId >
12
+ <PackageDescription >Derives SemVer information from a repository following GitFlow or GitHubFlow. This is the .NET Core Global Tool allowing usage of GitVersion from command line.</PackageDescription >
7
13
</PropertyGroup >
8
14
9
15
<ItemGroup >
10
- <PackageReference Include =" Microsoft.Bcl.AsyncInterfaces" Version =" 5.0.0" />
11
16
<PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 5.0.0" />
12
17
<PackageReference Include =" System.CommandLine" Version =" 2.0.0-beta1.20574.7" />
18
+
13
19
<PackageReference Include =" Serilog.Extensions.Logging" Version =" 3.0.2-dev-10281" />
14
20
<PackageReference Include =" Serilog.Sinks.Console" Version =" 4.0.0-dev-00839" />
15
21
<PackageReference Include =" Serilog.Sinks.File" Version =" 5.0.0-dev-00905" />
Original file line number Diff line number Diff line change 7
7
using System . Linq ;
8
8
using System . Reflection ;
9
9
using System . Threading . Tasks ;
10
- using GitVersion . Cli . Extensions ;
11
10
using GitVersion . Command ;
11
+ using GitVersion . Extensions ;
12
12
using ICommandHandler = GitVersion . Command . ICommandHandler ;
13
13
14
- namespace GitVersion . Cli
14
+ namespace GitVersion
15
15
{
16
16
internal class GitVersionApp
17
17
{
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
3
- namespace GitVersion . Cli . Infrastructure
3
+ namespace GitVersion . Infrastructure
4
4
{
5
5
public class Command : System . CommandLine . Command
6
6
{
Original file line number Diff line number Diff line change 1
1
using System ;
2
- using GitVersion . Infrastructure ;
3
2
using Microsoft . Extensions . DependencyInjection ;
4
3
5
- namespace GitVersion . Cli . Infrastructure
4
+ namespace GitVersion . Infrastructure
6
5
{
7
6
public class Container : IContainer
8
7
{
Original file line number Diff line number Diff line change 3
3
using System . CommandLine . Parsing ;
4
4
using System . IO ;
5
5
using GitVersion . Command ;
6
- using GitVersion . Infrastructure ;
7
6
using Microsoft . Extensions . DependencyInjection ;
8
7
using Microsoft . Extensions . Logging ;
9
8
using Serilog ;
10
- using ILogger = GitVersion . Infrastructure . ILogger ;
11
9
12
- namespace GitVersion . Cli . Infrastructure
10
+ namespace GitVersion . Infrastructure
13
11
{
14
12
public class ContainerRegistrar : IContainerRegistrar
15
13
{
Original file line number Diff line number Diff line change 1
1
using Microsoft . Extensions . Logging ;
2
2
3
- namespace GitVersion . Cli . Infrastructure
3
+ namespace GitVersion . Infrastructure
4
4
{
5
5
public class Logger : GitVersion . Infrastructure . ILogger
6
6
{
7
- private readonly ILogger logger ;
7
+ private readonly Microsoft . Extensions . Logging . ILogger logger ;
8
8
9
- public Logger ( ILogger logger )
9
+ public Logger ( Microsoft . Extensions . Logging . ILogger logger )
10
10
{
11
11
this . logger = logger ;
12
12
}
Original file line number Diff line number Diff line change 2
2
using System . Linq ;
3
3
using System . Threading . Tasks ;
4
4
using GitVersion . Calculation ;
5
- using GitVersion . Cli . Extensions ;
6
- using GitVersion . Cli . Infrastructure ;
7
5
using GitVersion . Configuration ;
6
+ using GitVersion . Extensions ;
8
7
using GitVersion . Infrastructure ;
9
8
using GitVersion . Normalization ;
10
9
using GitVersion . Output ;
11
10
12
- namespace GitVersion . Cli
11
+ namespace GitVersion
13
12
{
14
13
internal static class Program
15
14
{
You can’t perform that action at this time.
0 commit comments