给一些报错添加跳过

This commit is contained in:
ZouJin 2024-04-21 01:07:02 +08:00
parent 934595bd6d
commit 537e0a549c
2 changed files with 6 additions and 1 deletions

View File

@ -68,7 +68,8 @@ namespace VPet_Simulator.Windows
if (ErrorReport.Contains(expt))
return;//防止重复报错
ErrorReport.Add(expt);
if (expt.Contains("MainWindow.Close"))
if (expt.Contains("MainWindow.Close") || expt.Contains("System.Windows.Window.DragMove") ||
expt.Contains("winConsole"))
return;
else if ((!isFatality && MainWindow != null && ((MainWindow)MainWindow).GameSavesData?.GameSave != null &&
(((MainWindow)MainWindow).GameSavesData.GameSave.Money > int.MaxValue || ((MainWindow)MainWindow).GameSavesData.GameSave.Exp > int.MaxValue)

View File

@ -40,22 +40,26 @@
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>$(DefineConstants);X64</DefineConstants>
<NoWarn>1701;1702</NoWarn>
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<PlatformTarget>x64</PlatformTarget>
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>$(DefineConstants);X64</DefineConstants>
<NoWarn>1701;1702</NoWarn>
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PlatformTarget>x86</PlatformTarget>
<OutputPath>bin\x86\Debug\</OutputPath>
<NoWarn>1701;1702</NoWarn>
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<PlatformTarget>x86</PlatformTarget>
<OutputPath>bin\x86\Release\</OutputPath>
<NoWarn>1701;1702</NoWarn>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyTrademarkAttribute">