visual-studio

How do I make Visual Studio automatically go to the first error in a build?

This is done manually by going to the "Error List" output window and double-clicking on the first error or pressing F8. Is there a way to automate this? (I'm using C++ if that matters.) ...

To Plot a x-y graph in c# in Visual Studio 2008?

Using two parameters to plot a line graph in C# using Visual Studio ( Using GUI). ...

Force File Reload Before Build

We have a tool that generates some code (.cs) files that are used to build the project. EDIT: These files are the other half of some partial classes, so the build process requires access to the source. It's not possible to compile it into a DLL, for example, and then set the build order. The tool is run during the pre-build step, but ...

How to pass solution folder as parameter in command line arguments (for debug) ?

In Visual Studio Debug part, we can pass arguments. I want to know how to pass the solution folder as an argument, but without putting the directory hardcoded. I will use the project in different locations and I don't want to change those arguments all the time. Thamks in advance! ...

Treeview - Link Button Post Back Problem

Hi there I' m working on a web application. That has a master page and two pages. These pages under the that master page. I am trying navigate that pages with a TreeView which on the master page. When i click to treeview node i can go to page which i want but there is no postback. But if i use linkbutton postback event happen. I use a b...

Microsoft.Web.Administration on Windows XP

Is it possobile to use / reference Microsoft.Web.Administration in Visual Studio on Windows XP ? I know, that is not possible to install IIS 7 on XP, but I (must) use Windows XP as a development machine. ...

VS 2008 Compiler option for flagging uninitialized variables.

Is there a compiler option in VS 2008 (C++) to expose uninitialized variables? I'm trying to debug a problem where the "release" build of a DLL does not work but the "debug" build of the DLL does work. ...

Change default font of controls in winforms

Hi, Is there any way to change default font of controls in winforms. I must change font in about hundred font in recent project and it's coming next project with other fonts and I wanna at start setting properly fonts. ...

EntityException: Access to the database file is not allowed

I am working on a Visual Sudio 2010 Setup Project to install an Entity Framework / SQL Compact app. The app needs to install an SDF file on the user's machine. As I understand the Microsoft guidance, I should install the SDF file to a company\application subfolder under C:\ProgramsData on the user's machine, which I have done in the setu...

How to get StackFrame at compile time from PDB?

Hello, I need to get stack frame of function from any pdb (All in/out arguments and their types). I got function name and address of certain function from pdb, now I need to know all parameters(in/out) of that function from pdb file programmatically. Is there any way..?? Edit: the functions in question are written in unmanaged code. R...

Visual Studio incorrectly smart indents the opening brace

When I type the closing brace in an html page, this i what Visual Studio does. Notice the opening brace is now 1 indent before the foreach. They should be even as shown by the closing brace. Not a big thing but driving me nuts. <% foreach (var item in Model.Messages) { %> <% } %> ...

.odx Files in BizTalk 2009 (VS2008 IDE) Fail to open. "Unspecified Error"

Okay, I'm not sure if this is an SO question, or a ServerFault question, but I figured I'd post here first. I have a BizTalk project which works like a champ for its original design. It's been deployed and it's working fine. Today, I went in to add some new fuctionality by modifying one of my orchestrations. When I attempted to open ...

Working with .NET Project Files and Schemas?

I'm working on a project that will require me to take various .vbproj and .csproj files and determine which version of Visual Studio they were built with and then to get information such as the output dll name etc. Does anyone know if there is a schema available for these files? Google and MSDN searches are coming up a bit blank. Visu...

How to compile x64 code with Visual Studio in command line?

I want to compile a simple hello-world-style program using the Windows command line. cl file_name.c is easy enough. Now I want to do the same thing in 64 Bit. What should I do? ...

Calling VS 2008 refactoring methods through command line?

Hello all, I want to create a simple batch file that would perform some Visual Studio 2008 refactoring tasks on some files. For example, I would like to call the Refactor.ExtractInferface command on a given file. Can I do this from the command line? Is there a better way (I am sure there is) of doing this? Thanks, H. ...

Is Visual Studio 2010 RC ever going to expire?

Is Visual Studio 2010 RC ever going to expire? Sorry if this isn't the correct place to ask but it doesn't look like it. ...

How to view Session Variables in Visual Studio 2008 Debugger?

Usually using Visual Studio's debugger is a breeze. Scanning through Locals quickly shows the values of variables, etc. However, I'm at a loss how to find out the values contained in session state variables? Can anyone give me a hand? Lets say I put a breakpoint right after: Session("first_name") = "Rob Roy" How do I view the value con...

Any way to add my C# project as a reference in IronPython / IronRuby?

I know how to reference an existing .dll to IronPython, but is there any way to add my project as a reference like I can between Visual Studio projects? Or is it best practice to create a separate class library? ...

How to capture full screen in c using visual studio

Is it possible to capture full screen in visual studio (VC++), so that user don't have to press ATL+Enter. Kindly guide me how I can make it possible. ...

Internet zone is opened when broswer is opened from installer created by .Net 3.5sp1

Hi All, I have project created in VS2005 and .Net 2.0. The installation is a web-based installation. After installing the proe-requisites the installer opens up the browser to continue with web-based install. On this, it opens up in intranet zone and works perfectly. I recently migrated the project to VS2008 Sp1 and .Net 3.5sp1. No cha...