IT Community - Software Programming, Web Development and Technical Support

FxCop 1.36: 'Referenced assembly could not be found' for assemblies in GAC

This is a discussion on FxCop 1.36: 'Referenced assembly could not be found' for assemblies in GAC within the C# Programming forums, part of the Software Development category; FxCop 1.36: 'Referenced assembly could not be found' for assemblies in GAC Hi, I am using FxCop 1.36 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 06-18-2009, 03:20 AM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default FxCop 1.36: 'Referenced assembly could not be found' for assemblies in GAC

FxCop 1.36: 'Referenced assembly could not be found' for assemblies in GAC

Hi,


I am using FxCop 1.36 and VS2008 SP1.



We have a number of solutions and projects in our organization. Some are placed in the GAC by a post-build event. These projects exist within our solutions and are added as project references to other projects. Projects that reference these GAC assemblies do not create local copies of them, and when we run FxCop on those projects, it fails to resolve those assemblies.



Since the assemblies are installed into the GAC after being built, and they are all set to version 1.0.0.0, I am confident there is not an assembly version problem.



Of course I can tell the project file where the assembly is located, and it's nice that it remembers, but it seems like FxCop should be able to reference assemblies in the GAC directly. Can anyone point me towards what I might be doing wrong? I have created a small test solution that reproduces this problem on multiple computers in my organization; it is available at the following

URL: http://www.crazyfarts.com/codesamples/FxCopGacTest.zip
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-18-2009, 03:21 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: FxCop 1.36: 'Referenced assembly could not be found' for assemblies in GAC

Hi,


In FxCop 1.36 go to menu "Project"

Select "Options..."

In the tab "Spellings & Analysis" select "Search Global Assembly Cache for missing references" option

That's all
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rule for generated code is ignored in FxCop 1.36 when it shouldn't be shaalini C# Programming 2 06-18-2009 08:13 PM
FxCop 1.36 and theGlobalSuppression.cs shaalini C# Programming 7 06-17-2009 11:44 PM
Is Versioning applicable to private assemblies? mobilegeek ASP and ASP.NET Programming 5 08-07-2007 03:01 AM
Which Javascript file is referenced for validating the validators at the client side? mobilegeek HTML, CSS and Javascript Coding Techniques 1 07-25-2007 10:15 PM
How do assemblies find each other in dot net 2005 ? Archer C# Programming 1 07-25-2007 02:44 AM


All times are GMT -7. The time now is 05:33 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0