visual-studio

Where does Subversion save to?

I'm learning to work with SVN using Visual Studio.NET. Everything works fine and all but I couldn't figure out something: I have my original source code at c:\source I created a repository at c:\repo (svn://localhost) I added my solution to repository using VS.NET at svn://localhost/MyProject/trunk I checked out a working copy from r...

VS2005, 2008 - ASP.NET Browser Settings

How can I choose/change which browser to start when I run an ASP.NET Web application in VS2005 or VS2008? ...

I have just installed VS.NET 2003 which left my newer versions (2005/2008) crippled

I had Visual Studio 2008 and 2005 installed on my machine , unfartunately i have to install VS.NET 2003 on it to work on an old project. However after the installation now my VS2008 projects are not compiling as they are unable to resolve the .NET core namespaces. I trying reinstalling .NET 3.5 and VS2008 but it still giving me the same ...

Determine Solutions Configuration (Visual Studio)

Is there a way, in code, to determine what "Solutions Configuration" you are running in? For example, 'Debug' vs. 'Release? I have a service that I like to test in the IDE in Debug, right now I have bool that I set which either runs the 'service' if set to true (which then uses the OnStart method to run my 'main' method), if it's set t...

What do the different scopes in WSPBuilder do?

When creating a new WSPBuilder project or new WSPBuilder item in Visual Studio, you get to choose the scope of the item being created. The options are Web, Site, WebApplication and Farm. What do the different scopes do, and how does that affect deployment? How do you determine which scope to use? ...

MSVC++ 6.0: Fatal error C1509 "Too many exception handler states in function"

I'm working on a project that uses a lot of generated files for a GUI. After some recent updates, I get this error. If I remove some controls (the new ones or some old ones, doesn't seem to matter which), the error goes away. I've temporarily worked around the problem, but I'd like a more permanent solution. I've seen mentioned on th...

Visual Studio: Make debugger aware that a function doesn't cause "side effects"

I have an object i have to watch a function output of pretty many times through the watch window. The problem is that i have to press the refresh button every time i step because "this expression causes side effects and will not be evaluated". Is there any way to tag a function with something like [DoesNotCauseSideEffects] so the watch a...

Command line Script for cleaning VS project + backing up SQL + zipping??

Does anyone happen to have some sort of a nice command line script they use that could do something like: Clean VS project (delete \bin folder contents, etc) Backup SQL Server database Zip all files up ...

Is it possible to switch to release mode automatically if I publish a vs project?

I'm obviously developing in debug mode. If I'm starting with the standard run command (F5) my project should start in debug mode but if I publish my project it should automatically switch in release mode. Is this possible somehow, maybe even with scripting? ...

How to log an application's entire stacktrace in .net

I've just started work on an existing .net application with about 40 active projects. While familiarizing myself with the project, I find myself constantly stepping through the application just to learn the structure and logic flow. It would make this process so much easier if I could let the application run and log every method call and...

Is there a way to get a better browser for the Visual Studio (2008) help?

The help browser for Visual Studio kinda sucks as far as modern tabbed browsing goes, e.g. double-click to open a document in a new tab doesn't work. Is there a way to get a better browser for the VS help? ...

VS.NET - Multiple Find All References Result Windows?

Visual Studio has a "Find All References" tool that is great in navigating the codebase to find out where a function is called or where a variable is used. When navigating a large code base, I tend to do find all references multiple times to find the top level of where a function is called. Imagine we have the following: A1() calls B1(...

How do I add CRRedist2008_x86.msi to Visual Studio Deployment Project?

I need to add CRRedist2008_x86.msi to my deployment project as it is a requirement for my app. However, I want it to run automatically. I don't want it to be just added as a file and then the user has to click on it for it to run after my app installs. Can someone guide my on how to do this? It seems like it should be very easy but ...

Visual Studio Regex '?'

MSVS: Where's the regex ? I have code that I'm trying to match with a regular expression in MSVS 2008, but I can't figure out the regex for it. Take the classic example: colou?r ...which is a regular expression that matches color or colour. This matches neither in MSVS. Referring to the help file, I cannot find ?. This wouldn't be a...

VS 2008 C++ how to make a project without .net dependency

I am writing a plain vanilla c++ console app using VS 2008. When I create the project, the IDE gives me a choice of .net versions. There is no option for 'none'. When I look at the project properties page, the Targeted Framework has whatever value I chose and is greyed out. When I try and run the app on a windows machine without the clr...

TestDriven.NET vs NCover

The company I work at is going to buy some software tools for me to use, but I do have a budget to work with. I have some unit tests written for NUnit, and am looking at getting TestDriven.NET, NCover, or perhaps both. I'm using Visual Studio 2008. My questions are: Is there a good reason to get both of them? If you had to choose o...

Suppressing command-line from Visual Studio (05/08) output

I'm trying to suppress the command-line from the output in Visual Studio - my plan is to add /nologo to the command-line - but I can't find a place in the application settings or in the IDE settings to do this. I'm probably missing something obvious, but would really appreciate any enlightenment. Edit: What is causing me the problem ca...

Change Visual Studio 2008 HTML indentation style

Visual Studio 2008 insists on indenting HTML like this: <h1> title</h1> <h2> subtitle</h2> where for me, this is much nicer: <h1>title</h1> <h2>subtitle</h2> Is there any way to tell Visual Studio 2008 to use the later indentation style when doing auto-formating? ...

How do I Emulate/Debug Windows CE 5.0 applications in C#?

Here's my problem. I'm currently trying to develop a .Net Compact Framework 2.0 application (in C#) to a Windows CE 5.0 device. Firstly: How do I debug/emulate the application in Visual Studio 2008 ? I doesn't mean debugging an application already deployed on the device, but debugging the version on my desktop. I have limited or no acc...

Standard margins between controls and standard control sizes

For example, Windows Forms Designer offers to place my controls on the form the way there are 12 pixels between form border and control border. It seems too much to me. Is it standard value? Also, as I understand standard button height should be 23 pixels. Am I right? Is there any documents that state all this? And can I setup this defau...