diff --git a/Community.CsharpSqlite/Community.CsharpSqlite.csproj b/Community.CsharpSqlite/Community.CsharpSqlite.csproj index cddfb3a2d..8e78452f8 100644 --- a/Community.CsharpSqlite/Community.CsharpSqlite.csproj +++ b/Community.CsharpSqlite/Community.CsharpSqlite.csproj @@ -1,7 +1,7 @@  - Debug + Release AnyCPU 9.0.30729 2.0 diff --git a/Localizations/Localizations.csproj b/Localizations/Localizations.csproj index 076b10145..1c8ecc458 100644 --- a/Localizations/Localizations.csproj +++ b/Localizations/Localizations.csproj @@ -1,7 +1,7 @@  - Debug + Release AnyCPU 8.0.50727 2.0 diff --git a/Localizations/TranslationMap.cs b/Localizations/TranslationMap.cs index f2c624603..f54ee5b9f 100644 --- a/Localizations/TranslationMap.cs +++ b/Localizations/TranslationMap.cs @@ -177,5 +177,12 @@ namespace MatterHackers.Localizations return tranlatedString; } + + public static void AssertDebugNotDefined() + { +#if DEBUG + throw new Exception("DEBUG is defined and should not be!"); +#endif + } } } diff --git a/MatterControl.csproj b/MatterControl.csproj index dc45650af..4268c2ddf 100644 --- a/MatterControl.csproj +++ b/MatterControl.csproj @@ -1,7 +1,7 @@  - Debug + Release AnyCPU 8.0.50727 2.0 diff --git a/PluginSystem/MatterControlPluginBase.cs b/PluginSystem/MatterControlPluginBase.cs index 16615a54e..f4d0ecf89 100644 --- a/PluginSystem/MatterControlPluginBase.cs +++ b/PluginSystem/MatterControlPluginBase.cs @@ -52,5 +52,12 @@ namespace MatterHackers.MatterControl.PluginSystem return null; } + + public static void AssertDebugNotDefined() + { +#if DEBUG + throw new Exception("DEBUG is defined and should not be!"); +#endif + } } } diff --git a/PluginSystem/MatterControlPluginSystem.csproj b/PluginSystem/MatterControlPluginSystem.csproj index ef141d2bd..a800b225c 100644 --- a/PluginSystem/MatterControlPluginSystem.csproj +++ b/PluginSystem/MatterControlPluginSystem.csproj @@ -1,7 +1,7 @@  - Debug + Release AnyCPU 8.0.50727 2.0 diff --git a/PrinterDriverInstaller/InfInstaller.csproj b/PrinterDriverInstaller/InfInstaller.csproj index 86107a5e6..a96c5a201 100644 --- a/PrinterDriverInstaller/InfInstaller.csproj +++ b/PrinterDriverInstaller/InfInstaller.csproj @@ -1,7 +1,7 @@  - Debug + Release AnyCPU 8.0.50727 2.0 diff --git a/Testing/TestingDispatch.cs b/Testing/TestingDispatch.cs index f48b9b64f..c469350d6 100644 --- a/Testing/TestingDispatch.cs +++ b/Testing/TestingDispatch.cs @@ -38,6 +38,33 @@ namespace MatterHackers.MatterControl.Testing try { MatterHackers.Agg.UI.SystemWindow.AssertDebugNotDefined(); } catch (Exception e) { DumpException(e); } + try { ClipperLib.Clipper.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.Csg.CSGTests.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.Agg.ImageProcessing.InvertLightness.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.Localizations.TranslationMap.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.MarchingSquares.MarchingSquaresByte.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.MatterControl.PluginSystem.MatterControlPlugin.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.MatterSlice.MatterSlice.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.MeshVisualizer.MeshViewerWidget.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.RenderOpenGl.GLMeshPlugin.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + if (!HadErrors) { File.Delete(errorLogFileName);