Skip to content

Commit

Permalink
nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
FolkerKinzel committed Aug 10, 2023
1 parent 3387bd0 commit 6abd325
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![GitHub](https://img.shields.io/github/license/FolkerKinzel/MimeTypes)](https://github.com/FolkerKinzel/MimeTypes/blob/master/LICENSE)

### .NET Library that supports working with Internet Media Types ("MIME Types")
[Project Reference and Release Notes](https://github.com/FolkerKinzel/MimeTypes/releases/tag/v4.0.0)
[Project Reference and Release Notes](https://github.com/FolkerKinzel/MimeTypes/releases/tag/v4.0.1)

- The static `MimeString` class works on strings and allows to convert file names into Internet Media Types ("MIME types") or Internet Media Types into appropriate file type extensions.
- The `MimeType` class allows:
Expand Down
Binary file not shown.
8 changes: 8 additions & 0 deletions src/FolkerKinzel.MimeTypes.Tests/MimeTypeInfoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ public void TryParseTest7()
Assert.AreEqual(ab, arr[0].Value.ToString(), false);
}

[TestMethod]
public void TryParseTest8()
{
const string input = "ibm pm metafile";

Assert.IsFalse(MimeTypeInfo.TryParse(input, out MimeTypeInfo mime));
}


[TestMethod()]
public void ToStringTest1()
Expand Down
6 changes: 3 additions & 3 deletions src/FolkerKinzel.MimeTypes/FolkerKinzel.MimeTypes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageIcon>Logo.png</PackageIcon>
<PackageReadmeFile>NugetReadme.md</PackageReadmeFile>
<PackageVersion>4.0.0</PackageVersion>
<FileVersion>4.0.0.42</FileVersion>
<PackageVersion>4.0.1</PackageVersion>
<FileVersion>4.0.1.3</FileVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<Description>.NET Library that supports working with Internet Media Types ("MIME Types")</Description>
<PackageTags>MIME Internet Media Type C# .NET</PackageTags>
<PackageReleaseNotes>https://github.com/FolkerKinzel/MimeTypes/releases/tag/v4.0.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/FolkerKinzel/MimeTypes/releases/tag/v4.0.1</PackageReleaseNotes>
<PackageIconUrl />
<PackageProjectUrl>https://github.com/FolkerKinzel/MimeTypes</PackageProjectUrl>
<RepositoryUrl>https://github.com/FolkerKinzel/MimeTypes.git</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/FolkerKinzel.MimeTypes/MimeTypeInfo_Parser _private.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static bool TryParseInternal(ref ReadOnlyMemory<char> value, out MimeTyp
return ReAllocate(capacity: value.Length,
hasParameters: hasParameters,
mediaPartSpan: mediaPartSpan,
parameterSpan: span.Slice(parameterSeparatorIndex),
parameterSpan: hasParameters ? span.Slice(parameterSeparatorIndex) : ReadOnlySpan<char>.Empty,
out mimeType);
}

Expand Down
2 changes: 1 addition & 1 deletion src/FolkerKinzel.MimeTypes/md/NugetReadme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


### .NET Library that supports working with Internet Media Types ("MIME Types")
[Project Reference and Release Notes](https://github.com/FolkerKinzel/MimeTypes/releases/tag/v4.0.0)
[Project Reference and Release Notes](https://github.com/FolkerKinzel/MimeTypes/releases/tag/v4.0.1)

- The static `MimeString` class works on strings and allows to convert file names into Internet Media Types ("MIME types") or Internet Media Types into appropriate file type extensions.
- The `MimeType` class allows:
Expand Down
15 changes: 2 additions & 13 deletions src/FolkerKinzel.MimeTypes/md/ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
- `MimeTypeParameterInfo` got two new properties:
```csharp
bool IsAsciiCharSetParameter { get; }
bool IsValueCaseSensitive { get; }
```

- `MimeTypeParameter` got four new properties:
```csharp
bool IsCharSetParameter { get; }
bool IsAccessTypeParameter { get; }
bool IsAsciiCharSetParameter { get; }
bool IsValueCaseSensitive { get; }
```
**Important update:**
- Fixes a bug in `MimeTypeInfo`


>**Project reference:** On some systems, the content of the CHM file in the Assets is blocked. Before opening the file right click on the file icon, select Properties, and check the "Allow" checkbox - if it is present - in the lower right corner of the General tab in the Properties dialog.
2 changes: 1 addition & 1 deletion src/MimeResourceCompiler/MimeResourceCompiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Copyright>Folker Kinzel</Copyright>
<Version>1.1.0</Version>
<FileVersion>1.1.0.52</FileVersion>
<FileVersion>1.1.0.54</FileVersion>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<Authors>Folker Kinzel</Authors>
<Copyright>Copyright © 2021 Folker Kinzel</Copyright>
Expand Down

0 comments on commit 6abd325

Please sign in to comment.