Mixing #load command with code in a single C# Interactive submission
I have been writing .csx scripts and executing them by selecting chunks of code and pressing control + enter. I tried to "refactor" some of my longer scripts by moving chunks of code to a dedicated...
View Articlec#, intellisense, roslyn
I'm a little bit confused over whether Roslyn api could provide with c# code completion list. I found here that there is some method GetItems in Roslyn.Services.Editor namespace that would be just...
View ArticleCannot get IRenameService instance through the following way
Dear All, I am trying to get the IRenameService through the following way of MEF import: public class ServiceArchive { [Import] public IRenameService RenameService { get; set; }...
View ArticleWebsiteSpark & Visual Studio 2012 with Windows 8
Hello (I am not sure which forum to put this in. Sorry if I have posted in an incorrect forum) I have a WebsiteSpark MSDN subscription and am able to download Windows 7 and Visual Studio 2010. I...
View ArticleISymbol GetDocumentationComment() not implemented yet?
Hi, I tried to retreive the documentation comment on a symbol by calling the GetDocumentationComment() method. Unfortunately the resulting DocumentationComment object has null values for all properties...
View ArticleRetrieving IRenameService in a more testable way
Hi There, I have written some testing code using IRenameService instances. I am only able to import an IRenameService from ICodeIssueProvide whose instantiation happens when I run a dubugee VS. I...
View ArticleThe window Syntax Visualizer is always empty
I compiled the sample Syntax Visualizer, but no matter what file I select (.cs or .vb) and the window of the visualizer is always empty. And when debugging Syntax Trees, the icon over the supported...
View ArticleIs the June 2012 Roslyn CTP supposed to work with VS2012 Ultimate RTM (not...
The June CTP targets VS2012 RC. But can I (really, "should I") install it on VS2012 RTM (Ultimate)?
View ArticleWhere is the CompileToClass methods?
Dear all / Team, I was reading the "released-interactive-scripting-spec.pdf" and "...-spec2.pdf", both mention that on the abstract class CommonScriptEngine, there are these bunch of methods: // where...
View ArticleWill Roslyn be FIPS compliant?
I've recently noticed that when running Roslyn on a computer with FIPS enabled that it produces the following error in several places when performing Roslyn API calls....
View ArticleSystem.AggregateException was unhandled
Hi There, When I am running my VS add-in, an exception will be thrown as the title said. Do you have any idea about what is going on? The details of this exception are as follows:...
View ArticleError when trying to uninstall Roslyn from VS 2010 machine
I'm trying to uninstall Roslyn from my machine. I've got VS 2010 Ultimate, with SP1 and the VS SDK installed. When I try uninstalling setup fails with '0x800700002 - The system cannot find the file...
View ArticleException when using renamSymbol service
Hi All, I am trying to make a rename in a given IDocument instance and save the results without rendering it to the user. So I have written code like this:...
View ArticleRetrieve referenced LabelSymbol of GotoStatementSyntax
Hi, in the example below I want to infer that the goto statement <goto case 1;> (of type GotoStatementSyntax) references the case switch label <case 1:> (of type SwitchLabelSyntax)...
View ArticleRoslyn Optimization pass hooks?
Any plans in the future to provide hooks into the optimization passes of the compiler? I've been working with LLVM for some research projects and it would be fun to implement similar things in C#...
View ArticleInstalling Roslyn on Windows 8 and VS 2012
I tried to install Roslyn on the RTM of Windows 8 Enterprise with VS as: I am not sure what are my options. Is it just not supported? Kevin Burton
View ArticleWith block and MemberAccessExpressionSyntax
string code = @"Public Class Sample Public Sub Foo() Dim tb = New System.Web.UI.WebControls.TextBox() With tb .Text = "" End With End Sub End Class"; var tree = SyntaxTree.ParseCompilationUnit(code);...
View ArticleSymbol from ClassDeclarationSyntax
Hi.. I'm unable to get a symbol (symbolInfo.Symbol) from a ClassDeclarationSyntax. It is always null. I'm querying the semanticmodel from the IDocument which the ClassDeclarationSyntax is contained in....
View ArticleMore Natural Metaprogramming Manners?
Hello everyone, new to here and I must say Roslyn is amazing. I was recently considering to create a new languange(or modify an existed one with metaprogramming technics, such as Lua) to fulfil my...
View Article