Skip to content

Commit

Permalink
Added net451 framework support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvydas Sidorenko committed Sep 29, 2016
1 parent cbd0752 commit c99a6b9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 25 deletions.
2 changes: 1 addition & 1 deletion EpubSharp.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

"dependencies": {
"dotnet-test-nunit": "3.4.0-beta-2",
"EpubSharp": "1.1.2-beta",
"EpubSharp": "1.1.3-beta",
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
Expand Down
15 changes: 0 additions & 15 deletions EpubSharp/Utils/XmlExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@ namespace EpubSharp
{
internal static class XmlExt
{
public static XmlDocument LoadDocument(Stream stream)
{
var xmlReaderSettings = new XmlReaderSettings
{
//XmlResolver = null,
DtdProcessing = DtdProcessing.Ignore
};
using (var reader = XmlReader.Create(stream, xmlReaderSettings))
{
var doc = new XmlDocument();
doc.Load(reader);
return doc;
}
}

public static ICollection<string> AsStringList(this IEnumerable<XElement> self)
{
return self.Select(elem => elem.Value).ToList();
Expand Down
26 changes: 17 additions & 9 deletions EpubSharp/project.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
{
"version": "1.1.2-beta",
"version": "1.1.3-beta",

"dependencies": {
"NETStandard.Library": "1.6.0",
"System.Xml.XmlDocument": "4.0.1"
},
"dependencies": {
},

"frameworks": {
"netstandard1.3": {
"imports": "dnxcore50"
"frameworks": {
"netstandard1.3": {
"imports": "dnxcore50",
"dependencies": {
"NETStandard.Library": "1.6.0"
}
},
"net451": {
"frameworkAssemblies": {
"System.IO.Compression": "4.0.0.0",
"System.Xml": "4.0.0.0",
"System.Xml.Linq": "4.0.0.0"
}
}
}
}
}

0 comments on commit c99a6b9

Please sign in to comment.