Quantcast
Channel: Microsoft "Roslyn" CTP forum
Browsing all 504 articles
Browse latest View live

VS indentation setting for C# is not respected in csx text editor

Hi guys,I've found that csx editor doesn't respect VS -> Options -> Text Editor -> C# ->Tabs setting. Despite of Insert Spaces being set it keep using tabs for indentation. Is that a known...

View Article


Why can't I use environment variables in the file path when loading a dll?

When trying to write some automation scriptcs with scriptcs I've found an issue trying to use the System.Web.Administration when having IIS Express installed. The problem is that I want to access the...

View Article


Unhandled exception in \Microsoft Roslyn CTP - September...

Hello,Trying to figure out why project's documents enumerating code doe not work with Roslyn CTP - September 2012 I'm debugging the sample project form September CTP with name OrganizeSolutionCS. That...

View Article

Can I execute unsafe code using the ScriptEngine

When I try to execute the code it says "error CS0227: Unsafe code may only appear if compiling with /unsafe". Is there any way to configure the ScriptEngine to compile and execute the unsafe code? I...

View Article

Meta-Programming and parser extensibility in C# and Roslyn

While Roslyn is a fantastic framework to parse/analyse/modify C# code, the lack of extensibility in the parser part is really frustrating in meta-programming scenarios.This is of course not the entire...

View Article


How to comments statement from Line number in Roslyn ?

I have below code from that, I am getting line number of the warning comes from .cs file.SyntaxTree fileTree = SyntaxTree.ParseFile(filePath, ParseOptions.Default,...

View Article

Roslyn source code availability

I know that Anders Hejlsberg has said in a Channel 9 video that the question of open sourcing Roslyn (whole or in part) was not resolved at the time of that video.Since nothing more has been said on...

View Article

Literal tokens in Roslyn syntax tree

Hello! There is the following C# code:class T { long n = 123L; string s = "ABC"; char c = 'C'; }Then Roslyn builds syntax tree from it. I use Roslyn.Compilers.CSharp.SyntaxNode.ChildNodesAndTokens() to...

View Article


Project compilation fails for Roslyn

Today I have installed the Roslyn CTP Sept 2012. When I create a sample project using any of the Roslyn templates available, and try comping the project, it throws "The type or namespace name 'Roslyn'...

View Article


How to get the full name of a NamedTypeSymbol.

For example, with a NamedTypeSymbol of string, I wanted System.String, not string. How can I get it?

View Article

Image may be NSFW.
Clik here to view.

Some Extensions are disabled in Roslyn IDE (devenv /rootsuffix Roslyn)

Hi, the last few days i have been playing with the new Roslyn editor. I built and installed the samples shipped with the latest ctp.My issue is that some extensions are only enabled with the "old" vs...

View Article

Read a .cs file, add property to class, write back to .cs file

I have this working code that will load a .cs file into the Roslyn SyntaxTree class, create a new PropertyDeclarationSyntax, insert it into the class, and re-write the .cs file. I'm doing this as a...

View Article

Determine if document in project was auto-generated

A Visual Basic project contains a lot of auto-generated documents that are not displayed in Visual Studio (e.g. AssemblyInfo.vb, Application.Designer.vb, Resources.Designer.vb, and so on). Is it...

View Article


I am stuck on publishing in VB2010 express

The problem is with data files.  It is a little test program that creates a little datafile that I want to "go with" the program when publishing in another folder.I did the following.  On...

View Article

GetDiagnostics() can't dectect error

I tried to use Roslyn to check the following example:       static void Main(string[] args)        {            string sScriptCsx = @"                using System;                namespace HelloWorld...

View Article


Is it possible to annotate every single statement

Hi there,I'd like to annotate every single statement in my method. Is there any way to do that? I tried something like this: public override SyntaxNode VisitMethodDeclaration(MethodDeclarationSyntax...

View Article

Feature request for C# Interactive: Alt + Up Arrow should complete partial...

I have started to use C# Interactive as my daily workhorse for scientific computing, but there's one bit of functionality that I'm really missing.If I type a few characters of a previous entry and then...

View Article


With the VS 2013 RC release, is Roslyn "go-live" yet?

With the Visual Studio 2013 RC and .Net 4.5.1 RC releases yesterday (9/9/2013), is Roslyn included with VS 2013 RC with a go-live license? I haven't tried out any preview or release of VS 2013 yet, so...

View Article

Threaded unsafe function calls with dynamic code in them

Hi there!I'm hoping someone can give me a pointer to say if something is possible using Roslyn before I plough many hours into it only to find I will run into problems....I've got a little program that...

View Article

Roslyn: Get return type of method-based LINQ statement

Hello, I need help on getting the type of a LINQ expression with Roslyn. I am using Roslyn's September 2012 CTP. How can I get the type of "aSecondList":public void FindEven() { List<int> aList =...

View Article
Browsing all 504 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>