Skip to content

Commit 52059bf

Browse files
committed
Added Silent flag example in README.
1 parent 1d001d1 commit 52059bf

6 files changed

Lines changed: 18 additions & 16 deletions

File tree

CrashReporter.NET/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
// by using the '*' as shown below:
3737
// [assembly: AssemblyVersion("1.0.*")]
3838

39-
[assembly: AssemblyVersion("1.5.5.0")]
40-
[assembly: AssemblyFileVersion("1.5.5.0")]
39+
[assembly: AssemblyVersion("1.5.6.0")]
40+
[assembly: AssemblyFileVersion("1.5.6.0")]
4141
[assembly: NeutralResourcesLanguageAttribute("en")]

CrashReporter.NET/build/CrashReporter.NET.Official.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>CrashReporter.NET.Official</id>
5-
<version>1.5.5</version>
5+
<version>1.5.6</version>
66
<title>CrashReporter.NET</title>
77
<authors>RBSoft</authors>
88
<owners>rbsoft</owners>

CrashReporterTest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.5.5.0")]
35-
[assembly: AssemblyFileVersion("1.5.5.0")]
34+
[assembly: AssemblyVersion("1.5.6.0")]
35+
[assembly: AssemblyFileVersion("1.5.6.0")]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2017 RBSoft
3+
Copyright (c) 2012-2018 RBSoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
# CrashReporter.NET
1+
# CrashReporter.NET
2+
23
[![AppVeyor branch](https://img.shields.io/appveyor/ci/gruntjs/grunt/master.svg)](https://ci.appveyor.com/project/ravibpatel/crashreporter-net) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](http://paypal.me/rbsoft)
34

45
Send crash reports of your classic desktop application developed using .NET Framework directly to your mail's inbox with full exception report, stack trace and screenshot.
56

67
## The nuget package [![NuGet](https://img.shields.io/nuget/v/CrashReporter.NET.Official.svg)](https://www.nuget.org/packages/CrashReporter.NET.Official/) [![NuGet](https://img.shields.io/nuget/dt/CrashReporter.NET.Official.svg)](https://www.nuget.org/packages/CrashReporter.NET.Official/)
78

8-
https://www.nuget.org/packages/CrashReporter.NET.Official/
9-
109
PM> Install-Package CrashReporter.NET.Official
1110

1211
## How it works
1312

14-
CrashReporter.NET uses the exception information like stack trace, exception type, message, source, .NET CLR version, OS version and application version to generate the crash report and send it to developer using email. It uses DoctorDump service (http://drdump.com) to send email to developer. Developers can use their SMTP server to send email too.
13+
CrashReporter.NET uses the exception information like stack trace, exception type, message, source, .NET CLR version, OS version and application version to generate the crash report and send it to developer using email. It uses [DoctorDump](https://drdump.com/crash-reporting-system) service to send email to developer. Developers can use their SMTP server to send email too.
1514

1615
## Using the code
1716

@@ -48,13 +47,13 @@ internal static class Program
4847
SendReport(e.Exception);
4948
}
5049

51-
public static void SendReport(Exception exception, string developerMessage = "")
50+
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false)
5251
{
5352
var reportCrash = new ReportCrash("Email where you want to receive crash reports.")
5453
{
5554
DeveloperMessage = developerMessage
5655
};
57-
56+
reportCrash.Silent = silent;
5857
reportCrash.Send(exception);
5958
}
6059
}
@@ -113,12 +112,13 @@ public partial class App : Application
113112
Environment.Exit(0);
114113
}
115114

116-
public static void SendReport(Exception exception, string developerMessage = "")
115+
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false)
117116
{
118117
var reportCrash = new ReportCrash("Email where you want to receive crash reports.")
119118
{
120119
DeveloperMessage = developerMessage
121120
};
121+
reportCrash.Silent = silent;
122122
reportCrash.Send(exception);
123123
}
124124
}

appveyor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version: 1.5.5.{build}
1+
version: 1.5.6.{build}
22
environment:
3-
my_version: 1.5.5
3+
my_version: 1.5.6
44
my_secret:
55
secure: eXAIysIG8npt2tVMYQpGwTLj47CK9lUB/NyEfVGgc90=
66
skip_branch_with_pr: true
@@ -13,13 +13,15 @@ install:
1313
- nuget install secure-file -ExcludeVersion
1414
- cmd: nuget restore
1515
- secure-file\tools\secure-file -decrypt "c:\projects\CrashReporter.NET\CrashReporter.NET\CrashReporter.NET.snk.enc" -secret %my_secret%
16+
17+
build_script:
1618
- msbuild "c:\projects\CrashReporter.NET\CrashReporter.NET\CrashReporter.NET.csproj" /p:Configuration=Release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
1719
- msbuild "c:\projects\CrashReporter.NET\CrashReporter.NET\CrashReporter.NET.csproj" /p:Configuration=Release-NET35 /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
1820
- msbuild "c:\projects\CrashReporter.NET\CrashReporter.NET\CrashReporter.NET.csproj" /p:Configuration=Release-NET40 /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
1921
- msbuild "c:\projects\CrashReporter.NET\CrashReporter.NET\CrashReporter.NET.csproj" /p:Configuration=Release-NET452 /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
2022
- msbuild "c:\projects\CrashReporter.NET\CrashReporter.NET\CrashReporter.NET.csproj" /p:Configuration=Release-NET462 /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
2123
- nuget pack "c:\projects\CrashReporter.NET\CrashReporter.NET\build\CrashReporter.NET.Official.nuspec"
22-
- cmd: 7z a CrashReporter.NET-%my_version%.zip %APPVEYOR_BUILD_FOLDER%\CrashReporter.NET\build\lib\*
24+
- cmd: 7z a CrashReporter.NET-%my_version%.zip %APPVEYOR_BUILD_FOLDER%\CrashReporter.NET\build\lib\*
2325

2426
artifacts:
2527
- path: CrashReporter.NET-%my_version%.zip

0 commit comments

Comments
 (0)