remove compat for netframework

This commit is contained in:
zznty
2022-06-05 15:43:15 +07:00
parent d2d96df8be
commit a1e9434444
7 changed files with 8 additions and 44 deletions

View File

@@ -1,8 +0,0 @@
#if NETFRAMEWORK
// ReSharper disable once CheckNamespace
namespace System.Runtime.CompilerServices;
public class IsExternalInit
{
}
#endif

View File

@@ -78,11 +78,7 @@ namespace Torch.API.WebAPI
if(File.Exists(path))
File.Delete(path);
#if NETFRAMEWORK
using var f = File.Create(path);
#else
await using var f = File.Create(path);
#endif
await s.CopyToAsync(f);
}
catch (Exception ex)