When and how should I file a bug report?
Tip
Use the Report a problem menu item in Visual Studio – this will send diagnostic information along with your bug report to help resolve the issue.
There are detailed instructions for Visual Studio 2019 or Visual Studio 2017 and Visual Studio for Mac.
You can search for existing reports on the Visual Studio Developer Community website.
File a bug if...
You have a set of steps you think the engineers will be able to use to reproduce a problem.
OR
You can carefully describe the visible symptoms of the problem, especially if you can also describe some precise circumstances related to the problem.[1]
Best practices to help address bugs quickly and efficiently
Search Visual Studio Developer Community and the web for existing bug reports or usage suggestions that might address the problem directly.[2][3]
Describe the problem as clearly and concisely as possible, including a description of what happened and was expected to happen.
Include any relevant stack traces, error message text, or crash logs (if you use the Report a problem feature, these can be included automatically). [4]
Write down any important error messages that appear in screenshot attachments as plain text too.
Include a small, self-contained test case that reproduces the bug with as little code as possible. If you cannot reproduce the problem with a brand new project (created using one of the built-in templates), then please zip up a project that demonstrates the problem and attach it to the bug report. Make the example project as simple as possible before attaching it.[5][6]
Describe the environment where the bug was encountered, including the operating system and versions of Xamarin and any dependencies.
Additional details
^ Ideally the description of the "visible symptoms" should include enough details so that other customers can confirm whether they are seeing the same problem (same error messages, same performance degradation, same stack trace from a crash, etc.). For "precise circumstances", one good example would be if you can say something like: "I normally hit the problem 75% of the time, but if I change this one thing then I can avoid the problem completely." Another similar example of a "precise circumstance" is if downgrading to a previous version of Xamarin stops the problem.
^ As you would expect, snippets of error text (or any other uniquely descriptive text) are usually the best search terms. If the existing bug report is incomplete, then you are welcome to add details or file a new, better bug report.
^ Another good question is whether the same problem has been reported for any Java, Objective-C, or Swift apps. If so, then the problem is very likely part of Android or iOS itself rather than part of Xamarin.
^ A few examples of information to include:
For errors that occur when building a project, please include the complete diagnostic build output on the bug report.
For errors that occur when building or debugging an iOS project from Visual Studio, please run Help > Xamarin > Zip Logs after hitting the error and include the resulting .zip file on the bug report.
For exceptions or crashes in Android or iOS apps, please include the relevant Debug logs for Xamarin.Android and Xamarin.iOS apps.
^ If possible for your particular problem, one option is to recreate the problem by adding a small number of files from your original solution into a brand new solution. The Xamarin team will often be able to investigate problems even on larger test cases (assuming the steps to reproduce are explained clearly), but simpler test cases give the best chance that the bug will be resolved quickly.
^ If it is not possible to reproduce the problem by adding a small number of files to a brand new solution, then you can zip up and attach the whole solution folder for your full app. Please delete the
bin
,obj
,Components
, andpackages
folders to make the zip file smaller. (The IDE and the build process will usually restore or recreate the contents of these folders as needed.) You can also delete as many code and resource files from the project as you like, as long as the resulting solution still demonstrates the original problem.