Quick tip on Visual Studio 2008 and UAC

On a Windows Vista (and presumably Windows Server 2008) that has User Account Control (UAC) enabled you are no longer able to drag and drop files from Windows Explorer into your VS solution. I always used this to quickly add files to a project. What a bummer.

There are 2 workarounds:

  1. Copy or move the files to the correct location in your Visual Studio project folder. Then go into Visual Studio and click the Show All Files button for that project.

    image

    You might need to click Refresh (not F5) on the project for the new file(s) to show up. Select them all and right-click. Choose Include In Project from the context menu.

    image

    -or-

  2. Instead of dragging the files simply copy and paste them into your project.

    image

    Sounds too easy for this to work, but it does.

Option 2 certainly makes it easier and faster for me.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s