visual-studio-2008

Debug or build as non-admin in Visual Studio 2008

I am trying to install Visual Studio 2008 at a university's computer lab. The lab machines (XP Pro) are configured so that students don't have Administrator rights when they log in. So when I try to build or debug a class library project in Visual Studio 2008, I get this error: "Cannot register assembly 'C:\Documents and Settings(usernam...

Error when closing Visual Studio 2008

I am currently running Visual Studio Team System Development System 2008 on my workstation and receive the following application event log entry: Faulting application devenv.exe, version 9.0.30729.1, stamp 488f2b50, faulting module mfc80u.dll, version 8.0.50727.762, stamp 45713438, debug? 0, fault address 0x000c33fc. Has anyo...

Order of assembly resolution during compile

How does VS 2008 determine where to look for assemblies used during compiling of applications? There must be some order used. Is there something that is used in the Tools\Settings or something else? I am looking for the order of which assemblies resolution occurs during the compilation process. ...

Move file associations from Visual Studio 2005 to 2008

Both Visual Studio 2005 and Visual Studio 2008 is installed on my PC, but when I open a .aspx or .master file from Explorer, it opens in 2005. I would like them to open in 2008. I could change the file associations manually, but there are quite a lot of file extensions to go through. Is there an easy way to give all the file associat...

How to capture the mouse click event in VS2008 by ENVDTE?

I'm writing an add-on (by the format of VSPackage) for Visual Studio. One of the designed feature is: when user left-clicks in the area of text editor or presses up or down key to move to a new line, the add-on can capture this event and then do something (It's similar as the "VA Outline" feature in Visual Assist, when you clicks to a ne...

Is it possible to use VS2010 on a VS2008 Solution w/o upgrading?

I'm working on a small team project, and would like to play around with VS2010 without forcing the entire team to. I would be fine maintaining 2 project files if there was some sort of script or app to help do so. ...

Small example on getting Cairo graphics to work with MFC?

I have some legacy MFC apps, and I'd like to use the Cairo drawing engine to add some charts and graphs. I'm searching for a small example of how to get that to work. Basically, once I've created a PNG or GIF file, how do I get that show up in an MFC CView window? My google-fu is not finding any good clues. ...

VS2008 - SGen error on Build

I get the following error when attempting to build my assembly in Release configuration in Visual Studio 2008: SGEN : error : Cannot load dynamically generated serialization assembly. In some hosting environments assembly load functionality is restricted, consider using pre-generated serializer. Please see inner exception for more infor...

VS2008 Custom Build Rule based on file location

How do I assign a build rule to all files in a given folder in Visual Studio 2008? I know how to associate a build rule with all files with a given extension but I want one that applies to all files in a given folder within the project directory. Example rule: If any file in .\media changes, zip the entire folder and copy the zipped f...

How can I prevent users from changing the window/form size when application is running

when window form application is running user can change form size i do not find property of form that do not alow user that change form size thanks for help ...

Using the Subversion revision for the ClickOnce publish revision?

I'd like to set the ClickOnce publish revision to the Subversion revision of the code's repository — e.g. 3.1.9.2453 for version 3.1.9, based on SVN r2453. Now, for the assembly version, I know I can use TortoiseSVN's SubWCRev.exe to generate AssemblyInfo classes that contain the build revision. However, it's not quite as simple with Cl...

Recompiled code with VS2008 and now it reboots XP SP2

It's very stange, but I moved from VS2005 to VS2008 (MFC, VC++) and now the recompiled program causes a BSOD or a reboot on XP SP2 (works ok on SP3 and above). It doesn't get to InitInstance. Has anyone experienced this and knows where to look to fix it? I'm tinkering with project settings at the moment, but unsuccessfully so far. Debu...

Nunit in VS Tutorial

I'm looking for a tutorial that shows how to use NUnit's integration with visual studio to set up some simple unit tests, does anyone know of one? ...

Changing Resource files (resx) namespace and access modifier

Hello, In my webproject I'm using 4 resources files in my App_GlobalResources folder. One of them (lang.resx) has been created before my arrival on the project. It has the correct namespace (WebApplication.App_GlobalResources) and access modifier : public. On the other hand, the three others Resource files that I just created have a di...

Just starting one instance of Visual Studio?

How do I start just one instance of Visual Studio 2008? For example if I assign a favorite shortcut for Outlook, and press this key, everytime it takes me back to the One and only instance of Outlook. How do I get this to work with VS 2008, I don't want it to start another instance whenever I press the shortcut key, but go back to the ...

Intellisense <%= intended <%@ Assembly= returned.

When I am editing my aspnetmvc views, I begin my code brackets: <% and intellisense pops up items like <%@ Assembly... <%@ Control... <%@ etc... which is fine, but when I continue my line and press the [=] key, it automatically selects <%@ Assembly=%> and completes my tag. It's not a huge deal, but does slow me down a bit, especia...

Visual Studio ASHX files debugging

I have a ashx file in a non web project in VS2008. The type of web project (stsdev that is used with Share Point) deploys the ashx file to the server. I can navigate to the file and it is there. In VS2008 when I try and put a break point in the ashx code it will not let me. This means when I connect to the WP3.exe process to remotely deb...

How to set default XAML view in Visual Studio 2008

In Visual Studio 2008, when you add a new XAML window to a WPF Application Project, the default view you get is "split view" where the visual designer and the XAML code are shown one above the other in the same document. I prefer an alternative view which you can get by double-clicking on either the Design or XAML tabs. The visual desig...

How do I force a rebuild when the project configuration changes?

I have several project configurations and I switch between them constantly. However, every time I switch, I have to manually do a rebuild before running. How do I force it to rebuild automatically? ...

StyleCop specific config / MSBuild & Visual Studio various behaviours

Hi, Here is a problem with specific StyleCop configuration. I've got a total of two Settings.StyleCop files in my Visual Studio .Net solution folders. The first is placed at the folder root with chosen rules for the team. As I want to disable some rules for a specific project, I've put another Settings.StyleCop file in the correspond...