Questions tagged [roslyn-code-analysis]

For questions regarding code analysis for C# and VB based on the Roslyn .NET compiler platform API.

The Roslyn compiler platform provides an API to implement code analysis, code fixes, and refactoring tools for C# and VB.

The Roslyn Wiki also contains an introduction for "How To Write a C# Analyzer and Code Fix" and for Visual Basic.

769 questions
-2
votes
1 answer

Static Code Analysis Tools in Visual Studio 2017

Good day Requesting can you please let me know available Static Code Analysis Tools in Visual Studio 2017 and possible best practices etc.
-2
votes
1 answer

How to use Roslyn in VS?

What do I need to to for this to work in C# Visual Studio? using Roslyn.Scripting; using Roslyn.Scripting.CSharp; namespace RoslynScriptingDemo {      class Program {          static void Main(string[] args) …
-2
votes
1 answer

Compiler Issue in Visual Basic Project With Microsoft.CodeAnalysis.Emit

I have developed following code to generate dll files using Microsoft.CodeAnalysis.Emit library. The code successfully generates dll files for C# projects. However it doesn't successfully build Visual Basic projects. It throws lot of compiler errors…
Bandara
  • 780
  • 8
  • 29
-2
votes
1 answer

Roslyn CTP to RTM upgrade - How to use formatter

In CTP version, I used to write below code to save the changes to file with the formatting. Any idea what is changed in RTM? IEnumerable rules = FormattingRules.GetDefaultRules("C#"); File.WriteAllText( …
Pratik Mehta
  • 1,310
  • 4
  • 15
  • 37
1 2 3
51
52