From the course: Visual Studio App Center for Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Controlling build quality with .NET

Controlling build quality with .NET - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Controlling build quality with .NET

- [Instructor] Last year, Xamarin started using a new build agent, MSBuild. This is important because MSBuild recognizes and runs Roslyn analyzers. This allows us to do static code analysis and produce warnings if things are found in the code base that are not up to standard. Roslyn analyzers, combined with a project file setting of treat warnings as errors will allow our CI build agents to fail unless our co-quality checks have succeeded. Many of these analyzers can be gotten directly out of Nougat. Since we are using Visual Studio on the Mac, there are a few things we need to do to get them working correctly. Installing these Nougat packages will work fine out of the box in Visual Studio 2017 for Windows. On Visual Studio for Mac, the first thing we need to do is make sure the solution format is VS 2017. To do this, we're going to go into Project, and then Convert Solution Format. Make sure that it's set to Visual Studio 2017, and then press OK. The next thing we want to do is add a…

Contents