Skip to content

Commit ce3011c

Browse files
authored
fix nuget license info -issue #545 (#549)
1 parent cf64a68 commit ce3011c

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

Directory.Build.props

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
<Project>
22
<PropertyGroup>
33
<NoWarn>CS1591;CS0219;8002;NU5125</NoWarn>
4+
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir>
45
</PropertyGroup>
56
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
67
<DefineConstants>$(DefineConstants);NETFRAMEWORK</DefineConstants>
78
</PropertyGroup>
8-
</Project>
9+
<!-- Enable building .NET Framework projects on any machine with at least MSBuild or the .NET Core SDK installed.-->
10+
<ItemGroup>
11+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
13+
<PrivateAssets>all</PrivateAssets>
14+
</PackageReference>
15+
</ItemGroup>
16+
</Project>

appveyor.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#version should be only changed with RELEASE eminent, see RELEASE.md
2-
version: 2.5.{build}
2+
version: 2.7.0-alpha-{build}
33

44
image: Visual Studio 2017
55

@@ -56,3 +56,10 @@ deploy:
5656
artifact: 'NuGetPackages'
5757
on:
5858
APPVEYOR_REPO_TAG: true
59+
60+
- provider: NuGet
61+
server: https://www.myget.org/F/commandline/api/v2/package
62+
api_key:
63+
secure: hSatieECG8d1qvzcQejfzQH8vQa4W0GbXU10/xVXvL4dloo1vZMlCdHZbpZkLMNW
64+
artifact: 'NuGetPackages'
65+
symbol_server: https://www.myget.org/F/commandline/symbols/api/v2/package

src/CommandLine/CommandLine.csproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<Description Condition="'$(BuildTarget)' != 'fsharp'">Terse syntax C# command line parser for .NET. For FSharp support see CommandLineParser.FSharp. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.</Description>
2020
<Description Condition="'$(BuildTarget)' == 'fsharp'">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>
2121
<Copyright>Copyright (c) 2005 - 2018 Giacomo Stelluti Scala &amp; Contributors</Copyright>
22-
<PackageLicenseUrl>https://raw.githubusercontent.com/gsscoder/commandline/master/doc/LICENSE</PackageLicenseUrl>
22+
<PackageLicenseFile>License.md</PackageLicenseFile>
2323
<PackageProjectUrl>https://github.com/commandlineparser/commandline</PackageProjectUrl>
2424
<PackageIconUrl>https://raw.githubusercontent.com/commandlineparser/commandline/master/art/CommandLine20.png</PackageIconUrl>
2525
<PackageTags>command line;commandline;argument;option;parser;parsing;library;syntax;shell</PackageTags>
@@ -44,4 +44,7 @@
4444
<ItemGroup Condition="'$(TargetFramework)' == 'net40' and '$(BuildTarget)' == 'fsharp'">
4545
<PackageReference Include="FSharp.Core" Version="4.0.0.1" Condition="'$(BuildTarget)' == 'fsharp'" />
4646
</ItemGroup>
47+
<ItemGroup>
48+
<None Include="$(SolutionDir)LICENSE.md" Pack="true" PackagePath=""/>
49+
</ItemGroup>
4750
</Project>

0 commit comments

Comments
 (0)