Welcome to the CCI Code and AST components project discusion board.

This is a forum for asking questions and making suggestions. When a thread regarding a question has run its course, please consider adding the original question and a concise answer to the Frequently asked questions topic of the Home tab. If the answer to a question is that you've discovered a bug, please go to the Issue Tracker tab and add a bug report. When a thread regarding a suggestion has run its course, please consider adding a work item in the Issue Tracker with a summary of the suggestion.

how to access type Visibility

first post: tshaug wrote: Hi everybody, I am using CCI to analyze and visualize assemblies....

latest post: hermanv wrote: The visibility of a type is dependent on whether it is nested in an...

everything is missing...

first post: Annapurna1 wrote: VS2008 cannot locate a single type name or assembly reference...fur...

Missing file: \Sources\MutableCodeModel\Normalizer\ForEachRemover.cs

first post: brentbynum wrote: Looks this file was missed in Commit 72200.

NewILToCodeModel: Source file 'Unstacker.cs' could not be found

first post: VIvanov wrote: Hello! I have a revision Revision: 72116 Author: SND\mikebarnett...

latest post: VIvanov wrote: Thanks! Now, solution is compiled successfully.

Getting ISourceMethodBody from MethodInfo

first post: redoz wrote: Hi, I wanted to see if I could decompile a method without having t...

latest post: hermanv wrote: Mike has kindly posted the code. Look for the new ReflectionImporte...

building ast.sln

first post: mdude wrote: I am trying to integrate Dafny into Visual Studio 2010 and I canno...

latest post: mdude wrote: You can ignore this, I figured out the problem.

IL rewriting after code rewriting?

first post: JochenHuck wrote: Hi, I use the code model to instrument method bodies via a custom ...

latest post: hermanv wrote: The Code Model is a representation of IL, not C#. Unlike C#, the C...

pe2pe output not deterministic?

first post: BadCorporateLogo wrote: I frequently disassemble my rewritten assemblies (using ildasm) to...

latest post: hermanv wrote: It would be nice if rewriting a decompiled assembly produced the sa...

Adding support for postfix/prefix decrement/increment and so on.

first post: hermanv wrote: As of changeset 67463 the Code Model has some new properties and ne...

Failing to load .NET core libraries

first post: perelman wrote: I am trying to do a code analysis task which involves using the bod...

latest post: hermanv wrote: Changeset 67429 should fix the crash for you.

CodeDeepCopier doesn't seem to support mixed assemblies

first post: larryssmith wrote: I tried the PeToPe.exe example on a bunch of different exes and dll...

latest post: hermanv wrote: I don't know, but that was supposed to a scenario for them. Better ...

Replacing the body of a property setter using the CodeRewriter

first post: fchapa wrote: I am new to this. I am trying to change the body of a property usin...

latest post: fchapa wrote: Thanks Herman. Your suggestions really helped me understand CCI bet...

How to use CCI AST to compare dlls

first post: dzhao wrote: Hi,I want to get the difference information between current version...

latest post: dzhao wrote: Thanks a lot, Herman, and sorry for ambiguous. I worked on a regre...

Can CCI be used for profiling?

first post: jasperpaul wrote: Hi, I am profiling Asp.Net applications. I use the .Net profiling A...

latest post: EricCosky wrote: Thanks for the very interesting sample. I was looking into what mig...

Add a localDefinition to the current Scope

first post: Gambid wrote: Hi, I am new to the Cci and I am trying to implement a lock block a...

latest post: Gambid wrote: Sorry for this whole last thing :( I found the mistake. Nothing is ...

anonymous delegates

first post: slurckoduck wrote: Hi! I'm trying to generate a piece of code, but I can't make it wor...

latest post: hermanv wrote: The error is quite specific and should only show up if you are tryi...

Can I import Type from external libaries

first post: kirandeluxe wrote: I wonder whether this is possible:Suppose I have an assembly with f...

latest post: kirandeluxe wrote: Thanks for quick reply. I was just a bit curious. As u said this is...

Missing files?

first post: HaoZhong wrote: I download the latest version of CCI Code and AST components (ccias...

latest post: hermanv wrote: It has been renamed to NamedTypeDefinition.

Cci RunAndCollect?

first post: justinc wrote: I'm looking at the HelloAST sample project. I would like to do some...

latest post: justinc wrote: try: var obj = new object(); var asEnumerable = obj.Cast<object>...

CodeModelToIL switch issue

first post: edgardozoppi wrote: Hello,The following method of the CodeModelToILConverter (located a...

latest post: edgardozoppi wrote: Thanks, I saw that you comment that line in one of the latest commi...

SourceToIL is unable to decompile loops?

first post: xenoby wrote: I'm using the very latest version of Ast+Metadata at the moment of ...

latest post: hermanv wrote: I'm afraid that there has been very little progress. There is nothi...

Creating a specific Generic Type from two ITypeReferences

first post: justinc wrote: I have two ITypeReference objects, for example representing:System....

latest post: justinc wrote: Perfect thanks. Sorry for all the questions, still trying to find m...

Finding a Type

first post: justinc wrote: I'm looking at the documentation and some samples and I'm not entir...

latest post: justinc wrote: Ok nevermind actually, I'm blind. I can see that the types that imp...

Properly formed Namespace trees

first post: justinc wrote: I'm just wondering about the proper way to create namespace objects...

latest post: justinc wrote: Excellent, thanks.

Adding new types to an assembly

first post: sclement41 wrote: Hi,I am using a CodeAndContractMutator (through CCISharp). I want t...

latest post: sclement41 wrote: I seem to have found the solution. Turns out I have to cast the IAs...

CodeMutatingVisitor changes

first post: jamarchist wrote: I was using CodeMutatingVisitor to walk an assembly to scan for sta...

latest post: hermanv wrote: ILToCodeModel.SourceMethodBody is now a subclass of MutableCodeMode...

Status

first post: nodirt wrote: Hi,I'm starting a project where I need to develop an assembly rewri...

latest post: hermanv wrote: Compilation of closures should mostly work. The major missing piece...

insert a method with attribute?

first post: calvinzhao wrote: Greeting.I would like to insert a method just like: [PexMethod]...

latest post: hermanv wrote: Have look at Normalizer.cs in the MutableMetadataModel project for ...

Property setter and property getter injection

first post: nikolavas wrote: Hello I'm very new to cci, and i want to ask you some question?I've...

Non-mutable SourceMethodBody

first post: PerPlexEd wrote: Is it much work to make a ISourceMethodBody that doesn't depend on ...

latest post: hermanv wrote: Constructing an immutable code model is surprsingly tricky because ...

HelloCodeModel sample error

first post: reyems wrote: HiI have compiled the HelloCodeModel sample from the downloaded svn...

latest post: hermanv wrote: The sample has now been updated and should work again. The underlyi...

when use cci.ast and cci.metadata in one solution

first post: calvinzhao wrote: Hi, I have a visual studio 2010 solution, it includes one add-i...

latest post: hermanv wrote: This should not cause any problems.

add a LocalDeclarationStatement

first post: Calvinzhao wrote: Hi, I use the following code to insert a new localDeclarationStatme...

latest post: Calvinzhao wrote: Thanks very much, I get it done correctly under your guidance.

peverify failed for the instrumented file.

first post: Calvinzhao wrote: HI,I use the CCI to instrument a class to write the running informa...

latest post: Calvinzhao wrote: Thanks for you reply, I think I got know what is the reason for the...

Contracts Injector and cccheck output

first post: tapicer wrote: Hello, I have a problem: cccheck is giving less information about t...

latest post: tapicer wrote: Great! Thanks for you answer.I'll try to get more information from ...

how to save the return value using cci

first post: calvinzhao wrote: Hello, I am a green hand for Cci. Now, I want to instrument a meth...

latest post: calvinzhao wrote: Thanks for your help, I have solved the problem for saving the retu...

PDB update mutator changes

first post: reyems wrote: I have implemented a custom CodeMutator to inject code into method ...

Contract extraction and injection fails

first post: edgardozoppi wrote: Hello, if you execute the following code you will loose some method...

latest post: mikebarnett wrote: Thanks! I agree: the case does not seem necessary. And I can't reme...

TryCatchFinallyStatement

first post: niemeierlu wrote: Dear community,I'm just making my first steps in CCI. I was trying ...

latest post: niemeierlu wrote: Hi Herman,Nesting the try-catch into a try-finally produces the cor...

Latest checkins to Contracts Extractor and Injector breaking loops

first post: tapicer wrote: Hello, I did an update of the CCI code and found some issues, given...

latest post: mikebarnett wrote: Yes, you have to use the CodeContractAware host because the extract...

Contracts extraction and injection in constructors

first post: tapicer wrote: Hello, based on the sample HelloContracts I'm doing a tool that inj...

latest post: mikebarnett wrote: Thanks! Great catch! I've checked in the fix.

for/foreach/while/do

first post: Gluber wrote: Hi there ! One question that came up during development of a sou...

latest post: hermanv wrote: I'm afraid that the MSR Rise group has no spare cycles to devote to...

CLSCompliant not set?

first post: Meile wrote: Hi,I was wondering if there is a specific reason why the assemblies...

latest post: Meile wrote: Thanks for the additional comments. It makes things clear to me now.

SVN Connect?

first post: MarkHillebrand wrote: Hi all, I can't seem to connect anonymously or with my CP account ...

latest post: MarkHillebrand wrote: It works here, too.Best, Mark

Type load failure when mutating generic type

first post: ckitching wrote: I'm trying to mutate a type by injecting a method, and rewriting so...

latest post: ckitching wrote: Thanks. That worked. I figured that there had to be something lik...

Wrong code emitted in private roundtrip test

first post: mterwoord wrote: For sample project, see www.terwoord.nl/CCIRepro.zip Ultimate goal ...

latest post: ckitching wrote: Is there a reason why you're creating your own host class? There i...

Is there a CSharpSourceReader ?

first post: justinc wrote: I see in the tests there is a CSharpSourceEmitter and I can see a ....

latest post: justinc wrote: Sweet! And it looks like it's using the Cci already so that is perf...

Latest rev (45605) broken?

first post: mterwoord wrote: I'm working on an assembly modifier, but I'm having issues rewritin...

latest post: hermanv wrote: This thread has meandered a bit and I'm not quite sure what the iss...

An example of CodeMutatingVisitor here

first post: perplexed wrote: If someone else is looking for an example of CodeMutatingVisitor, y...

CodeCopier usage

first post: perplexed wrote: "The mutator classes have turned out to be very hard to use in prac...

latest post: perplexed wrote: I'm copying the body of a method. I'm going to use the body content...

Get latest - build broken?

first post: ZeroBugBounce wrote: Hi, I just used Tortoise SVN to export the Code and AST Components ...

latest post: ZeroBugBounce wrote: It is, thanks!

OperationCode.Cpblk

first post: fsudaman wrote: HI,In the source code of ParseInstruction method (in SourceMethodBo...

GotoSwitchCaseStatement

first post: altso wrote: Does PeWriter handle GotoSwitchCaseStatement correctly? I tried to ...

latest post: altso wrote: Thanks for your reply. I hope you will have enough resources to wri...

Project CCI CodeModel to C# code?

first post: jssyjrm wrote: Just to make it clear (the project seems pretty complicated due to ...

latest post: hermanv wrote: There is more than nothing, but not something that is quite complet...

IExpression.IsPure

first post: mterwoord wrote: Why is IExpression.IsPure always false? I would think that expressi...

latest post: hermanv wrote: IExpression.IsPure was introduced into the Code Model by mistake. W...

Projecting on CodeModel

first post: PerPlexEd wrote: Sorry to ask again about this subject.1) I have my specialized comp...

latest post: PerPlexEd wrote: Thanks for your answer.Currently I'm trying again to work against C...

Is CCI/AST merging two abstraction layers in one?

first post: PerPlexEd wrote: Hello.This is an issue that sprung to my mind several times since I...

latest post: PerPlexEd wrote: I think I probably found a complete solution to my problem.I was pr...

ITypeReference from Ast.NamespaceClassDeclaration

first post: PerPlexEd wrote: Hello. I'm back to my compiler. If I'm compiling something like (C#...

latest post: PerPlexEd wrote: Yes, I found the SpecSharp2 compiler.I think that last time I check...

Determining the name of an assembly from a type.

first post: ReidHochstedler wrote: How would I go about determining the containing assembly of a type?...

latest post: ReidHochstedler wrote: Excellent, that is exactly what I was looking for. Thanks!

for loop index pinned?

first post: PerPlexEd wrote: Hello. Is it normal that a local variable used in a "for" loop g...

latest post: hermanv wrote: No this is not normal. Somehow, it seems, the local variable defini...

Simple Rewriting Question

first post: DefaultSteve wrote: Hi, have been using CCI to do some simple program analysis and now ...

latest post: mikebarnett wrote: I just sent you an email to talk more about this. Let me know if yo...

Binaries for CCI Code and AST

first post: altso wrote: Hi,Is it possible to download Code and AST binaries? There are comp...

latest post: hermanv wrote: Not yet, I'm afraid.

"Hello, world!" example for CCI/AST?

first post: PerPlexEd wrote: Hi.Sometimes beginning to use a library it's easier when you have a...

latest post: PerPlexEd wrote: Hello.Your examples are readable and clear even without comments.Ve...

an abnormal performance about petope

first post: zhanglm wrote: Hi, Hermanv I'm Lingming I found an abnormal point about petope sam...

latest post: zhanglm wrote: Hi, hermanv I just wanted to make sure that you got my reply~ Wow, ...

an abnormal performance about petope sample

first post: zhanglm wrote: Hi, Hermanv Sorry, the last letter has problem in displaying pictur...

add a local variable to methods

first post: zhanglm wrote: Hi,I want to add a local variable to existing methods through CCI, ...

latest post: zhanglm wrote: Thanks for your help 2009-09-14 zlmdunk 发件人: hermanv 发送时间: 2009-09...

Regarding static checking.

first post: rahulpandita wrote: I am new to CCI and am trying to work with code instrumentation. Ca...

latest post: rahulpandita wrote: I tried solving the issue as Directed but could not find anything s...

CCI and AppDomain

first post: purvap wrote: Hello,I have two Assemblies A and B. I am adding one type say Type1...

latest post: hermanv wrote: PEWriter will only write out the assembly references explicitly lis...

Problem While mutating NestedTypes.

first post: purvap wrote: Hello, I have a following class: public class Class1 { pub...

latest post: purvap wrote: Hello there, I wanted to update you with the fact that I was doing...

Why delete my Discussion

first post: lishaowensdut wrote: I commit one question at the day before yesterday. the question is ...

latest post: hermanv wrote: The discussion you refer to is part of the ccimetadata project and ...

How does CCI support incremental compilation?

first post: vizu wrote: Hi,What does it mean that CCI supports incremental compilation? (Co...

latest post: hermanv wrote: An incremental compiler will respond to an edit by reparsing a sour...

Using Microsoft.Cci.Ast to build C# AST?

first post: vizu wrote: Hi,Do I understand it correctly that I can use the Microsoft.Cci.As...

latest post: hermanv wrote: You can pretty much use the CCI AST base classes as is for a C# AST...

When do you plan a release?

first post: vizu wrote: Hi,When do you plan to release a stable version?Thanks,Ferenc

Problem in PeWriter class in case of a Property in a Type.

first post: purvap wrote: Hello,For the following code:HostEnvironment heHost = new HostEnvir...

latest post: hermanv wrote: The bug is indeed in the CodeMutator. It only manifests when you us...

Adding a Static Constructor to a Type.

first post: purvap wrote: Hi, I want to add a Static Constructor to a mutable Type and a few...

latest post: purvap wrote: Hey hi, Very Sorry for the late reply. I got it done correctly. ...

Adding Reference of a PE file to a Project

first post: purvap wrote: Hi, I have been using CCI (Common Compiler Infrastructure - Code...

latest post: hermanv wrote: I don't know either. As far as I know, peverify is a diagnostic too...

  • 1-76 of 76 discussions
    • Previous
    • 1
    • Next