mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-16 21:38:40 +00:00
Bump PKHeX.Core to C#9 language version
Add FrameworkUtil.cs which is compiled if the build isn't net5+, needed to support init setters & records
This commit is contained in:
parent
b71df7b064
commit
6d030831ab
4 changed files with 24 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
<PackageIconUrl>https://github.com/kwsch/PKHeX/blob/master/PKHeX.WinForms/icon.ico</PackageIconUrl>
|
||||
<PackageProjectUrl />
|
||||
<RepositoryUrl>https://github.com/kwsch/PKHeX</RepositoryUrl>
|
||||
<LangVersion>8</LangVersion>
|
||||
<LangVersion>9</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
21
PKHeX.Core/Util/FrameworkUtil.cs
Normal file
21
PKHeX.Core/Util/FrameworkUtil.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
#if !NET5
|
||||
#pragma warning disable
|
||||
// ReSharper disable once UnusedType.Global
|
||||
|
||||
namespace System.Runtime.CompilerServices
|
||||
{
|
||||
using Diagnostics;
|
||||
using Diagnostics.CodeAnalysis;
|
||||
|
||||
/// <summary>
|
||||
/// Reserved to be used by the compiler for tracking metadata.
|
||||
/// This class should not be used by developers in source code.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage, DebuggerNonUserCode]
|
||||
#endif
|
||||
internal static class IsExternalInit
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore
|
1
PKHeX.Drawing/Properties/Resources.Designer.cs
generated
1
PKHeX.Drawing/Properties/Resources.Designer.cs
generated
|
@ -8,6 +8,7 @@
|
|||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
[assembly: System.Resources.NeutralResourcesLanguage("en")]
|
||||
namespace PKHeX.Drawing.Properties {
|
||||
using System;
|
||||
|
||||
|
|
1
PKHeX.WinForms/Properties/Resources.Designer.cs
generated
1
PKHeX.WinForms/Properties/Resources.Designer.cs
generated
|
@ -8,6 +8,7 @@
|
|||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
[assembly: System.Resources.NeutralResourcesLanguage("en")]
|
||||
namespace PKHeX.WinForms.Properties {
|
||||
using System;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue