Skip to content

Commit bda7bb4

Browse files
authored
Merge pull request #66 from ndw/readme
Added a README to the nuget package
2 parents effab43 + ece8e93 commit bda7bb4

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

XmlResolver/XmlResolver/XmlResolver.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<RepositoryType>git</RepositoryType>
1515
<PackageReleaseNotes>A catalog-based XML Resolver API for .NET</PackageReleaseNotes>
1616
<PackageSummary>This is an XML Catalog resolver for .NET.</PackageSummary>
17+
<PackageReadmeFile>readme.md</PackageReadmeFile>
1718
</PropertyGroup>
1819

1920
<ItemGroup>
@@ -26,6 +27,6 @@
2627
</ItemGroup>
2728

2829
<ItemGroup>
30+
<None Include="../readme.md" Pack="true" PackagePath=""/>
2931
</ItemGroup>
30-
3132
</Project>

XmlResolver/readme.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# README
2+
3+
A C# implementation of the XML Resolver.
4+
5+
This package implements an OASIS catalog-based XML resource resolver.
6+
7+
See [The XML Resolver Project](https://xmlresolver.org/) for more details.
8+
9+
## APIs
10+
11+
This API implements `System.Xml.XmlResolver`.
12+
13+
The resolver can read catalogs from the local filesystem, from ZIP
14+
files, or from assemblies bundled with your application.
15+
16+
## Change Log
17+
18+
This release fixes a bug in how assembly catalogs are located, updates
19+
the release to use .NET 6, and replaces the now deprecated `WebClient`
20+
API with the `System.Net.Http` URI.
21+
22+
## Backwards incompatible changes
23+
24+
Version 2.0.0 introduces a few backwards incompatible changes.
25+
26+
### Loading assembly catalogs
27+
28+
Starting with version 2.0.0, assembly catalogs are loaded using their
29+
`AssemblyName`, not their path. Where previously you might have specified
30+
31+
```
32+
config.SetFeature(ResolverFeature.ASSEMBLY_CATALOGS, "MyAssembly.dll");
33+
```
34+
35+
you must now use the assembly name:
36+
37+
```
38+
config.SetFeature(ResolverFeature.ASSEMBLY_CATALOGS,
39+
"MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null");
40+
```
41+
42+
You can leave the version out of the name.
43+
44+
### The ResourceConnection class
45+
46+
The `StatusCode` property of the `ResourceConnection` class is no longer an integer.
47+
For compatibility with `System.Net.Http` it is a `HttpStatusCode`.

0 commit comments

Comments
 (0)