visual-studio

How do I adjust the default references for a new project?

Maybe I'm not searching correctly, but I can't find out how to configure the default set of references for a new project. I don't use System.Data and System.Xml for EVERY project. It seems like something I should be able to configure. Thanks in advance. ...

Visual Studio does not break with exception assistant, but just stops the process

Usually, Visual Studio breaks if it encounters an unhandled exception and shows an exception assistant window. But in some occasions, Visual Studio instead just stops the program that was running and does not break or show the exception helper. The exception options (Ctrl+Alt+E) are configured correctly: "user-unhandled" is checked o...

File corrupted?

Hi All, I have a form, MainForm, which was working just fine and dandy until earlier this morning. I made some code modifications to a different form and when I went to run the application, I received an error in MainForm (error is irrelevant). I went into MainForm to see what the problem was and was horrified at what I saw... ALL MY ...

Silly Visual Studio Pending Changes Question

I recently switched from a Java based project to a C#/.net project. I previously used IntelliJ which had the concept of change lists where you could group your pending changes together and check each group in individually. I have two problems with the pending changes window in visual studio. 1) Every time I check anything in, visual ...

Visual Studio 2008 won't let me change a web reference

I have a web reference in my solution, and I want to change it to point to a new URL (for testing). Some of the time (~75%) when I paste in the new URL in the properties window, I get an immediate popup: "Property value is not valid" and the details say "Exception from HRESULT: 0x80CB7EC8". The new URL is valid (I'm pasting it). If I ...

redirect console to visual studio debug output window in app.config

I want to get my Console.WriteLine() commands to appear in my "Output" window with my Debug.WriteLine() statements. I think I figured out how to do this once but I can't remember / find on google how to do it again. I seem to remember being able to do this in the app.config I find plenty of instructions on how to bet console and debug ...

"LNK1104: cannot open file 'X'": How to find out who wants X linked in?

Okay, I'm stumped. I'm fiddling with some project settings, trying to start linking against library Y instead of library X. When I search through the project file (.vcproj) and all the inherited property sheets (.vsprops), there are no references left to library X. I've closed and reopened Visual Studio to make sure it's not holding ont...

Sharepoint/WSS/VS.NET Development Environment

I'm a WSS newbie developer with some ASP.NET dev experience, and am looking to start learning some Sharepoint Web Part development. All the tutorials, VS.NET add-ons and SDK's i've discovered so far require VS.NET 2005/2008 to be running on the same physical box as the WSS 3.0 or MOSS 2007 server install (hence Windows Server 2003 or 20...

Eclipse Style Navigation In VS.Net 2008 IDE

Hi, I'm a Java developer starting with .Net development using VS.Net 2008. I would love to get the Eclipse style of navigating methods etc by pressing the Ctrl key, hover over a method then click it to got to that method's declaration. Does such a plugin exist for VS.Net 2008? thanks ...

Visual Studio Black Background?

I watch a lot of tutorials on the web, expesially ASP.NET tutorials - And constantly notice that everyone seems to have VS set with a black background and yellow/white text? Why is this? and how can I set up my version to look like it? Thanks ...

Team Foundation Server file check-in problem

I'm storing SQL database backup file (*.bak) in the Visual Studio solution and checking it to TFS. However when I update this bacup file locally (backing up new database structure) it's not marked as "changed" in the solution explorer and not uploaded to TFS. How can I solve this problem and force VS to automatically check-in changed fi...

what is the config option devenv command switch meant for

Can somebody provide an example to build a C++ VS solution from command line ...

How does the .net framework nest forms in classes. (vb.net).

If I look at some classes in the framework, using reflector, I can see that forms and user controls are made private and nested into a parent class. For instance, I have a control which makes use of pop-up form that is specific to that control. At the moment, I make the pop-up form friend accessible. If I wanted to do it the framework w...

XSD Validation for Visual Studio Intellisense

Hi guys I have a simple XML file with this structure ... ... <Fields> <Field name="MainJob.Id" value="t066_id"> <Description nullable="false" type="System.Int32" /> </Field> What I have actually is this XSD file description: <xs:element minOccurs="0" maxOccurs="unbounded" name="Fields"> <xs:complex...

Problem with solution and project with same name.

I have restored a solution from my previous, trashed Vista laptop to my newly installed XP laptop, both VS 2008 SP1. In a folder called Rhino, I have a solution called Rhino.sln, and a web site in a folder called Rhino. When I open the solution, VS only opens the project. Note that when I copied the root Rhino folder to my new machi...

c++ debugging in vis studio 2008, how to break when a variable becomes zero

I can detect when a variable changes, but it changes so often that its no use - what I want is to detect the moment that a variable becomes zero. Thanks, ...

Is there a way to determine which version of Visual Studio was used to compile a static library?

I have a collection of static libraries (.lib) files one of which may have been built with a different version of Visual Studio. This is causing the code generation of a project that links against all of them to fail. Is there any way to determine which version of Visual Studio was used to compile a static library? ...

Why does Visual Studio say "Code Coverage is not enabled for this test run" when it's enabled?

In Visual Studio, I just created a simple Unit Test to test a method I wrote. I wanted to check the code coverage, but the Code Coverage window only ever states that "Code Coverage is not enabled for this test run". Why? Note: I've already followed the instructions on this page, i.e. the test configuration does have the relevant assemb...

ASP.NET website looks different when deployed

When I run the site using the normal debug feature of Visual Studio, a lot of images go broken and formatting seems messed up. However, when I deploy the site, it all seems fine. What could be the reason? As long as it looks good deployed, is it safe to ignore the formatting issues that come up with using undeployed websites? Note: ...

Write gridview to excel page

I'm getting the following error Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. I want to put the grid in excel on...