Skip to content

Commit

Permalink
fix for #809
Browse files Browse the repository at this point in the history
Added targets for Net5.0 and Net6.0 libraries
  • Loading branch information
ChrisPulman committed Nov 3, 2021
1 parent f8f0114 commit 84d2d72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public static void RegisterPlatformBitmapLoader(this IMutableDependencyResolver
throw new ArgumentNullException(nameof(resolver));
}

#if !NETSTANDARD
// not supported in netstandard2.0
#if !NETSTANDARD && !NET5_0 && !NET6_0
// not supported in netstandard2.0 or NET5/6 library
if (!resolver.HasRegistration(typeof(IBitmapLoader)))
{
resolver.RegisterLazySingleton(() => new PlatformBitmapLoader(), typeof(IBitmapLoader));
Expand Down
2 changes: 1 addition & 1 deletion src/Splat.Drawing/Splat.Drawing.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="MSBuild.Sdk.Extras">

<PropertyGroup>
<TargetFrameworks>MonoAndroid90;Xamarin.iOS10;Xamarin.Mac20;Xamarin.TVOS10;Xamarin.WatchOS10;tizen40;netstandard2.0;net6.0-android;net6.0-ios;net6.0-tvos;net6.0-macos</TargetFrameworks>
<TargetFrameworks>MonoAndroid90;Xamarin.iOS10;Xamarin.Mac20;Xamarin.TVOS10;Xamarin.WatchOS10;tizen40;netstandard2.0;net5.0;net6.0;net6.0-android;net6.0-ios;net6.0-tvos;net6.0-macos</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net461;net472;uap10.0.16299;netcoreapp3.1;net5.0-windows;net6.0-windows</TargetFrameworks>
<RootNamespace>Splat</RootNamespace>
<Authors>.NET Foundation and Contributors</Authors>
Expand Down

0 comments on commit 84d2d72

Please sign in to comment.