Skip to content

Commit 4198673

Browse files
authored
Nuget release (#8)
* Add codefactor and fix wrong issue badge * Update AppVeyor badge and link * Add options model * Fix codefactor warnings * Add nuspec * Update reference * Add logging * pack options * nuget update
1 parent 4283baa commit 4198673

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>MatthiWare.CommandLineParser</id>
5+
<version>0.1.0</version>
6+
<title>CommandLineParser.Core</title>
7+
<authors>Matthias Beerens</authors>
8+
<owners>Matthiee</owners>
9+
<licenseUrl>https://github.com/MatthiWare/CommandLineParser.Core/blob/master/LICENSE</licenseUrl>
10+
<projectUrl>https://github.com/MatthiWare/CommandLineParser.Core</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>
13+
Command Line Parser for .Net Core written in .Net Standard.
14+
15+
Configuration is done through a option model class using attributes or fluent api can be used to configure the properties of the class.
16+
This library allows to add commands with their own set of options as well.
17+
</description>
18+
<summary>A simple, light-weight and strongly typed command line parser. Configuration using fluent API and an options class. </summary>
19+
<releaseNotes>Initial release</releaseNotes>
20+
<copyright>Copyright Matthias Beerens 2018</copyright>
21+
<tags>commandline parser commandline-parser</tags>
22+
</metadata>
23+
</package>

build.cake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var configuration = Argument("configuration", "Release");
1212

1313
var project = "CommandLineParser";
1414
var solution = $"./{project}.sln";
15-
var commandLineParserProjPath = $"./{project}/{project}.csproj";
15+
var nuspecFile = $"./{project}/{project}.nuspec";
1616
var tests = $"./{project}.Tests/{project}.Tests.csproj";
1717
var publishPath = MakeAbsolute(Directory("./output"));
1818
var nugetPackageDir = MakeAbsolute(Directory("./nuget"));
@@ -77,13 +77,15 @@ Task("Publish-NuGet")
7777
{
7878
BasePath = publishPath,
7979
OutputDirectory = nugetPackageDir,
80+
IncludeReferencedProjects = true,
81+
8082
Properties = new Dictionary<string, string>
8183
{
8284
{ "Configuration", configuration }
8385
}
8486
};
8587

86-
NuGetPack(commandLineParserProjPath, nuGetPackSettings);
88+
NuGetPack(nuspecFile, nuGetPackSettings);
8789

8890
});
8991

0 commit comments

Comments
 (0)