Skip to content

Commit

Permalink
.NET 5 explicit support
Browse files Browse the repository at this point in the history
Assembly CodeBase deprecation fix
  • Loading branch information
i4004 committed Apr 21, 2021
1 parent b559cfa commit a0cfd66
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Simplify.System/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public string Title
return titleAttribute.Title;
}

return global::System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase ?? throw new InvalidOperationException());
return global::System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location ?? throw new InvalidOperationException());
}
}

Expand Down
11 changes: 11 additions & 0 deletions src/Simplify.System/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

## [1.6.1] - 2021-04-21

### Added

- .NET 5 explicit support

### Fixed

- Assembly CodeBase deprecation fix
11 changes: 4 additions & 7 deletions src/Simplify.System/Simplify.System.Sources.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@
<title>Simplify.System.Sources</title>
<authors>Alexander Krylkov</authors>
<projectUrl>https://github.com/SimplifyNet/Simplify/wiki/Simplify.System</projectUrl>
<iconUrl>https://raw.githubusercontent.com/SimplifyNet/Images/master/Logo.png</iconUrl>
<icon>images\icon.png</icon>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Core classes for applications and libraries.</description>
<summary>Core classes for applications and libraries.</summary>

<releaseNotes>
New
* Customizable and chained object-to-object converters (#256)
Updates
* Environment checks in ApplicationEnvironment
</releaseNotes>
<releaseNotes>See CHANGELOG.md for details</releaseNotes>

<copyright>Licensed under LGPL</copyright>
<language>en-US</language>
Expand Down Expand Up @@ -63,5 +58,7 @@
<file src="SystemTimeProvider.cs" target="contentFiles\cs\any\App_Packages\Simplify.System.Sources.$version$\SystemTimeProvider.cs" />
<file src="WeakSingleton.cs" target="content/App_Packages/Simplify.System.Sources.$version$/WeakSingleton.cs" />
<file src="WeakSingleton.cs" target="contentFiles\cs\any\App_Packages\Simplify.System.Sources.$version$\WeakSingleton.cs" />
<file src="..\..\images\icon.png" target="images\" />
<file src="CHANGELOG.md" target="\" />
</files>
</package>
11 changes: 5 additions & 6 deletions src/Simplify.System/Simplify.System.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net452</TargetFrameworks>
<TargetFrameworks>net5.0;netstandard2.0;netcoreapp3.1;net452</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<OutputPath>bin\Any CPU\$(Configuration)\</OutputPath>
Expand All @@ -9,11 +9,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<Version>1.6</Version>
<PackageReleaseNotes>
New
* WeakSingleton (#254)
</PackageReleaseNotes>
<Version>1.6.1</Version>

<Authors>Alexander Krylkov</Authors>
<Product>Simplify</Product>
Expand All @@ -23,8 +19,11 @@
<PackageIcon>icon.png</PackageIcon>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageTags>.NET</PackageTags>

<PackageReleaseNotes>See https://github.com/SimplifyNet/Simplify/tree/master/src/Simplify.System/CHANGELOG.md for details</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\images\icon.png" Pack="true" Visible="false" PackagePath="" />
<None Include="CHANGELOG.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>

0 comments on commit a0cfd66

Please sign in to comment.