Skip to content

cristiingineru/ExpressionViewer

Repository files navigation

ExpressionViewer

Visual Studio extension for evaluating expressions at edit time

preview

How to play with it

  1. Install Visual Studio 2015 Comunity
  2. Tools -> Extensions and Updates... -> Online -> search for "expression viewer"

How to extend it

  1. Install Visual Studio 2015 Comunity
  2. Start VS -> File -> New Project -> Extensibility
  • Download the .NET Compiler Platform SDK
  1. Clone this repo
  1. Open ExpressionViewer.sln
  2. Tools -> NuGet Package Manager -> Package Manager Console
  • make sure the default project is Extension
  1. Install base Roslyn package
  • Install-Package Microsoft.CodeAnalysis.Common -Version 1.0.0
  1. Install Roslyn for C# projects
  • Install-Package Microsoft.CodeAnalysis.CSharp.Workspaces -Version 1.0.0
  1. Change the default project to ExpressionViewerTests
  2. Install the same two packages again
  3. Just press the Run button or run tests

Useful tools

Syntax Visualizer

A small dialog that can be used to interactively inspect the syntax tree of your C# code. It cames with .NET Compiler Platform SDK.

Roslyn Quoter

It can be used to generate code that builds a C# syntax tree. It's usefull when a large piece of code needs to be generated or when someone is not familiar with the Roslyn API. http://roslynquoter.azurewebsites.net/

ILSpy

.NET assembly decompiler and browser. http://ilspy.net/

About

Roslyn based Visual Studio extension for evaluating C# expressions at edit time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published