Skip to content

Commit ed447e3

Browse files
committed
Make buildable as a nuget package
1 parent f32641a commit ed447e3

5 files changed

Lines changed: 14 additions & 9 deletions

File tree

build.cmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ if errorlevel 1 (
1212
exit /b %errorlevel%
1313
)
1414

15-
.\packages\FAKE\tools\Fake %*
15+
.\packages\FAKE\tools\Fake %*
16+
17+
dotnet restore
18+
dotnet build --configuration Release --output build\netstandard1.5 --framework netstandard1.5 src\commandline

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ else
3131
fi
3232
mono packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx
3333
fi
34+
35+
dotnet build --configuration Release

nuget/CommandLine.nuspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>CommandLineParser</id>
5-
<version>2.1.0-beta</version>
5+
<version>2.1.0-beta2</version>
66
<title>Command Line Parser Library</title>
77
<authors>Giacomo Stelluti Scala</authors>
88
<description>Terse syntax C# command line parser for .NET with F# support. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.</description>
@@ -15,7 +15,7 @@
1515
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1616
<tags>command line commandline argument option parser parsing library syntax shell</tags>
1717
<dependencies>
18-
<group targetFramework=".NETStandard1.3">
18+
<group targetFramework=".NETStandard1.5">
1919
<dependency id="System.Collections" version="4.0.11-rc2-24027" />
2020
<dependency id="System.Console" version="4.0.0-rc2-24027" />
2121
<dependency id="System.Diagnostics.Debug" version="4.0.11-rc2-24027" />
@@ -37,8 +37,8 @@
3737
<file src="..\build\CommandLine.XML" target="lib\net40\CommandLine.XML" />
3838
<file src="..\build\CommandLine.dll" target="lib\net45\CommandLine.dll" />
3939
<file src="..\build\CommandLine.XML" target="lib\net45\CommandLine.XML" />
40-
<file src="src\CommandLine.dotnet\bin\portable-dotnet\Release\CommandLine.dll" target="lib\netstandard1.3\CommandLine.dll" />
41-
<file src="src\CommandLine.dotnet\bin\portable-dotnet\Release\CommandLine.xml" target="lib\netstandard1.3\CommandLine.xml" />
42-
<file src=".\readme.txt" target="readme.txt" />
40+
<file src="..\build\netstandard1.5\CommandLine.dll" target="lib\netstandard1.5\CommandLine.dll" />
41+
<file src="..\build\CommandLine.XML" target="lib\netstandard1.5\CommandLine.xml" />
42+
<file src="..\readme.md" target="readme.md" />
4343
</files>
4444
</package>

src/CommandLine/Infrastructure/ReflectionHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.Collections.Generic;
55
using System.Linq;
66
using System.Reflection;
7-
using System.Runtime.Remoting.Messaging;
87
using CommandLine.Core;
98
using CSharpx;
109

src/CommandLine/project.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@
3535
"frameworks": {
3636
"netstandard1.5": {
3737
"dependencies": {
38-
"System.Runtime.Extensions": "4.0.10",
38+
"System.Runtime.Extensions": "4.1.0",
3939
"System.Globalization": "4.0.11",
4040
"System.Linq.Expressions": "4.1.0",
4141
"System.Linq": "4.1.0",
42+
"System.Linq.Dynamic.Core": "1.0.6.8",
4243
"System.Diagnostics.Debug": "4.0.11",
4344
"System.Console": "4.0.0",
4445
"System.Reflection.Extensions": "4.0.1",
45-
"System.Text.RegularExpressions": "4.1.0"
46+
"System.Text.RegularExpressions": "4.1.0",
4647
},
4748
"imports": [ "netcore45" ]
4849
},

0 commit comments

Comments
 (0)