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

Roslyn: Listing all class definitions derived from a given base class?

This is almost a reflection problem and if it is better solved using reflection then please suggest a way.  First, I would like to load the code for syntax analysis from the constituent assemblies. I...

View Article


Find all references of a text in the solution

I would like to implement a functionality which searches for all the references of a given text in the entire solution. Similar to the "Find all references" functionality in Visual Studio. Can anyone...

View Article


Real-time VS Solution Compilation and Security Scanning using Roslyn and Cat.NET

Following my previous example where I was compiling and scanning 1 file, I have now created a PoC where I'm scanning in real-time (i.e. on save) an entire solution: See Real-Time C# Solution...

View Article

Compiling NerdDinner using Roslyn

I tried to compile the NerdDinner app using Roslyn and I had quite a number of compilation errors (some a bit weird). Here is a blog post with more details and an easy way for you to consume the...

View Article

Three questions

Hi. I have got three questions for you: 1. Is there any specific way to attach custom information to syntax nodes and symbols (e.g. object Tag)? If not, what is the best alternative to do this? 2....

View Article


Using an Assembly from Compilation.Emit without saving?

Hi, I'm trying to use the result of a Compilation.Emit in a ScriptEngine instance (alternatively I could also do a 2nd compilation, same problem though). When I emit into a DynamicAssembly...

View Article

Inject multiple objects into a script.

Hi, I am a little bit stuck here. Assume the following (quite compliated to describe) situation: Users shall be able to perform some defined operations on objects within a script. These object are...

View Article

Obtaining the arguments for all call of a specific method from a specific class.

I would like to get the arguments for all method calls from a specific class. I have gotten started with: var solution = Solution.Load(solutionPath); foreach (var proj in solution.Projects) { foreach...

View Article


CodeIssue?

I was trying various template that came with the June CTP and i am finding that CodeIssue and CodeRefactoring classes are not defined. Where should I look for these? Thank you. Kevin Burton

View Article


DynamicAssemblies, Assemblies in Memory, AppDomains and Serializable

Hi, I know that this might be a duplicate, as I think that this post states the same problem but I would like to take the chance and describe our problem in a little more detailed way. We really would...

View Article

Implementing intellisense using the June 2012 Roslyn CTP?

It's my understanding that the updated CTP of Roslyn was going to provide support for getting completion lists for code being typed inside a custom REPL window. Is that true? My ideal would be to do...

View Article

Compiler Warnings supported by now?

Hi all, the document 'released-interactive-scripting-spec.pdf' names an 'Options' property for the ScriptEngine class which shall allow setting options for compilations, warnings and others....

View Article

Can't find out the PlatformTarget of a csproj using Roslyn

Hi everybody ! I'm trying to list the projects of my solution which are build with x86 platformtarget. Something like :  using (IWorkspace workspace = Workspace.LoadSolution(solution, "Debug",...

View Article


Reset Interactive from Project fails with "Invalid assembly name" error

I've installed the Roslyn June 2012 CTP (both VS 2010 and VS 2012 RC with SDK's installed for both).  In either VS 2010 or VS 2012 RC, when I right click on a project to "Reset Interactive from...

View Article

Roslyn for other languages

I gather that Roslyn is intended only for C#/VB and there are no plans on anything similar for other languages.  However, I think it would be extremely useful to have Roslyn for C++ and HTML5...

View Article


Compiler Construction

You are required to write syntax-directed definition to determine the type of each sub-expression by considering the following grammar. The given grammar can generate expressions formed by applying “+”...

View Article

add Resources to compiled assemblies...

Is there a way to add resources (*.resx) to a roslyn compiled assembly? As expected I'm getting a System.Resources.MissingManifestResourceException while trying to execute/load an assembly with those...

View Article


InvalidProjectFileException thrown when finding references

Hi, I am struggling with an issue, when I tried to find references of a symbol across the solution Symbol.FindReferences(solution) I am getting an InvalidProjectFileException because one of the project...

View Article

message showing long running script

How do I cancel a long running script

View Article

Roslyn vs Reflection

I am building a game engine right now, and one of the features is a scripting engine on PC. I am currently debating between using Roslyn or Reflection. Roslyn makes it much easier to expose objects to...

View Article
Browsing all 504 articles
Browse latest View live


Latest Images