A sample demonstrating how to invoke Stackdriver Error Reporting from C#.
This sample requires .NET Core 2.0 or later. That means using Visual Studio 2017, Visual Studio Code, or the command line. Visual Studio 2015 users can use this older sample.
-
Follow the set-up instructions in the documentation.
-
Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Stackdriver Error Reporting API.
-
From a Powershell command line, set the "GOOGLE_PROJECT_ID" environment variable to id of the project you created in step 1.
PS C:\...\dotnet-docs-samples\error-reporting\api\ErrorReportingSample> $env:GOOGLE_PROJECT_ID="your project id"
-
And run the ErrorReportingSample application:
PS C:\...\dotnet-docs-samples\error-reporting\api\ErrorReportingSample> dotnet run
-
View your error in the Cloud Console UI
- See CONTRIBUTING.md
- See LICENSE