Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What parts of Roslyn can you use with VS 2013?

I want to build a C# app that uses the Roslyn NuGet packages. I have Visual Studio 2013. Things were going fine until I hit a ReflectionTypeLoadException looking for Microsoft.Build version 14, which I take it comes with VS 2015 CTP (see this question).

My question is, how far can you get with Roslyn without running into this issue? Do you just need to avoid using the MSBuildWorkspace class? What are the alternatives? Is it possible to download and use the Microsoft.Build assembly from 2015 while still using the 2013 IDE?

like image 211
ChaseMedallion Avatar asked Jan 08 '15 00:01

ChaseMedallion


People also ask

What is Roslyn in Visual Studio?

NET Compiler Platform (Roslyn) Analyzers inspect your C# or Visual Basic code for style, quality, maintainability, design, and other issues. This inspection or analysis happens during design time in all open files. Analyzers are divided into the following groups: Code style analyzers are built into Visual Studio.

What is the Roslyn compiler and how can I use it?

Roslyn is a collection of open-source compilers, code analysis and refactoring tools which work with C# and Visual Basic source codes. This set of compilers and tools can be used to create full-fledged compilers, including, first and foremost, source code analysis tools.

Does MSbuild use Roslyn?

MSbuild is the build system for Visual Studio. It calls the C# compiler to compile C# projects. Roslyn is the C# compiler (and the VB compiler). So msbuild uses Roslyn.

What is Roslyn API?

NET Compiler Platform, also known by its codename Roslyn, is a set of open-source compilers and code analysis APIs for C# and Visual Basic (VB.NET) languages from Microsoft.


1 Answers

You need to download the MSBuild 14 tools from http://go.microsoft.com/?linkid=9863815

like image 64
SLaks Avatar answered Sep 29 '22 19:09

SLaks