Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Support for .NET 4.0 (VS2010 Beta)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thorium  
View profile  
 More options Oct 6, 10:59 am
From: Thorium <tuomas.hieta...@iki.fi>
Date: Tue, 6 Oct 2009 07:59:53 -0700 (PDT)
Local: Tues, Oct 6 2009 10:59 am
Subject: Support for .NET 4.0 (VS2010 Beta)

I tried to use Gendarme with .NET 4.0 dll and got:

Stack trace: System.NotSupportedException: Version not supported:
4.0.0.0
   at Mono.Cecil.BaseAssemblyResolver.GetCorlib(AssemblyNameReference
reference)
   at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference
name)
   at Gendarme.Framework.AssemblyResolver.Resolve
(AssemblyNameReference name)
   at Gendarme.Framework.AssemblyResolver.Resolve(TypeReference type)
   at Gendarme.Framework.Rocks.TypeRocks.Resolve(TypeReference self)
   at Gendarme.Framework.Rocks.TypeRocks.Inherits(TypeReference self,
String className)
   at Gendarme.Framework.Rocks.TypeRocks.IsAttribute(TypeReference
self)
   at
Gendarme.Rules.Design.AttributeArgumentsShouldHaveAccessorsRule.CheckType
(TypeDefinition type)
   at Gendarme.Framework.Runner.OnType(RunnerEventArgs e)
   at Gendarme.Framework.Runner.Run()
   at Gendarme.ConsoleRunner.Run()
   at Gendarme.ConsoleRunner.Execute(String[] args)

--
- Tuomas


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sebastien Pouliot  
View profile  
 More options Oct 6, 8:10 pm
From: Sebastien Pouliot <sebastien.poul...@gmail.com>
Date: Tue, 6 Oct 2009 17:10:03 -0700 (PDT)
Local: Tues, Oct 6 2009 8:10 pm
Subject: Re: Support for .NET 4.0 (VS2010 Beta)
Hello Tuomas,

The issue is inside Cecil. The root problem is that Gendarme, like
most Cecil tools, can work on assemblies compiled with another version
of the framework/runtime (e.g. Mono, Silverlight...) and, while a nice
feature, it needs some hacks to find where the FX assemblies (for the
analyzed assemblies) are located.

I'll talk to JB to get Gendarme 2.6 (i.e. the Cecil version in Mono
2.6) to work with VS2010 beta1. However this is likely to break in the
future since the location of the assemblies is, generally, associated
with their version number and this part is likely to change for beta2
(and/or the final release of .NET 4.0).

The long term (post 2.6) solution is to add events inside Cecil when
the Resolver fails to find an assembly and let the application
(Gendarme in this case) deal with the situation. Which will likely
mean a way (e.g. command line open or a window dialog) for the end-
users to provide the location.

Sebastien

On Oct 6, 10:59 am, Thorium <tuomas.hieta...@iki.fi> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google