|
| 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