Skip to content

Commit

Permalink
Merge pull request #846 from RSuter/master
Browse files Browse the repository at this point in the history
Release v9.13.4
  • Loading branch information
RicoSuter authored Dec 13, 2018
2 parents 5b87d72 + 9996a0b commit 74fe2db
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.3;netstandard2.0;net451</TargetFrameworks>
<Description>JSON Schema reader, generator and validator for .NET</Description>
<Version>9.13.3</Version>
<Version>9.13.4</Version>
<PackageTags>json schema validation generator .net</PackageTags>
<Copyright>Copyright © Rico Suter, 2018</Copyright>
<PackageLicenseUrl>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</PackageLicenseUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.3;netstandard2.0;net451</TargetFrameworks>
<Description>JSON Schema reader, generator and validator for .NET</Description>
<Version>9.13.3</Version>
<Version>9.13.4</Version>
<PackageTags>json schema validation generator .net</PackageTags>
<Copyright>Copyright © Rico Suter, 2018</Copyright>
<PackageLicenseUrl>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</PackageLicenseUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% if HasInheritance -%}
super({% if GenerateConstructorInterface %}data{% endif %});
{% endif -%}
{% if GenerateConstructorInterface and Properties.size > 0 and (HasInheritance == false or ConvertConstructorInterfaceData) -%}
{% if GenerateConstructorInterface and (HasInheritance == false or ConvertConstructorInterfaceData) -%}
if (data) {
{% if HasInheritance == false -%}
for (var property in data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.3;netstandard2.0;net451</TargetFrameworks>
<Description>JSON Schema reader, generator and validator for .NET</Description>
<Version>9.13.3</Version>
<Version>9.13.4</Version>
<PackageTags>json schema validation generator .net</PackageTags>
<Copyright>Copyright © Rico Suter, 2018</Copyright>
<PackageLicenseUrl>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</PackageLicenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/NJsonSchema.Yaml/NJsonSchema.Yaml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.3;netstandard2.0;net45</TargetFrameworks>
<Description>JSON Schema reader, generator and validator for .NET</Description>
<Version>9.13.3</Version>
<Version>9.13.4</Version>
<PackageTags>json schema validation generator .net</PackageTags>
<Copyright>Copyright © Rico Suter, 2018</Copyright>
<PackageLicenseUrl>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</PackageLicenseUrl>
Expand Down
15 changes: 8 additions & 7 deletions src/NJsonSchema/Infrastructure/XmlDocumentationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -521,20 +521,21 @@ private static async Task<string> GetXmlDocumentationPathAsync(dynamic assembly)
if (assembly == null)
return null;

if (string.IsNullOrEmpty(assembly.Location))
return null;

var assemblyName = assembly.GetName();
if (string.IsNullOrEmpty(assemblyName.Name))
return null;

if (Cache.ContainsKey(assemblyName.FullName))
return null;

var assemblyDirectory = DynamicApis.PathGetDirectoryName((string)assembly.Location);
var path = DynamicApis.PathCombine(assemblyDirectory, (string)assemblyName.Name + ".xml");
if (await DynamicApis.FileExistsAsync(path).ConfigureAwait(false))
return path;
string path;
if (!string.IsNullOrEmpty(assembly.Location))
{
var assemblyDirectory = DynamicApis.PathGetDirectoryName((string)assembly.Location);
path = DynamicApis.PathCombine(assemblyDirectory, (string)assemblyName.Name + ".xml");
if (await DynamicApis.FileExistsAsync(path).ConfigureAwait(false))
return path;
}

if (ReflectionExtensions.HasProperty(assembly, "CodeBase"))
{
Expand Down
2 changes: 1 addition & 1 deletion src/NJsonSchema/NJsonSchema.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.0;netstandard2.0;net40;net45</TargetFrameworks>
<Description>JSON Schema reader, generator and validator for .NET</Description>
<Version>9.13.3</Version>
<Version>9.13.4</Version>
<PackageTags>json schema validation generator .net</PackageTags>
<Copyright>Copyright © Rico Suter, 2018</Copyright>
<PackageLicenseUrl>https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md</PackageLicenseUrl>
Expand Down

0 comments on commit 74fe2db

Please sign in to comment.