Skip to content

Commit

Permalink
Fix registration outside of SharedLibraries (#927)
Browse files Browse the repository at this point in the history
* Fix

* remove net5.0 condition

Co-authored-by: Tomáš Filip <tomas.filip@meac.cz>
  • Loading branch information
tomasfil and Tomáš Filip authored Jun 27, 2022
1 parent 60ddda8 commit dbd6a43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Directory.build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@
<PropertyGroup Condition="$(TargetFramework.StartsWith('tizen'))">
<DefineConstants>$(DefineConstants);TIZEN</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.Equals('net6.0')) or $(TargetFramework.Equals('netstandard2.1')) or $(TargetFramework.Equals('netstandard2.0'))">
<DefineConstants>$(DefineConstants);IS_SHARED_NET</DefineConstants>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void RegisterPlatformBitmapLoader(this IMutableDependencyResolver
throw new ArgumentNullException(nameof(resolver));
}

#if !NETSTANDARD && !NET5_0 && !NET6_0
#if !IS_SHARED_NET
// not supported in netstandard2.0 or NET5/6 library
if (!resolver.HasRegistration(typeof(IBitmapLoader)))
{
Expand Down

0 comments on commit dbd6a43

Please sign in to comment.