Why does the code in the reports not look exactly like my source code?

 

SPCAF performs the analysis of your customizations without access to the source code by decompiling the solution.

Some coding constructs which look different in the source code e.g.

  • using(SPSite site = new SPSite(url)){
         ...
    }

and

  • SPSite site = new SPSite(url);
    try{
         ...
    }
    finally{
         site.Dispose();
    }

get compiled to the same intermediate language (IL).

For this reason, it is impossible for SPCAF to retrieve the exactly used source code, upon decompilation.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.