Posts Tagged ‘visual studio’
VMWare VMDebugger “unable to detect current startup project”
I spent many small packets of time trying to find a solution to this problem over about two months. Luckily, I stumbled across an answer that actually worked for me.
Problem: Visual Studio 2008 with VMWare VMDebugger integration does not work. When I try to launch debugging in a VM, I get a message that says “Unable to detect current startup project”.
Solution: Remove any installer projects that are in the solution.
Source: Read MartinMoesby comment here.
Microsoft.WebApplication.targets not found
While setting up a non-Microsoft CI environment for an ASP.NET MVC project, I came across an interesting problem. My build agent was unable to compile my project because it could not find the Microsoft.WebApplication.targets file, which, on the development computer is located under the C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications directory.
I wanted a quick solution, so I Googled it. The top two sites resolved the issue by creating the path on the build server and copying the file over. That is A solution to the problem. I suppose another solution would be to install Visual Studio on the build agent. But, that (borderline) defeats the purpose.
I decided to make a copy of the Microsoft.WebApplication.targets file in the folder of the solution. Then, I opened the web project file and edited the line that points to the file. I changed:
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
to
<Import Project="$(SolutionDir)\Microsoft.WebApplication.targets" />
The project builds successfully in both environments now!
(Reminder) How to reset my environment settings in Visual Studio 2008
A co-worker once asked me how to reset his environment settings. His environment was set to Visual Basic, but he wanted to change it to C#. Both of us are very experienced .NET programmers, but neither of us could remember how to do it. Here is a reminder to us all:

Goto Tools > Import and Export Settings > Reset all settings