Clearing the CA0068 Error in Code Analysis

This error was appearing in the code analysis for one of my SharePoint projects. It reads:

Warning 1 CA0068 : Debug information could not be found for target assembly ‘Something.exe’. For best analysis results, include the .pdb file with debug information for ‘Something.exe’ in the same directory as the target assembly.

Annoyingly, it didn’t seem to allow you to suppress it, and I was doing a Release build – so I didn’t expect to have a .pdb file.

So, how to get rid of it? Step 1 – RTFM:

Make sure that Debug info is either set to full for debug builds or to pdb-only for release builds. It should not be set to none.

Excellent – but where is the setting? Well, in my project this seemed well hidden, but was actually under the ‘Advanced…’ button:

Apparently, the location of those settings can move, depending on project type.

Advertisements
Clearing the CA0068 Error in Code Analysis

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s