Skip to content

Commit

Permalink
Attempt to make it compile on .NET 3.5 again
Browse files Browse the repository at this point in the history
  • Loading branch information
chucker committed May 9, 2019
1 parent e3fd358 commit 86535eb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Source/SvgDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ public class SvgDocument : SvgFragment, ITypeDescriptorContext

private static int GetSystemDpi()
{
bool isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
bool isWindows;

#if NETCORE
isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
#else
isWindows = true;
#endif

if (isWindows)
{
Expand Down Expand Up @@ -115,7 +121,7 @@ public void OverwriteIdManager(SvgElementIdManager manager)
/// </summary>
public string ExternalCSSHref { get; set; }

#region ITypeDescriptorContext Members
#region ITypeDescriptorContext Members

IContainer ITypeDescriptorContext.Container
{
Expand Down Expand Up @@ -147,7 +153,7 @@ object IServiceProvider.GetService(Type serviceType)
throw new NotImplementedException();
}

#endregion
#endregion

/// <summary>
/// Retrieves the <see cref="SvgElement"/> with the specified ID.
Expand Down

0 comments on commit 86535eb

Please sign in to comment.