Monday, 10 December 2012

Some JustCode compilation issues (on .NET 4.0 dynamic keyword and method default parameters)

I’m giving JustCode another go and it doesn’t seem to like some .Net 4.0 features (which btw compile ok in VisualStudio):

image

You can see that the JustCode parser didn’t like the Default Parameters, in both method definition:

image

and in method invocation:

image

image

It also doesn’t like the dynamic keyword

image

Fixing issues

Since there are not many of these, lets see if we can fix them all, and get a clean compilation.

One way to deal with method invocation problems like:

image

Is to do the call with the optional parameters:

image

After a while, I was able to fix all issues, except the dynamic ones (which I set to ignore)

image

For reference here are the code changes made during this post

image

1 comment:

Anonymous said...

Hi Dinis,

Thanks for the feedback. JustCode supports optional parameters and the dynamic feature if you're in Visual Studio 2010 and above. Unfortunately we couldn't reproduce the issue with your source code (which we've downloaded from GitHub). Can you please send us your JustCode logs? If you find it more convenient, you can file a support ticket and send us the logs there. Your help will be much appreciated, and we are ready to get to the bottom of this issue.

Thanks,
Vladi
Program Manager @ Just* in Telerik