Skip to content

Commit 46c43ce

Browse files
committed
Update relase notes and version for 2.2.0-rc
1 parent b5f6363 commit 46c43ce

File tree

4 files changed

+54
-4
lines changed

4 files changed

+54
-4
lines changed

CommandLineUtils.sln

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
23
# Visual Studio 15
34
VisualStudioVersion = 15.0.27130.2026
45
MinimumVisualStudioVersion = 15.0.26124.0
@@ -30,6 +31,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "files", "files", "{509D6286
3031
NOTICE.txt = NOTICE.txt
3132
NuGet.config = NuGet.config
3233
README.md = README.md
34+
releasenotes.props = releasenotes.props
3335
version.props = version.props
3436
EndProjectSection
3537
EndProject
@@ -41,7 +43,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Prompt", "samples\Prompt\Pr
4143
EndProject
4244
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Validation", "samples\Validation\Validation.csproj", "{72E4413E-9CDE-4850-93E9-4A83673EC0B0}"
4345
EndProject
44-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conventions", "samples\Conventions\Conventions.csproj", "{C6428235-2B21-4513-A8AC-8B25DC775A57}"
46+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Conventions", "samples\Conventions\Conventions.csproj", "{C6428235-2B21-4513-A8AC-8B25DC775A57}"
4547
EndProject
4648
Global
4749
GlobalSection(SolutionConfigurationPlatforms) = preSolution

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project>
22

33
<Import Project="version.props" />
4+
<Import Project="releasenotes.props" />
45

56
<PropertyGroup>
67
<Authors>Nate McMaster</Authors>
@@ -10,7 +11,6 @@
1011
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
1112
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
1213
<PackageProjectUrl>https://github.com/natemcmaster/CommandLineUtils</PackageProjectUrl>
13-
<PackageReleaseNotes>See https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v$(VersionPrefix.Replace('.','')) for release notes.</PackageReleaseNotes>
1414
<RepositoryUrl>https://github.com/natemcmaster/CommandLineUtils.git</RepositoryUrl>
1515
<RepositoryType>git</RepositoryType>
1616
<SourceLinkCreate>true</SourceLinkCreate>

releasenotes.props

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<Project>
2+
<PropertyGroup>
3+
<PackageReleaseNotes>
4+
<![CDATA[
5+
New features:
6+
- Added more validation attributes.
7+
- Add the `[FileExists]` attribute
8+
- Add the `[FileOrDirectoryExists]` attribute
9+
- Add the `[DirectoryExists]` attribute
10+
- Add the `[LegalFilePath]` attribute
11+
- Add the `[AllowedValues]` attribute
12+
- Added a new, fluent API for validation.
13+
- Added `Option().Accepts()` and `Argument().Accepts()`
14+
- Add `.ExistingFile()`
15+
- Add `.ExistingFileOrDirectory()`
16+
- Add `.ExistingDirectory()`
17+
- Add `.EmailAddress()`
18+
- Add `.LegalFilePath()`
19+
- Add `.MinLength(length)`
20+
- Add `.MaxLength(length)`
21+
- Add `.RegularExpression(pattern)`
22+
- Add `.Values(string[] allowedValues)`
23+
- Add `.Range(min, max)`
24+
- Add `CommandOptionType.SingleOrNoValue`.
25+
- Options of this type can be a switch, or have a value but only in the form `--param:value` or `--param=value`.
26+
- Support mapping `ValueTuple<bool,T>` to `CommandOptionType.SingleOrNoValue`
27+
- Generic commands, options, and arguments
28+
- Added `CommandLineApplication<TModel>`. This allows associating an application with a specific .NET type
29+
- Add support for `Option<T>` and `Argument<T>`
30+
- Convention API
31+
- Adds support for writing your own conventions to convert command line arguments into a .NET type
32+
- Add API to use a dozen of built-in conventions
33+
34+
Other enhancements:
35+
- Support parsing enums
36+
- @rmcc13 - `HelpOption` can be set to be inherited by all subcommands
37+
- @atruskie - Support for parsing double and floats
38+
- @sebastienros - Support for case-insensitive options
39+
- @atruskie: Add support for user-defined value parsers using `IValueParser` and `CommandLineApplication.ValueParsers`.
40+
- Add support for constructor injection and dependency injection by providing a custom service provider
41+
- Parse these values to boolean: T, t, F, f, 0, 1
42+
- Add `VersionOptionFromMember` to use a property or method as the source of version information
43+
44+
See more details here: https://github.com/natemcmaster/CommandLineUtils/blob/master/CHANGELOG.md#v$(VersionPrefix.Replace('.',''))
45+
]]>
46+
</PackageReleaseNotes>
47+
</PropertyGroup>
48+
</Project>

version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<VersionPrefix>2.2.0</VersionPrefix>
4-
<VersionSuffix>beta</VersionSuffix>
4+
<VersionSuffix>rc</VersionSuffix>
55
<PackageVersion Condition="'$(APPVEYOR_REPO_TAG)' == 'true' AND '$(VersionSuffix)' != ''">$(VersionPrefix)-$(VersionSuffix)</PackageVersion>
66
<PackageVersion Condition="'$(APPVEYOR_REPO_TAG)' == 'true' AND '$(VersionSuffix)' == 'rtm'">$(VersionPrefix)</PackageVersion>
77

0 commit comments

Comments
 (0)