MSBuild Error 5004

MSB5004 Build Error for VS2008 Solution
 

During an automated build process I came across an error that MSBuild had thrown – ‘Error parsing the nested project section in solution file’. The problem stems from a change to a GUID for one of the Nested Projects within the Solution File. When comparing a Solution File for a successful build to the failed build I found the GUID had changed. To rectify the error I added a blank text file to the solution, saved the changes to the solution file, removed the text file and re-saved the solution file. This resolved the issues as the next build was successful.

GAC & ZAP

Whats the difference between GAC and ZAP?.
 

The GAC holds assemblies installed on the local host that are available for shared use by other code. The Zap Cache is a sub-cache of the GAC that holds assemblies that have been precompiled into native machine code. Zap Cache assemblies are typically Fully Trusted libraries that are used frequently by the CLR itself, so precompilation boosts performance.

If you would like to know more, take a look at http://www.nsa.gov/ia/_files/app/oldFiles/NET_Framework_Sec1.pdf

Unable to find manifest certificate in the certificate store

Addind a Strong Name Key file to an existing project .
 
Whilst trying to add a Strong Name Key file (.snk) to an existing Visual Studio 2008 project I came across this error – Unable to find manifest certificate in the certificate store. Since this was the first time that I had tried adding a key file to the project I couldnt understand why it wasn’t letting me do it? It turns out that someone else had previously been experimenting with Signed Assemblies and there were some entries in the .csproj file that were left over:
 
<manifestcertificatethumbprint>…</manifestcertificatethumbprint>
<manifestkeyfile>…</manifestkeyfile>
<generatemanifests>…</generatemanifests>
<signmanifests>…</signmanifests>
 
After I removed these lines and reloaded the project within Visual Studio I was able to add my Strong Name Key file without any further issues.