Where is CastExpression (from CSharp) in VB.NET
I am porting code from C# and can't find the equivalent of CaseExpression from SyntaxFactory.From CSharp return CastExpression(type, Parenthesize(expression))...
View ArticleHow do you set a BreakPoint in a VSIX in Visual Studio 2015 RC
I know in VS 2013, I can hit <Ctrl> F5 start a new instance of Visual Studio with my VSIX loaded. If I set a breakpoint before starting the new instance, when the breakpoint is hit the original...
View ArticleWill C# 6.0 ever be supported by VS 2013?
There used to be a C# 6.0 preview to add Roslyn support to VS 2013, but that has been discontinued. Currently, the only way to compile C# 6.0 projects in Visual Studio is to use the 2015 RC. My...
View ArticleRoslyn
Hello.I will appreciate it if you answer the questions below: 1. when is the nearest releasre date of a new Roslyn version? 2. will the Roslyn be a part of a new .Net framework addition? 3. shall we...
View ArticleConfused - VS 2015 / Roslyn
I've just started using VS 2015 RTM and am confused on where things stand.Is Roslyn RTM and baked into VS 2015 or do I need to use Nuget to install?Do I need to do anything else because I see older...
View ArticleCan't compile rosyln codeplex source
I want to use the Roslyn scripting engine and I understand that to do this I must compile the Roslyn source from here However, when I compile with VS 2015 (just released) I get a zillion errors...
View ArticleHow to apply a list of ApplyChangesOperation on a Roslyn Workspace
I have a set of ApplyChangesOperation, which I want to apply to a Workspace in a loop. All the operations operate on a single file. Something like://Filter out a set of ApplyChangesOperation as...
View ArticleCan't install Rosyln, get error System.Reflection.Metadata not compatible
I am installing Microsoft.CodeAnalysis.CSharp from the NuGet nightly build and I get the error:Unable to find a version of 'System.Reflection.Metadata' that is compatible with...
View ArticleIntellisense for custom language
Hey guys, i read about roslyn and it sounds great. I was wondering whether there is a way to use roslyn to implement my own scripting language intellisense? I only read about C# and VB syntax. Does...
View ArticleHow to remove all comments in a .cs textfile with Roslyn?
How to remove all comments and all trailing whitespaces in a .cs textfile with Roslyn?Can anyone provide a sample?Thanks.
View ArticleUse Roslyn to Get Type for CollectionInitializer in Visual Basic
Is there an API that gets the type of a CollectionInitializer? I can call GetTypeInfo to get the type of an Expression or identifier or NumericLiteralExpression and for one element of a...
View ArticleHow to enable/disable any DiagnosticAnalyzer by Id at runtime - Visual Studio...
Hi,I'm writing some DiagnosticAnalyzer for VS 2015 (Roslyn), I want to implement a dialog options, which allows user to enable/disable any DiagnosticAnalyzer they like, how can I achieve that?...
View ArticleCan't install roslyn on vs2015 and windows 10
Hi,I built roslyn from source, but I receive an error. I attach my log file.Microsoft (R) Build Engine versione 14.0.23107.0 Copyright (C) Microsoft Corporation. Tutti i diritti sono riservati....
View ArticleScripting in ASP.Net
Hello.I'm planning on using Roslyn scripting in ASP.Net environmet for a custom expresion evaluation.Currently i'm using your RunAsync over a Script prevoiously compiled, with a single shared...
View ArticleHow do I change a field type using FieldTypeDeclaration ?
I am using the visual studio project type - Stand-Alone Code Analysis Tool. I am using the following code but the ToString() is showing an unexpected result. static void Main(string[] args) {...
View ArticlePassing SyntaxTrees to SyntaxRewriter
Hello,I have some issue here --> I wrote my own SyntaxRewriter (it inherits from CSharpSyntaxRewriter), and it does exactly what I want. But now I don't know how to inject this Rewriter to my Visual...
View ArticleGet IDocument for SyntaxNode
What is the best and most readable way to obtain the IDocument instance that a SyntaxNode is defined in ? Should I iterate over all documents in my project/solution, and check whether my SyntaxNode...
View ArticleHow can I load an existing assembly and get it all its public members and...
Hi,Is it possible to load a dll and get all the public membersand methods using Roslyn? My requirement is a C# editor which will accept the a dll and it should show intellisense for the objectof...
View ArticleCreating a method doccumentation comment
I am trying to create a documentation for a method using Roslyn. Using the diagnostic template, I am able to detect if a method has a documentation or not. Plan is to fix those methods using code fix...
View ArticleThe Proper Way to Construct Multiline XML Comments
I've found examples of how to construct an XML document comment on a single line, but most of the comments in a large module contain the multiline version of a document comment. I can't seem to work...
View Article