暂时屏蔽CS8601-8604的可空报警

This commit is contained in:
2023-11-07 11:01:28 +08:00
parent 0e67f002a7
commit 886a365aa0
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);CS1591;</NoWarn>
<NoWarn>$(NoWarn);CS1570;CS1587;CS1591;CS8601;CS8602;CS8603;CS8618;</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

View File

@@ -28,7 +28,7 @@ public class TemplateContext
#if DEBUG
BasePath = CodeHelper.GetSolutionDirectoryPath(false)!;
#else
BasePath = FileVariable.GenerateCodePath;
BasePath = JNPF.Common.Configuration.FileVariable.GenerateCodePath;
#endif
ModuleCode = moduleCode;
}