From e43cad72370ab4d7aa3725faa7b92dacd3afe591 Mon Sep 17 00:00:00 2001 From: soygul Date: Fri, 4 May 2012 18:34:56 +0200 Subject: [PATCH] Moved repo from CodePlex --- .gitignore | 108 ++ Documentation/Documentation.csproj | 75 ++ Documentation/html/content/blank.html | 1 + .../html/content/getting_started.html | 1 + Documentation/html/index.html | 9 + Documentation/html/toc.html | 9 + .../NBug.Examples.Console.csproj | 138 ++ Examples/NBug.Examples.Console/Program.cs | 32 + .../Properties/AssemblyInfo.cs | 29 + Examples/NBug.Examples.Console/app.config | 3 + Examples/NBug.Examples.WPF/App.xaml | 8 + Examples/NBug.Examples.WPF/App.xaml.cs | 31 + Examples/NBug.Examples.WPF/MainWindow.xaml | 15 + Examples/NBug.Examples.WPF/MainWindow.xaml.cs | 54 + .../NBug.Examples.WPF.csproj | 188 +++ .../Properties/AssemblyInfo.cs | 36 + .../Properties/Resources.Designer.cs | 63 + .../Properties/Resources.resx | 117 ++ .../Properties/Settings.Designer.cs | 26 + .../Properties/Settings.settings | 7 + Examples/NBug.Examples.WPF/app.config | 6 + .../MainForm.Designer.cs | 100 ++ Examples/NBug.Examples.WinForms/MainForm.cs | 50 + Examples/NBug.Examples.WinForms/MainForm.resx | 163 +++ .../NBug.Examples.WinForms.csproj | 171 +++ Examples/NBug.Examples.WinForms/Program.cs | 42 + .../Properties/AssemblyInfo.cs | 29 + .../Properties/Resources.Designer.cs | 63 + .../Properties/Resources.resx | 117 ++ .../Properties/Settings.Designer.cs | 26 + .../Properties/Settings.settings | 5 + Examples/NBug.Examples.WinForms/app.config | 6 + GlobalAssemblyInfo.cs | 61 + NBug.1.2.dotCover | 11 + NBug.Configurator/AboutBox.Designer.cs | 267 ++++ NBug.Configurator/AboutBox.cs | 148 +++ NBug.Configurator/AboutBox.resx | 567 +++++++++ NBug.Configurator/MainForm.Designer.cs | 1132 +++++++++++++++++ NBug.Configurator/MainForm.cs | 461 +++++++ NBug.Configurator/MainForm.resx | 257 ++++ NBug.Configurator/NBug.Configurator.csproj | 241 ++++ NBug.Configurator/PreviewForm.Designer.cs | 91 ++ NBug.Configurator/PreviewForm.cs | 62 + NBug.Configurator/PreviewForm.resx | 120 ++ NBug.Configurator/Program.cs | 25 + NBug.Configurator/Properties/AssemblyInfo.cs | 29 + .../Properties/Resources.Designer.cs | 91 ++ NBug.Configurator/Properties/Resources.resx | 198 +++ .../Properties/Settings.Designer.cs | 26 + .../Properties/Settings.settings | 7 + .../SubmitPanels/ISubmitPanel.cs | 13 + .../SubmitPanels/PanelLoader.Designer.cs | 98 ++ NBug.Configurator/SubmitPanels/PanelLoader.cs | 99 ++ .../SubmitPanels/PanelLoader.resx | 120 ++ .../SubmitPanels/Tracker/Redmine.Designer.cs | 403 ++++++ .../SubmitPanels/Tracker/Redmine.cs | 108 ++ .../SubmitPanels/Tracker/Redmine.resx | 120 ++ .../SubmitPanels/Web/Ftp.Designer.cs | 199 +++ NBug.Configurator/SubmitPanels/Web/Ftp.cs | 89 ++ NBug.Configurator/SubmitPanels/Web/Ftp.resx | 120 ++ .../SubmitPanels/Web/Http.Designer.cs | 110 ++ NBug.Configurator/SubmitPanels/Web/Http.cs | 47 + NBug.Configurator/SubmitPanels/Web/Http.resx | 143 +++ .../SubmitPanels/Web/Mail.Designer.cs | 637 ++++++++++ NBug.Configurator/SubmitPanels/Web/Mail.cs | 222 ++++ NBug.Configurator/SubmitPanels/Web/Mail.resx | 120 ++ NBug.Configurator/app.config | 3 + NBug.Configurator/resources/AboutBox.png | Bin 0 -> 8656 bytes NBug.Configurator/resources/Icon.png | Bin 0 -> 2728 bytes NBug.Configurator/resources/Icon_16.png | Bin 0 -> 1630 bytes NBug.Configurator/resources/help.png | Bin 0 -> 786 bytes NBug.Configurator/resources/run.png | Bin 0 -> 3572 bytes NBug.Configurator/resources/save.png | Bin 0 -> 3548 bytes NBug.Tests/Functional/DeveloperUITests.cs | 70 + NBug.Tests/Functional/SettingsUITests.cs | 349 +++++ NBug.Tests/Functional/WinFormsUITests.cs | 42 + NBug.Tests/Integration/BugReportTests.cs | 41 + NBug.Tests/Integration/DispatcherTests.cs | 159 +++ NBug.Tests/Integration/HandlerTests.cs | 82 ++ NBug.Tests/Integration/SettingsTests.cs | 332 +++++ NBug.Tests/NBug.Tests.csproj | 112 ++ NBug.Tests/Properties/AssemblyInfo.cs | 33 + NBug.Tests/Tools/Extensions/UIAttribute.cs | 17 + NBug.Tests/Tools/Fixtures/ReportFixture.cs | 126 ++ NBug.Tests/Tools/Fixtures/SettingsFixture.cs | 99 ++ NBug.Tests/Tools/Fixtures/UIFixture.cs | 19 + .../Tools/Stubs/DummyArgumentException.cs | 31 + .../Tools/Stubs/DummySerializableException.cs | 18 + NBug.Tests/Unit/BugReportTests.cs | 21 + NBug.Tests/packages.config | 6 + NBug.sln | 69 + NBug/Core/Reporting/BugReport.cs | 218 ++++ NBug/Core/Reporting/Feedback.cs | 31 + NBug/Core/Reporting/Info/AssemblyInfo.cs | 12 + NBug/Core/Reporting/Info/ConfigurationInfo.cs | 12 + NBug/Core/Reporting/Info/GeneralInfo.cs | 82 ++ NBug/Core/Reporting/Info/Report.cs | 45 + NBug/Core/Reporting/Info/SystemInfo.cs | 12 + NBug/Core/Reporting/MiniDump/DumpTypeFlag.cs | 30 + NBug/Core/Reporting/MiniDump/DumpWriter.cs | 168 +++ .../Reporting/MiniDump/ExceptionFilters.cs | 348 +++++ NBug/Core/Submission/Database/Ado.cs | 6 + NBug/Core/Submission/Database/MsSql.cs | 6 + NBug/Core/Submission/Database/MySql.cs | 6 + NBug/Core/Submission/Dispatcher.cs | 210 +++ NBug/Core/Submission/Protocol.cs | 166 +++ NBug/Core/Submission/Protocols.cs | 18 + NBug/Core/Submission/Tracker/BugNet.cs | 36 + NBug/Core/Submission/Tracker/Bugzilla.cs | 12 + NBug/Core/Submission/Tracker/GitHub.cs | 12 + NBug/Core/Submission/Tracker/GoogleCode.cs | 12 + NBug/Core/Submission/Tracker/Redmine.cs | 207 +++ NBug/Core/Submission/Tracker/Trac.cs | 35 + NBug/Core/Submission/Web/Ftp.cs | 92 ++ NBug/Core/Submission/Web/Http.cs | 86 ++ NBug/Core/Submission/Web/Mail.cs | 224 ++++ NBug/Core/UI/Console/ConsoleUI.cs | 44 + .../InternalExceptionViewer.Designer.cs | 301 +++++ .../UI/Developer/InternalExceptionViewer.cs | 119 ++ .../UI/Developer/InternalExceptionViewer.resx | 126 ++ .../Developer/InternalLogViewer.Designer.cs | 164 +++ NBug/Core/UI/Developer/InternalLogViewer.cs | 97 ++ NBug/Core/UI/Developer/InternalLogViewer.resx | 126 ++ NBug/Core/UI/UIDialogResult.cs | 39 + NBug/Core/UI/UISelector.cs | 143 +++ NBug/Core/UI/WPF/WPFUI.cs | 50 + NBug/Core/UI/WinForms/Feedback.Designer.cs | 222 ++++ NBug/Core/UI/WinForms/Feedback.cs | 13 + NBug/Core/UI/WinForms/Feedback.resx | 120 ++ NBug/Core/UI/WinForms/Full.Designer.cs | 435 +++++++ NBug/Core/UI/WinForms/Full.cs | 92 ++ NBug/Core/UI/WinForms/Full.resx | 129 ++ NBug/Core/UI/WinForms/Minimal.cs | 27 + NBug/Core/UI/WinForms/Normal.Designer.cs | 117 ++ NBug/Core/UI/WinForms/Normal.cs | 51 + NBug/Core/UI/WinForms/Normal.resx | 120 ++ .../Panels/ExceptionDetailView.Designer.cs | 126 ++ .../UI/WinForms/Panels/ExceptionDetailView.cs | 31 + .../WinForms/Panels/ExceptionDetailView.resx | 123 ++ .../Panels/ExceptionDetails.Designer.cs | 124 ++ .../UI/WinForms/Panels/ExceptionDetails.cs | 139 ++ .../UI/WinForms/Panels/ExceptionDetails.resx | 123 ++ NBug/Core/UI/WinForms/WinFormsUI.cs | 46 + NBug/Core/Util/ExceptionThread.cs | 10 + .../Exceptions/NBugConfigurationException.cs | 32 + NBug/Core/Util/Exceptions/NBugException.cs | 31 + .../Util/Exceptions/NBugRuntimeException.cs | 22 + NBug/Core/Util/Logging/Logger.cs | 138 ++ NBug/Core/Util/ProtectedConfiguration.cs | 89 ++ NBug/Core/Util/PublicResources.cs | 237 ++++ .../Serialization/SerializableDictionary.cs | 73 ++ .../Serialization/SerializableException.cs | 141 ++ NBug/Core/Util/Storage/StoragePath.cs | 60 + NBug/Core/Util/Storage/StoredItemFile.cs | 17 + NBug/Core/Util/Storage/Storer.cs | 384 ++++++ NBug/Core/Util/Storage/ZipStorer.cs | 1070 ++++++++++++++++ NBug/Enums/LoggerCategory.cs | 33 + NBug/Enums/MiniDumpType.cs | 32 + NBug/Enums/StoragePath.cs | 32 + NBug/Enums/UIMode.cs | 40 + NBug/Enums/UIProvider.cs | 31 + NBug/Exceptions.cs | 74 ++ NBug/Handler.cs | 222 ++++ NBug/NBug.csproj | 257 ++++ NBug/Properties/AssemblyInfo.cs | 39 + NBug/Properties/Localization.Designer.cs | 208 +++ NBug/Properties/Localization.ja.Designer.cs | 0 NBug/Properties/Localization.ja.resx | 169 +++ .../Properties/Localization.pt-BR.Designer.cs | 0 NBug/Properties/Localization.pt-BR.resx | 169 +++ NBug/Properties/Localization.resx | 169 +++ NBug/Properties/Resources.Designer.cs | 126 ++ NBug/Properties/Resources.resx | 296 +++++ NBug/Properties/Settings.Designer.cs | 188 +++ NBug/Properties/Settings.settings | 84 ++ NBug/Properties/SettingsOverride.cs | 72 ++ NBug/Settings.cs | 834 ++++++++++++ NBug/app.config | 52 + NBug/resources/Error_16.png | Bin 0 -> 740 bytes NBug/resources/Feedback.png | Bin 0 -> 1984 bytes NBug/resources/Forum_16.png | Bin 0 -> 1532 bytes NBug/resources/Help_16.png | Bin 0 -> 666 bytes NBug/resources/NBug_Icon_PNG_16.png | Bin 0 -> 1450 bytes NBug/resources/NBug_icon_16.ico | Bin 0 -> 1150 bytes NBug/resources/NBug_icon_16_borders.ico | Bin 0 -> 1150 bytes NBug/resources/Send.png | Bin 0 -> 655 bytes NBug/resources/VS2010_16.png | Bin 0 -> 1447 bytes NBug/resources/icon.ico | Bin 0 -> 26662 bytes Settings.StyleCop | 10 + Signing.snk | Bin 0 -> 596 bytes ToDo.txt | 27 + custominfo.patch | 102 ++ 192 files changed, 20702 insertions(+) create mode 100644 .gitignore create mode 100644 Documentation/Documentation.csproj create mode 100644 Documentation/html/content/blank.html create mode 100644 Documentation/html/content/getting_started.html create mode 100644 Documentation/html/index.html create mode 100644 Documentation/html/toc.html create mode 100644 Examples/NBug.Examples.Console/NBug.Examples.Console.csproj create mode 100644 Examples/NBug.Examples.Console/Program.cs create mode 100644 Examples/NBug.Examples.Console/Properties/AssemblyInfo.cs create mode 100644 Examples/NBug.Examples.Console/app.config create mode 100644 Examples/NBug.Examples.WPF/App.xaml create mode 100644 Examples/NBug.Examples.WPF/App.xaml.cs create mode 100644 Examples/NBug.Examples.WPF/MainWindow.xaml create mode 100644 Examples/NBug.Examples.WPF/MainWindow.xaml.cs create mode 100644 Examples/NBug.Examples.WPF/NBug.Examples.WPF.csproj create mode 100644 Examples/NBug.Examples.WPF/Properties/AssemblyInfo.cs create mode 100644 Examples/NBug.Examples.WPF/Properties/Resources.Designer.cs create mode 100644 Examples/NBug.Examples.WPF/Properties/Resources.resx create mode 100644 Examples/NBug.Examples.WPF/Properties/Settings.Designer.cs create mode 100644 Examples/NBug.Examples.WPF/Properties/Settings.settings create mode 100644 Examples/NBug.Examples.WPF/app.config create mode 100644 Examples/NBug.Examples.WinForms/MainForm.Designer.cs create mode 100644 Examples/NBug.Examples.WinForms/MainForm.cs create mode 100644 Examples/NBug.Examples.WinForms/MainForm.resx create mode 100644 Examples/NBug.Examples.WinForms/NBug.Examples.WinForms.csproj create mode 100644 Examples/NBug.Examples.WinForms/Program.cs create mode 100644 Examples/NBug.Examples.WinForms/Properties/AssemblyInfo.cs create mode 100644 Examples/NBug.Examples.WinForms/Properties/Resources.Designer.cs create mode 100644 Examples/NBug.Examples.WinForms/Properties/Resources.resx create mode 100644 Examples/NBug.Examples.WinForms/Properties/Settings.Designer.cs create mode 100644 Examples/NBug.Examples.WinForms/Properties/Settings.settings create mode 100644 Examples/NBug.Examples.WinForms/app.config create mode 100644 GlobalAssemblyInfo.cs create mode 100644 NBug.1.2.dotCover create mode 100644 NBug.Configurator/AboutBox.Designer.cs create mode 100644 NBug.Configurator/AboutBox.cs create mode 100644 NBug.Configurator/AboutBox.resx create mode 100644 NBug.Configurator/MainForm.Designer.cs create mode 100644 NBug.Configurator/MainForm.cs create mode 100644 NBug.Configurator/MainForm.resx create mode 100644 NBug.Configurator/NBug.Configurator.csproj create mode 100644 NBug.Configurator/PreviewForm.Designer.cs create mode 100644 NBug.Configurator/PreviewForm.cs create mode 100644 NBug.Configurator/PreviewForm.resx create mode 100644 NBug.Configurator/Program.cs create mode 100644 NBug.Configurator/Properties/AssemblyInfo.cs create mode 100644 NBug.Configurator/Properties/Resources.Designer.cs create mode 100644 NBug.Configurator/Properties/Resources.resx create mode 100644 NBug.Configurator/Properties/Settings.Designer.cs create mode 100644 NBug.Configurator/Properties/Settings.settings create mode 100644 NBug.Configurator/SubmitPanels/ISubmitPanel.cs create mode 100644 NBug.Configurator/SubmitPanels/PanelLoader.Designer.cs create mode 100644 NBug.Configurator/SubmitPanels/PanelLoader.cs create mode 100644 NBug.Configurator/SubmitPanels/PanelLoader.resx create mode 100644 NBug.Configurator/SubmitPanels/Tracker/Redmine.Designer.cs create mode 100644 NBug.Configurator/SubmitPanels/Tracker/Redmine.cs create mode 100644 NBug.Configurator/SubmitPanels/Tracker/Redmine.resx create mode 100644 NBug.Configurator/SubmitPanels/Web/Ftp.Designer.cs create mode 100644 NBug.Configurator/SubmitPanels/Web/Ftp.cs create mode 100644 NBug.Configurator/SubmitPanels/Web/Ftp.resx create mode 100644 NBug.Configurator/SubmitPanels/Web/Http.Designer.cs create mode 100644 NBug.Configurator/SubmitPanels/Web/Http.cs create mode 100644 NBug.Configurator/SubmitPanels/Web/Http.resx create mode 100644 NBug.Configurator/SubmitPanels/Web/Mail.Designer.cs create mode 100644 NBug.Configurator/SubmitPanels/Web/Mail.cs create mode 100644 NBug.Configurator/SubmitPanels/Web/Mail.resx create mode 100644 NBug.Configurator/app.config create mode 100644 NBug.Configurator/resources/AboutBox.png create mode 100644 NBug.Configurator/resources/Icon.png create mode 100644 NBug.Configurator/resources/Icon_16.png create mode 100644 NBug.Configurator/resources/help.png create mode 100644 NBug.Configurator/resources/run.png create mode 100644 NBug.Configurator/resources/save.png create mode 100644 NBug.Tests/Functional/DeveloperUITests.cs create mode 100644 NBug.Tests/Functional/SettingsUITests.cs create mode 100644 NBug.Tests/Functional/WinFormsUITests.cs create mode 100644 NBug.Tests/Integration/BugReportTests.cs create mode 100644 NBug.Tests/Integration/DispatcherTests.cs create mode 100644 NBug.Tests/Integration/HandlerTests.cs create mode 100644 NBug.Tests/Integration/SettingsTests.cs create mode 100644 NBug.Tests/NBug.Tests.csproj create mode 100644 NBug.Tests/Properties/AssemblyInfo.cs create mode 100644 NBug.Tests/Tools/Extensions/UIAttribute.cs create mode 100644 NBug.Tests/Tools/Fixtures/ReportFixture.cs create mode 100644 NBug.Tests/Tools/Fixtures/SettingsFixture.cs create mode 100644 NBug.Tests/Tools/Fixtures/UIFixture.cs create mode 100644 NBug.Tests/Tools/Stubs/DummyArgumentException.cs create mode 100644 NBug.Tests/Tools/Stubs/DummySerializableException.cs create mode 100644 NBug.Tests/Unit/BugReportTests.cs create mode 100644 NBug.Tests/packages.config create mode 100644 NBug.sln create mode 100644 NBug/Core/Reporting/BugReport.cs create mode 100644 NBug/Core/Reporting/Feedback.cs create mode 100644 NBug/Core/Reporting/Info/AssemblyInfo.cs create mode 100644 NBug/Core/Reporting/Info/ConfigurationInfo.cs create mode 100644 NBug/Core/Reporting/Info/GeneralInfo.cs create mode 100644 NBug/Core/Reporting/Info/Report.cs create mode 100644 NBug/Core/Reporting/Info/SystemInfo.cs create mode 100644 NBug/Core/Reporting/MiniDump/DumpTypeFlag.cs create mode 100644 NBug/Core/Reporting/MiniDump/DumpWriter.cs create mode 100644 NBug/Core/Reporting/MiniDump/ExceptionFilters.cs create mode 100644 NBug/Core/Submission/Database/Ado.cs create mode 100644 NBug/Core/Submission/Database/MsSql.cs create mode 100644 NBug/Core/Submission/Database/MySql.cs create mode 100644 NBug/Core/Submission/Dispatcher.cs create mode 100644 NBug/Core/Submission/Protocol.cs create mode 100644 NBug/Core/Submission/Protocols.cs create mode 100644 NBug/Core/Submission/Tracker/BugNet.cs create mode 100644 NBug/Core/Submission/Tracker/Bugzilla.cs create mode 100644 NBug/Core/Submission/Tracker/GitHub.cs create mode 100644 NBug/Core/Submission/Tracker/GoogleCode.cs create mode 100644 NBug/Core/Submission/Tracker/Redmine.cs create mode 100644 NBug/Core/Submission/Tracker/Trac.cs create mode 100644 NBug/Core/Submission/Web/Ftp.cs create mode 100644 NBug/Core/Submission/Web/Http.cs create mode 100644 NBug/Core/Submission/Web/Mail.cs create mode 100644 NBug/Core/UI/Console/ConsoleUI.cs create mode 100644 NBug/Core/UI/Developer/InternalExceptionViewer.Designer.cs create mode 100644 NBug/Core/UI/Developer/InternalExceptionViewer.cs create mode 100644 NBug/Core/UI/Developer/InternalExceptionViewer.resx create mode 100644 NBug/Core/UI/Developer/InternalLogViewer.Designer.cs create mode 100644 NBug/Core/UI/Developer/InternalLogViewer.cs create mode 100644 NBug/Core/UI/Developer/InternalLogViewer.resx create mode 100644 NBug/Core/UI/UIDialogResult.cs create mode 100644 NBug/Core/UI/UISelector.cs create mode 100644 NBug/Core/UI/WPF/WPFUI.cs create mode 100644 NBug/Core/UI/WinForms/Feedback.Designer.cs create mode 100644 NBug/Core/UI/WinForms/Feedback.cs create mode 100644 NBug/Core/UI/WinForms/Feedback.resx create mode 100644 NBug/Core/UI/WinForms/Full.Designer.cs create mode 100644 NBug/Core/UI/WinForms/Full.cs create mode 100644 NBug/Core/UI/WinForms/Full.resx create mode 100644 NBug/Core/UI/WinForms/Minimal.cs create mode 100644 NBug/Core/UI/WinForms/Normal.Designer.cs create mode 100644 NBug/Core/UI/WinForms/Normal.cs create mode 100644 NBug/Core/UI/WinForms/Normal.resx create mode 100644 NBug/Core/UI/WinForms/Panels/ExceptionDetailView.Designer.cs create mode 100644 NBug/Core/UI/WinForms/Panels/ExceptionDetailView.cs create mode 100644 NBug/Core/UI/WinForms/Panels/ExceptionDetailView.resx create mode 100644 NBug/Core/UI/WinForms/Panels/ExceptionDetails.Designer.cs create mode 100644 NBug/Core/UI/WinForms/Panels/ExceptionDetails.cs create mode 100644 NBug/Core/UI/WinForms/Panels/ExceptionDetails.resx create mode 100644 NBug/Core/UI/WinForms/WinFormsUI.cs create mode 100644 NBug/Core/Util/ExceptionThread.cs create mode 100644 NBug/Core/Util/Exceptions/NBugConfigurationException.cs create mode 100644 NBug/Core/Util/Exceptions/NBugException.cs create mode 100644 NBug/Core/Util/Exceptions/NBugRuntimeException.cs create mode 100644 NBug/Core/Util/Logging/Logger.cs create mode 100644 NBug/Core/Util/ProtectedConfiguration.cs create mode 100644 NBug/Core/Util/PublicResources.cs create mode 100644 NBug/Core/Util/Serialization/SerializableDictionary.cs create mode 100644 NBug/Core/Util/Serialization/SerializableException.cs create mode 100644 NBug/Core/Util/Storage/StoragePath.cs create mode 100644 NBug/Core/Util/Storage/StoredItemFile.cs create mode 100644 NBug/Core/Util/Storage/Storer.cs create mode 100644 NBug/Core/Util/Storage/ZipStorer.cs create mode 100644 NBug/Enums/LoggerCategory.cs create mode 100644 NBug/Enums/MiniDumpType.cs create mode 100644 NBug/Enums/StoragePath.cs create mode 100644 NBug/Enums/UIMode.cs create mode 100644 NBug/Enums/UIProvider.cs create mode 100644 NBug/Exceptions.cs create mode 100644 NBug/Handler.cs create mode 100644 NBug/NBug.csproj create mode 100644 NBug/Properties/AssemblyInfo.cs create mode 100644 NBug/Properties/Localization.Designer.cs create mode 100644 NBug/Properties/Localization.ja.Designer.cs create mode 100644 NBug/Properties/Localization.ja.resx create mode 100644 NBug/Properties/Localization.pt-BR.Designer.cs create mode 100644 NBug/Properties/Localization.pt-BR.resx create mode 100644 NBug/Properties/Localization.resx create mode 100644 NBug/Properties/Resources.Designer.cs create mode 100644 NBug/Properties/Resources.resx create mode 100644 NBug/Properties/Settings.Designer.cs create mode 100644 NBug/Properties/Settings.settings create mode 100644 NBug/Properties/SettingsOverride.cs create mode 100644 NBug/Settings.cs create mode 100644 NBug/app.config create mode 100644 NBug/resources/Error_16.png create mode 100644 NBug/resources/Feedback.png create mode 100644 NBug/resources/Forum_16.png create mode 100644 NBug/resources/Help_16.png create mode 100644 NBug/resources/NBug_Icon_PNG_16.png create mode 100644 NBug/resources/NBug_icon_16.ico create mode 100644 NBug/resources/NBug_icon_16_borders.ico create mode 100644 NBug/resources/Send.png create mode 100644 NBug/resources/VS2010_16.png create mode 100644 NBug/resources/icon.ico create mode 100644 Settings.StyleCop create mode 100644 Signing.snk create mode 100644 ToDo.txt create mode 100644 custominfo.patch diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21fee68 --- /dev/null +++ b/.gitignore @@ -0,0 +1,108 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results + +[Dd]ebug*/ +[Rr]elease/ + +build/ + + +[Tt]est[Rr]esult +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.vspscc +*.vssscc +.builds + +*.pidb + +*.log +*.scc +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ + +*.[Rr]e[Ss]harper + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Publish Web Output +*.Publish.xml + +# Others +[Bb]in +[Oo]bj +sql +TestResults +[Tt]est[Rr]esult* +*.Cache +ClientBin +[Ss]tyle[Cc]op.* +~$* +*.dbmdl + +*.[Pp]ublish.xml + +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + +# NuGet +packages/ diff --git a/Documentation/Documentation.csproj b/Documentation/Documentation.csproj new file mode 100644 index 0000000..9ce56ab --- /dev/null +++ b/Documentation/Documentation.csproj @@ -0,0 +1,75 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {975E1EA6-EDA8-4E5D-AC56-7A741022C89A} + Exe + Properties + Documentation + Documentation + v4.0 + Client + 512 + + + + + + + + + + + true + bin\Debug\ + DEBUG;TRACE + full + AnyCPU + bin\Debug\Documentation.exe.CodeAnalysisLog.xml + true + GlobalSuppressions.cs + prompt + MinimumRecommendedRules.ruleset + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets + true + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules + true + + + bin\Release\ + TRACE + true + pdbonly + AnyCPU + bin\Release\Documentation.exe.CodeAnalysisLog.xml + true + GlobalSuppressions.cs + prompt + MinimumRecommendedRules.ruleset + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets + true + ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules + true + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Documentation/html/content/blank.html b/Documentation/html/content/blank.html new file mode 100644 index 0000000..522a642 --- /dev/null +++ b/Documentation/html/content/blank.html @@ -0,0 +1 @@ +

\ No newline at end of file diff --git a/Documentation/html/content/getting_started.html b/Documentation/html/content/getting_started.html new file mode 100644 index 0000000..522a642 --- /dev/null +++ b/Documentation/html/content/getting_started.html @@ -0,0 +1 @@ +

\ No newline at end of file diff --git a/Documentation/html/index.html b/Documentation/html/index.html new file mode 100644 index 0000000..c0666d0 --- /dev/null +++ b/Documentation/html/index.html @@ -0,0 +1,9 @@ + + + + NBug Documentation + + + + + diff --git a/Documentation/html/toc.html b/Documentation/html/toc.html new file mode 100644 index 0000000..2b4ec2c --- /dev/null +++ b/Documentation/html/toc.html @@ -0,0 +1,9 @@ + + + + Untitled Page + + + + + diff --git a/Examples/NBug.Examples.Console/NBug.Examples.Console.csproj b/Examples/NBug.Examples.Console/NBug.Examples.Console.csproj new file mode 100644 index 0000000..f0fc671 --- /dev/null +++ b/Examples/NBug.Examples.Console/NBug.Examples.Console.csproj @@ -0,0 +1,138 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {37281C42-C5CC-456D-B817-D81E6D866121} + Exe + Properties + NBug.Examples.Console + NBug.Examples.Console + v4.0 + Client + 512 + + + + + + + + + http://localhost/NBug.Examples.Console/ + true + Web + true + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + true + false + true + + + true + + + ..\..\Signing.snk + + + ..\..\NBug\resources\icon.ico + + + true + bin\Debug\ + DEBUG;TRACE + true + full + AnyCPU + bin\Debug\NBug.Examples.Console.exe.CodeAnalysisLog.xml + true + GlobalSuppressions.cs + prompt + AllRules.ruleset + ;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets + true + ;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules + true + + + bin\Release\ + TRACE + bin\Release\NBug.Examples.Console.XML + true + pdbonly + AnyCPU + bin\Release\NBug.Examples.Console.exe.CodeAnalysisLog.xml + true + GlobalSuppressions.cs + prompt + MinimumRecommendedRules.ruleset + ;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets + false + ;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules + false + + + + + + + + + + + + + Properties\GlobalAssemblyInfo.cs + + + + + + + + + + False + Microsoft .NET Framework 4 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 3.1 + true + + + + + {62CED1D5-F603-40DE-8BF5-3E49D3A392F4} + NBug + + + + + \ No newline at end of file diff --git a/Examples/NBug.Examples.Console/Program.cs b/Examples/NBug.Examples.Console/Program.cs new file mode 100644 index 0000000..4a5e856 --- /dev/null +++ b/Examples/NBug.Examples.Console/Program.cs @@ -0,0 +1,32 @@ +namespace NBug.Examples.Console +{ + using System; + using System.IO; + + public class Program + { + public static void Main(string[] args) + { + // Check to see if test application is initialized by the configurator tool + if (args.Length > 0) + { + FileStream stream = new FileStream(args[0], FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + NBug.Properties.SettingsOverride.LoadCustomSettings(stream); + } + + // Sample NBug configuration for console applications + AppDomain.CurrentDomain.UnhandledException += NBug.Handler.UnhandledException; + System.Threading.Tasks.TaskScheduler.UnobservedTaskException += NBug.Handler.UnobservedTaskException; + + Console.WriteLine("NBug now auto-handles: AppDomain.CurrentDomain.UnhandledException"); + Console.WriteLine("NBug now auto-handles: Threading.Tasks.TaskScheduler.UnobservedTaskException"); + Console.WriteLine(Environment.NewLine); + Console.Write("Generate a System.Exception (y/n): "); + + if (Console.ReadKey().Key == ConsoleKey.Y) + { + throw new Exception("This is an exception thrown from NBug console sample application."); + } + } + } +} diff --git a/Examples/NBug.Examples.Console/Properties/AssemblyInfo.cs b/Examples/NBug.Examples.Console/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..14ae91a --- /dev/null +++ b/Examples/NBug.Examples.Console/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("NBug.Examples.Console")] +[assembly: AssemblyDescription("NBug Console Sample Application created by Teoman Soygul.")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9e72b2e3-590a-4ffe-8de5-ffa37efc9dd6")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] \ No newline at end of file diff --git a/Examples/NBug.Examples.Console/app.config b/Examples/NBug.Examples.Console/app.config new file mode 100644 index 0000000..f76deb9 --- /dev/null +++ b/Examples/NBug.Examples.Console/app.config @@ -0,0 +1,3 @@ + + + diff --git a/Examples/NBug.Examples.WPF/App.xaml b/Examples/NBug.Examples.WPF/App.xaml new file mode 100644 index 0000000..0793102 --- /dev/null +++ b/Examples/NBug.Examples.WPF/App.xaml @@ -0,0 +1,8 @@ + + + + + diff --git a/Examples/NBug.Examples.WPF/App.xaml.cs b/Examples/NBug.Examples.WPF/App.xaml.cs new file mode 100644 index 0000000..f32bde0 --- /dev/null +++ b/Examples/NBug.Examples.WPF/App.xaml.cs @@ -0,0 +1,31 @@ +namespace NBug.Examples.WPF +{ + using System; + using System.IO; + using System.Linq; + using System.Windows; + + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + public App() + { + // Check to see if test application is initialized by the configurator tool + if (Environment.GetCommandLineArgs().Count() > 1) + { + FileStream stream = new FileStream(Environment.GetCommandLineArgs()[1], FileMode.Open, FileAccess.Read, FileShare.ReadWrite); + NBug.Properties.SettingsOverride.LoadCustomSettings(stream); + } + + // For demonstrational purposes only, normally this should be left with it's default value as false! + NBug.Settings.HandleProcessCorruptedStateExceptions = true; + + // Sample NBug configuration for WPF applications + AppDomain.CurrentDomain.UnhandledException += NBug.Handler.UnhandledException; + Application.Current.DispatcherUnhandledException += NBug.Handler.DispatcherUnhandledException; + System.Threading.Tasks.TaskScheduler.UnobservedTaskException += NBug.Handler.UnobservedTaskException; + } + } +} diff --git a/Examples/NBug.Examples.WPF/MainWindow.xaml b/Examples/NBug.Examples.WPF/MainWindow.xaml new file mode 100644 index 0000000..653bf1b --- /dev/null +++ b/Examples/NBug.Examples.WPF/MainWindow.xaml @@ -0,0 +1,15 @@ + + +