зеркало из https://github.com/dotnet/roslyn.git
Страница:
Walkthroughs
Страницы
API Changes
Branch Cleanup
Building Testing and Debugging
C# Interactive Walkthrough
Changelog for C# and VB compilers
Compiler Queries
Compiler release process
Compiler supporting types
Contributing Code
Diagnosing Project System Build Errors
EnC Supported Edits
FAQ
Getting Started C# Semantic Analysis
Getting Started C# Syntax Analysis
Getting Started C# Syntax Transformation
Getting Started VB Semantic Analysis
Getting Started VB Syntax Analysis
Getting Started VB Syntax Transformation
Getting Started Writing a Custom Analyzer & Code Fix
Getting Started on Visual Studio 2015 CTP 5
Getting Started on Visual Studio 2015 CTP 6
Getting Started on Visual Studio 2015 Preview
Getting Started on Visual Studio 2015 RC
Getting Started on Visual Studio 2015
Home
How To Investigate CI Test Failures
How To Write a C# Analyzer and Code Fix
How To Write a Visual Basic Analyzer and Code Fix
How to support new C# language features by Edit And Continue (ENC)
Interactive Window
Labels used for issues
Languages features in C# 6 and VB 14
Linux Instructions
Manual Testing
Measuring Compiler Performance
New Language Features in C# 6
New Language Features in VB 14
Notes on formatting
Notes on nullability
NuGet packages
Performance Investigations
Performance considerations for large solutions
Recording performance traces with PerfView
Reporting Visual Studio crashes and performance issues
Responding to customers encountering crashes or performance issues
Roadmap
Roslyn Overview
Runtime code generation using Roslyn compilations in .NET Core App
Samples and Walkthroughs
Scripting API Samples
Syntax Visualizer
Troubleshooting tips
VS 2015 CTP 5 API Changes
VS 2015 CTP 6 API Changes
VS 2015 RC API Changes
Walkthroughs
2
Walkthroughs
Jared Parsons редактировал(а) эту страницу 2015-03-09 09:15:03 -07:00
Before attempting any of these walkthroughs, please ensure the proper version of Visual Studio is installed as described on the Building Testing and Debugging and there is a copy of the git repo on your local machine.
Install and build Roslyn
- Checkout the branch that matches the downloaded preview E.g: Git checkout releases/Dev14CTP5
- Start VS, Load the Roslyn Solution
- Set the Tools\OpenSourceDebug project to the default project
- Use the menu to build the solution
Build and Debug Roslyn with Visual Studio
- Press F5 to start debugging
- The solution will build and start a new instance of Visual Studio
- In the new instance of VS create a new C# or VB project
- In the VS with the Roslyn solution open, add a breakpoint to the file: Workspaces\workspace\workspace.cs at line 142
- Add an interface to the project created earlier and see the breakpoint hit.
Build Project with OSS compilers within Visual Studio
- Press F5 to start a new instance of VS
- Create a new C# or VB project
- Use Tools/Options/Projects and Solutions/Build and Run to set the 'Build Project Verbosity' to 'Normal' so that we can ensure the correct compiler was used
- Build the solution you built above.
- Look in the build 0utput window and observe the compiler used is similar to:
%USERPROFILE%\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0ROSLYN\EXTENSIONS\MSOPENTECH\OPENSOURCEDEBUG\1.0\csc.exe
Build with OSS Roslyn compilers using MSBUILD
- In a Visual Studio Command Shell, type the following command:
- MSBUILD ConsoleApplication01.csproj /t:Rebuild /p:RoslynHive=VisualStudio\14.0Roslyn
- In the build output from this command observe a compiler command line similar to:
%USERPROFILE%\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0ROSLYN\EXTENSIONS\MSOPENTECH\OPENSOURCEDEBUG\1.0\csc.exe
Performance considerations for large solutions
Other documentation in the repo
Contributors
Building, Testing, and Debugging
Tool Authors
Status
Edit-and-Continue Supported Edits
.NET Core
Interactive and Scripting
Interactive Window Documentation