ignore using warning

This commit is contained in:
Tsanie Lily 2020-05-04 15:52:56 +08:00
parent 67d4955664
commit 795aa09152
2 changed files with 8 additions and 2 deletions

@ -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 = "<Pending>")]

@ -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 = "<Pending>")]
public static async Task DownloadImage(string url)
{
var uri = new Uri(url);