Analyzing ASP.NET MVC Projects with Roslyn
NickName:Kim KangIn Ask DateTime:2016-07-15T15:23:44

Analyzing ASP.NET MVC Projects with Roslyn

I am currently working on a static source code analyzer for ASP.NET projects. My analyzer runs fine on ASP.NET WebForms but there seem to be issues with MVC projects. There are certain identifiers/tokens in MVC Projects that do not seem to have an underlying symbols, hence when my analyzer tries to do analysis with the symbol, an NullReference exception will occur. Are there any known issues of Roslyn working with MVC projects? I read this post How to use Roslyn Code Analysis API with MVC 6 projects , but i cant seem to install the DNX workspace package on my project.

Copyright Notice:Content Author:「Kim KangIn」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/38390198/analyzing-asp-net-mvc-projects-with-roslyn

More about “Analyzing ASP.NET MVC Projects with Roslyn” related questions

Analyzing ASP.NET MVC Projects with Roslyn

I am currently working on a static source code analyzer for ASP.NET projects. My analyzer runs fine on ASP.NET WebForms but there seem to be issues with MVC projects. There are certain identifiers/...

Show Detail

How to find special file in the entire solution by Roslyn?

I am coding specific rule by Roslyn . In this rule, the analyzer is parsing method declaration and its references in entire solution by SymbolFinder. One of my requirements is finding a way to

Show Detail

How to use Roslyn Code Analysis API with MVC 6 projects

I intend to use the new Roslyn Code Analysis API with an MVC 6 project. However, when I run this code: string pathToSolution = @"..\..\..\WebApplicationComplex.sln"; const string projectName = "

Show Detail

If I build my current .NET projects with Visual Studio 2014 using Roslyn, will I experience build performance improvement?

I've read the Visual Studio 2014 CTP annoucement and it says it uses Roslyn by default: http://blogs.msdn.com/b/csharpfaq/archive/2014/06/03/visual-studio-14-ctp-now-available.aspx So I'm assuming...

Show Detail

ASP.Net website projects, pre-compiled builds, and roslyn compilers

Hopefully someone can elucidate where I went wrong here. We have a number of shared assemblies built with VS 2015 that were already making use of certain C# 6 linguistic features (string interpola...

Show Detail

How to pre-compile projects with Roslyn Workspace

I need to compile an ASP.Net web applications (Web Forms and MVC) with pre-compile enabled. I'm using Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace to open the project and emit project level asse...

Show Detail

Workspaces in Roslyn

What are the different workspaces in Roslyn and the differences between them? I only know of MSBuildWorkspace and AdhocWorkspace. How does workspace affects Roslyn analysis? I have read that you need

Show Detail

How to make Roslyn the default Compiler for ASP.NET and put it in GAC?

We are using ASP.NET 4.6 with website/web application projects. We added the Roslyn Complier via Nuget Package to our website project and VS.NET updated the web.config plus added a Roslyn folder un...

Show Detail

Multiple ASP.NET MVC projects that builds as single ASP.NET MVC Application

We want to split our large asp.net mvc web application into multiple Visual Studio projects so that each team can independently on their visual studio project. Desired structure is: ASP.NET MVC

Show Detail

Roslyn analyzers not working during build for some projects

We are currently using some roslyn analyzers, e.g. the StyleCop.Analyzers package. I've created a .ruleset file for one of our projects. In other projects I'm referencing the .ruleset file of this

Show Detail