I've been banging against a frustrating compile error in VS.NET while developing a custom module.
The program cannot access the file because it is being used by another process.
I'd close VS.NET. Delete the vswebcache directory for the app, restart VS.NET, relocate the DNN .VBPROJ location, and try again. PITA baby.
I came across a great fix shared on the DNN ASP.NET Forums the other day by, uh, Happyplace2020.
The following works for me (don't know why):
* Remove PA project reference to DotNetNuke
* Add PA project reference to DotNetNuke
* Close VS
* Open VS
It definitely worked for me, too. Thanks, happyplace!