visual-studio-2010

Debugger runs only once per IDE startup.

Hi there, I have been using MS VS2010 debugger for quite some time now and didn't came across any problems untill today. As a tester I start my debugger in testing mode (single test debugging) right after loading the project and it starts a whole batch of tests written. Despite starting all the tests the debugger itself works properly...

Opening existing project in Visual Studio 2010

All, I have a project that was originally written in vs 2005 or earlier (don't remember bc I didn't write it). I opened it in vs2008 and converted it although it still has the csproj file. sln file states: Microsoft Visual Studio Solution File, Format Version 10.00 Visual Studio 2008 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"...

c#: Conditional DEBUG - Does it still compile into RELEASE code?

I know that if I mark code as DEBUG code it won't run in RELEASE mode, but does it still get compiled into an assembly? I just wanna make sure my assembly isn't bloated by extra methods. [Conditional(DEBUG)] private void DoSomeLocalDebugging() { //debugging } ...

Visual Studio 2010 IDE question

When I double click an item in the find window, the C/CPP file opens in a tab next to the find window. I want it open in the main window (center) along with the other c/cpp files. Is there a setting to get this behaviour ? Thanks ...

Is it possible to debug a ASP.NET Web Application that's not started from within Visual Studio?

The default ASP.NET web server that launches from within Visual Studio (Casini) is a little buggy on my development machine, so I like to publish to a local IIS instance on my dev machine and look at the web application there. However, I'm not automatically in "Debug Mode" when I launch the application this way. I know that VS 2010 has...

VS 2010 Database Project - Different Connections

I have an application that I'm developing in Visual Studio 2010 that utilizes a SQL Server database. As such, I am using a VS SQL Server 2008 Database Project. The database project requires a target connection for which is used to build the database. Problem: This project is under source control for a team of developers and a build s...

Export Webpart from Sharepoint 2010?

Is there a way for one to export or save a webpart created in Visual Studio 2010 in such a way that it can be imported via the browser to a Sharepoint 2010 site? I am working on a development server and would like to migrate one of the webparts that I deployed there onto an active Sharepoint site. ...

visual studio 2010 intellisense won't auto-pop after period

I can't get VS2010 to auto-pop after i type a period. I'm programming in C#, and i've tried playing with the settings under Tools > TextEditor > C# > Intellisense, with no luck. I've also tried 100 different ways to google it with no luck. ...

Click an HTML link inside a WebBrowser Control

C# Visual Studio 2010 I am loading a complex html page into a webbrowser control. But, I don't have the ability to modify the webpage. I want to click a link on the page automatically from the windows form. But, the ID appears to be randomly generated each time the page is loaded (so I believe referencing the ID will not work). Thi...

How to automatically add argument names to a method call in C# and Visual Studio?

I like the named arguments feature of C# 4.0, I noticed that in some circumstances it greatly improves the readability of my code. Is there a refactoring extension to VS, which would convert a normal method call to a call with explicit argument names? Like this: Before: cmd.Parameters.AddWithValue("Foo", "Bar"); After: cmd.Parameter...

Visual C# - Program Will Not Run

I made a program with Visual Studio 2010. It required .NET Framework 4.0 to run, and the machine it needs to run on is not connected to the internet, so I found the redistributable online on my own machine and copied it over. I installed the software on the machine (it's a very simple program, I just made up an installer to do the .NET ...

Unable to step into stored procedure inside stored procedure - SQL debugging using VS2010 and SQL Server

I'm checking out the SQL Debugger using Visual Studio 2010 (connecting to a SQL 2005 Enterprise Server), and I can successfully debug a stored procedure by going to Server Explorer -> Right clicking on the procedure -> "Step Into Stored Procedure". However, once I'm in, I can't step into or set any breakpoints inside any subsequent func...

Publishing RDLC files

I have a few RDLC files in my WPF application. When I publish the project, the report files don't get published, and when I try to access them with the client I get an error saying that they're not found. I've checked the publish folder, and indeed, they're not there. I call the RDLC files with the following code: Microsoft.Reporting.Wi...

Can I set on which monitor will application run through the Visual Studio appear ?

Hello, I am using multiple monitors and I prefer to have my Visual Studio open in the center one and I would like the application that I am testing / running through Visual Studio open on either left or right side, rather than on top of my code. Do you think there is a way of doing that, that is automatic ? Can this be set somewhere in...

Unicode string display in XNA

In the game I'm making, I'd like to be able to display and have the user input Unicode characters. However, I'm having problems with using SpriteFonts to handle this task. Including all of the Unicode characters uses up WAY too many resources (it even causes VS2010 to crash!), so that's out of the question. But I'm not sure what other op...

Code to be executed only when application is run outside of visual studio ?

I have a WPF windows application that makes a call to a DLL for registration. I need this code to be called only when the application is run outside of visual studio. In other words, when clicking run from within the visual studio, I dont want this code executed but want it executed if EXE is called outside of visual studio. Is there a ...

Loading Circle in Visual C# 2010?

Instead of a regular progress bar, how can I make a circle with spokes that rotate telling the user that that my program is loading? EDIT: I want it in Windows Forms Ok thanks Tim, your solution works. I had to set the image by code since importing it in the designer froze it up. ...

Automatically rebuild referenced Class Libraries (DLLs) in VS2010?

I have an executable project A, which references to a Class Library project B. However, when I build A, it does not automatically rebuild B. The only way to get B rebuilt and used by A is to rebuild B then build A. Is there a way I can get B to be rebuilt automatically and then used by A when I build A? ...

Web deployment: Exlude directories depending on Project Configuration name

I want to delete some image resources depending on what build I'm releasing using MsDeploy. I have three builds for different clients which are basicly another theme and a lot of configuration transforms to setup their environments correctly. I don´t want to include the image resources for client1 when deploying to client2. Been using ...

Copy all user settings to another user

Recently I've been getting a very strange error from visual studio 2010, which has been stopping me from building/running or building/debugging projects at all. I do not know why. It is quite obscure, and a search on google revealed 5 results, of which only 2 were english and relevant. However it seems to work fine for other users (win...