diff --git a/Pixiview/GlobalSuppressions.cs b/Pixiview/GlobalSuppressions.cs new file mode 100644 index 0000000..6b30c4a --- /dev/null +++ b/Pixiview/GlobalSuppressions.cs @@ -0,0 +1,8 @@ +// This file is used by Code Analysis to maintain SuppressMessage +// attributes that are applied to this project. +// Project-level suppressions either have no target or are given +// a specific target and scoped to a namespace, type, member, etc. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Style", "IDE0063:Use simple 'using' statement", Justification = "")] diff --git a/Pixiview/Utils/Stores.cs b/Pixiview/Utils/Stores.cs index f435a9e..140fbc0 100644 --- a/Pixiview/Utils/Stores.cs +++ b/Pixiview/Utils/Stores.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics.CodeAnalysis; using System.IO; using System.Net; using System.Net.Http; @@ -13,7 +12,6 @@ namespace Pixiview.Utils //public static readonly string CacheFolder = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache); public const string ImageFolder = "images"; - [SuppressMessage("Style", "IDE0063:Use simple 'using' statement", Justification = "")] public static async Task DownloadImage(string url) { var uri = new Uri(url);