Title: Quick tips for developing under Windows Vista
Slug: quick-tips-for-developing-under-windows-vista
Date: 2007-05-16 14:31:00
Author: Kartones
Lang: en
Tags: Development, Systems-IT, Visual Studio, Windows
Description: Tips for efficient development under Windows Vista with Visual Studio 2005.

<p>Now that I'm having quite a lot of development (and fighting with the OS) under Vista, here you are some quick tips that will help you a lot to develop efficiently with Visual Studio 2005.</p> <ul> <li>Navigate to <font face="Courier New">C:\Program Files\Microsoft Visual Studio 8\Common7\IDE</font>, right-click on <font face="Courier New">devenv.exe</font>, <i>Properties</i>, <i>Compatibility tab</i> and check "<i>Run this program as administrator</i>". (This one is basic to avoid errors).  </li><li>If some program doesn't works, doesn't saves your configuration or behaves strange, try running it as administrator. It might be trying to modify some registry setting and <acronym title="User Account Control">UAC</acronym> denies access to it.  </li><li><font face="Courier New">ipconfig /flushdns</font> and other shell commands dont work? Based on the previous tip, remember that you can right-click the Command-Prompt and run it as administrator too.  </li><li>Double-click on <font face="Courier New">.sln</font> files doesn't open VS2005? No problem: Right-click, <i>Open With</i> and navigate to <font face="Courier New">devenv.exe</font>. Working again!  </li><li>Installed XNA Game Studio Express, a starter kit or some other project/solution templates but they don't appear on the new project/solution dialog window? open a VS2005 command prompt (as administrator), type "<font face="Courier New">devenv.exe /setup</font>" and wait few seconds. All templates should be visible now ;)  </li><li>Remember: .NET Impersonation no longer works under UAC. You either need to launch the program with elevated privileges (you can <a href="https://docs.microsoft.com/en-us/previous-versions/aa905330(v=msdn.10)?redirectedfrom=MSDN#wvduac_topic5">create a manifest file</a>), or use <code>ShellExecute</code> to launch a new privileged process. Running programs.</li></ul> <p> </p> <p>Soon more "complex" posts, I'm having a lot of work so now almost everything is work-related... but I'm going to give a good boost to game development  ;)</p>
