Home > could not > project error ca0055 could not load

Project Error Ca0055 Could Not Load

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about

Ca0055 Error Running Code Analysis

Stack Overflow the company Business Learn more about hiring developers or posting ads with ca0052 : no targets were selected. us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is

Error : Ca0055 : Could Not Load File:

a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up StyleCop CA0055 issue when target DOES exist up vote 4 down vote favorite As with another, similar question, I am getting two StyleCop errors on build: CA0052: No targets were selected. CA0055: Could not load [path to main exe...] But, unlike the other question, reformatting and reinstalling everything on my dev machine did NOT fix it. We are running Visual Studio 2010, with SP1, and targeting Dotnet 4.0. Here's another detail that may help someone out there figure out what's wrong, though: I also tried building the solution under Visual Studio 2012 RTM, and I got a more detailed version of the second error message - CA0055 Error Running Code Analysis CA0055 : Could not load C:\Users\UserName\SourceCode\ProjectName\Debug\xxx.exe. The following error was encountered while reading module 'System.Windows.Forms': Could not resolve type reference: [System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute. [Errors and Warnings] (Global) Anyone out there have any clues? No one else is getting this error, so it is undoubtedly something odd in my own setup, and which I inadvertantly replicated when I repaved my machine. But...what? c# visual-studio-2010 stylecop share|improve this question asked Aug 20 '12 at 21:11 Wing 2,11931412 Aren't these Code Analysis (or FxCop) errors, not StyleCop errors? –RenniePet Aug 20 '13 at 18:55 I had a simular problem, maybe my answer is helpfull: stackoverflow.com/questions/27106841/… –Dennis Feb 6 '15 at 9:40 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote I found two ways to fix this, with no help whatsoever from any of Microsoft's documentation. The clue was in VS 2012's additional error reportage - StyleCop could not locate the System.Drawing assembly. Fix #1: remove the HintPath element from the .csproj file telling the project where to find the Windows.Forms assembly: