How stable is the Roslyn CTP as a replacement for

2019-06-20 14:02发布

I frequently find myself making a dummy console app to test something simple out. (For example how does DateTime.Parse like a YYYY-MM-DD-HH-MM-SS formatted string?)

I know that Roslyn has the C# interactive window to allow such simple tests to be run in the IDE with my solution still open. This is the only feature I am really wanting.

But how stable is Roslyn CTP? Is it going to mess up my IDE? Slow me down when I am not using it? Is it only used for the Roslyn features? Or is it going to try to replace my normal compiler for my open solution?

3条回答
三岁会撩人
2楼-- · 2019-06-20 14:31

Unless you run VS with -rootSuffix Roslyn, the CTP will not change any existing behavior.

查看更多
Anthone
3楼-- · 2019-06-20 14:32

Try the C# REPL Script Environment that is part of the O2 Platform

It will give you a perfect environment to try out all C# features and APIs (conceptually the O2 REPL environment is similar to LinqPAD)

On the topic of Roslyn, take a look at these Multiple Roslyn based tools (all running Stand-Alone outside VisualStudio) , the first one is a simple Roslyn REPL

查看更多
混吃等死
4楼-- · 2019-06-20 14:36

As SLaks says, the Roslyn CTP doesn't generally affect your IDE for existing scenarios. The changes you should see if you install it are:

  1. A new C# Interactive tool window.
  2. Support for "C# script" files (.csx), using the Roslyn IDE services. However, .cs and .vb files and projects still use the existing code.
  3. Some new project templates for targeting Roslyn.
  4. Some additional items in the Add References dialog for targeting Roslyn
  5. Documentation, etc in the Roslyn directory under your My Documents folder.

Disclaimer: I work for Roslyn on the Roslyn project.

查看更多
登录 后发表回答