Skip to content

Commit f40085d

Browse files
authored
Merge pull request #9 from crozone/feature/2.2.1
Release v2.2.1
2 parents 43aa9a8 + 2f92bae commit f40085d

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

FormatWith/FormatWith.csproj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<TargetFramework>netstandard2.0</TargetFramework>
45
<Title>FormatWith</Title>
@@ -7,7 +8,7 @@
78
<AssemblyName>FormatWith</AssemblyName>
89
<AssemblyTitle>FormatWith</AssemblyTitle>
910
<PackageId>FormatWith</PackageId>
10-
<VersionPrefix>2.2.0</VersionPrefix>
11+
<VersionPrefix>2.2.1</VersionPrefix>
1112
<Authors>Ryan Crosby</Authors>
1213
<Copyright>Copyright © Ryan Crosby 2017</Copyright>
1314
<PackageTags>named string formatter extension NetStandard 2.0</PackageTags>
@@ -23,6 +24,15 @@
2324
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2425
<RepositoryUrl>https://github.com/crozone/FormatWith</RepositoryUrl>
2526
<RepositoryType>git</RepositoryType>
26-
<PackageReleaseNotes>Added handler overload to FormatWith and FormattableWith.</PackageReleaseNotes>
27+
<PackageReleaseNotes>Include XML documentation in package.</PackageReleaseNotes>
2728
</PropertyGroup>
29+
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
31+
<DocumentationFile>bin\Debug\netstandard2.0\FormatWith.xml</DocumentationFile>
32+
</PropertyGroup>
33+
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
35+
<DocumentationFile>bin\Release\netstandard2.0\FormatWith.xml</DocumentationFile>
36+
</PropertyGroup>
37+
2838
</Project>

FormatWith/StringExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
using System.Text;
55
using FormatWith.Internal;
66
using System.Runtime.CompilerServices;
7+
using System.Collections;
78

89
namespace FormatWith
910
{
11+
/// <summary>
12+
/// The string extensions provided by FormatWith for string formatting.
13+
/// </summary>
1014
public static class StringExtensions
1115
{
1216
#region FormatWith Overloads
@@ -100,10 +104,6 @@ public static string FormatWith(
100104
/// </summary>
101105
/// <param name="formatString">The format string, containing keys like {foo}</param>
102106
/// <param name="replacements">An <see cref="IDictionary"/> with keys and values to inject into the string</param>
103-
/// <param name="missingKeyBehaviour">The behaviour to use when the format string contains a parameter that is not present in the lookup dictionary</param>
104-
/// <param name="fallbackReplacementValue">When the <see cref="MissingKeyBehaviour.ReplaceWithFallback"/> is specified, this string is used as a fallback replacement value when the parameter is present in the lookup dictionary.</param>
105-
/// <param name="openBraceChar">The character used to begin parameters</param>
106-
/// <param name="closeBraceChar">The character used to end parameters</param>
107107
/// <returns>The formatted string</returns>
108108
public static string FormatWith(this string formatString, IDictionary<string, object> replacements)
109109
{
@@ -343,7 +343,7 @@ public static FormattableString FormattableWith(
343343
#endregion
344344

345345
/// <summary>
346-
/// Gets an <see cref="IEnumerable{string}"/> that will return all format parameters used within the format string.
346+
/// Gets an <see cref="IEnumerable{String}"/> that will return all format parameters used within the format string.
347347
/// </summary>
348348
/// <param name="formatString">The format string to be parsed</param>
349349
/// <param name="openBraceChar">The character used to begin parameters</param>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FormatWith
22

3-
[![NuGet](https://img.shields.io/badge/nuget-2.2.0-green.svg)](https://www.nuget.org/packages/FormatWith/)
3+
[![NuGet](https://img.shields.io/badge/nuget-2.2.1-green.svg)](https://www.nuget.org/packages/FormatWith/)
44
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)]()
55

66
A set of string extension methods for performing {named} {{parameterized}} string formatting, written for NetStandard 2.0.

0 commit comments

Comments
 (0)