visual-studio

Get all (Properties.Resources) to be stored in a Dictionary

Based on an ID I would like to automatically load an Image into my GUI. To do this I would like to be able to get all images out of the Resources.resx file in Visual Studio 2008 (using C#). I know I'm able to get one at a time if I know what they are: Image myPicture = Properties.Resources.[name of file]; However what I'm looking for ...

How do I get the "Publish Website" command to emit PDB files for my Visual Studio 2005 Web Site project?

I have a VS 2005 Web Site project (not the web application project model, the 'web site' project model) and I want to be able to include the PDB files for the page assemblies in the bin folder via the "Publish Website" command within Visual Studio to help out with debugging an issue. No matter what I try with regard to the "Debug/Releas...

Best way to eliminate all intermediate files from Visual Studio project folders?

I'm one of those people who rather dislike it when random non-source files are dropped by the IDE into my source directory. Especially if these are generated as part of the build. I've found that by overriding both "<IntermediateOutputPath>" and "<BaseIntermediateOutputPath>" I can strip down the mess left behind to just a couple of emp...

Slow solution loading in visual studio 2008

I am working on an asp.net 3.5 project which has 55 projects in a solution. When opening the solution in visual studio 2008 it takes over a minute to open - about 1 second for each project. However, if I disconnect the network cable before opening the solution, it only takes about 15 seconds! Any ideas about what could be causing the ...

Visual Studio or Eclipse - which one is better for Qt on Windows?

Visual Studio or Eclipse - which IDE is better for Qt on Windows? Taking into account Eclipse is free I'm especially interested in Express version of VS but I'm open to non-free versions if this would allow much better integration with Qt. Before posting you might take a look at similar questions on SO to avoid writing what I've already...

Visual Studio integrated custom MSBuild task behaviour

I was looking around the net for a NUnit custom MSBuild task that would run on every build and also nicely play with Visual Studio UI (2008 is my version). I found MSBuild.Community.Tasks project that was great, but failed in Visual Studio integration part. What I actually wanted to have is get failed tests displayed as warnings/errors i...

Stop Visual Studio from Closing Program After Finish

This is probably an easy Visual Studio question, but I couldn't find it on the site. When I "Start Debugging" a console program, it immediately exits when its finished. Is there any way to have it pause when it ends without putting an explicit pause command at the end of your program? ...

How to set breakpoint in deployed ASPX file

I have some ASPX files deployed in test machine which has IIS7 and Visual Studio 2008. Now I attached to the w3wp process with VS2008 and open one ASPX file. The ASP file has some inline code like <% DoSomthing() %> I move the cursor to that line and press F9, but the status bar shows "This is not a valid location for a breakpoint". ...

How will adding DataSources to DatdGrids in my development version of an ASP.NET web application affect deployment?

Hello. I've recently inherited a database driven e-commerce site written in C# ASP.Net, with an MS SQL database. I have had little or no experience with this exact type of application up to this point, although I am comfortable exploring code, and am familiar with SQL query structure and C# (and web mark-up languages too). So far I've be...

What is the shorcut in visual studio to switch from code behind to Xaml Code ?

I'm used to press shift+F7 to switch between my code behind and the designer (which takes between 1 and 5 seconds to load) then I always have to click on View Xaml to modify my XAML code. I don't find any shortcut in Tools/Options/Keyboard to go directly (from code behind to XAML code). How can I do that ? ...

Visual Studio 2008 Help slow to load... How come?

Lately, bringing the help window from Visual Studio is taking a long time. Even updating the help system takes an awful long time. Is there something broken with my installation? ...

Reopen last closed tab in visual studio

Is there anyway to reopen the last closed tab in Visual Studio? Similar to Ctrl+Shift+t in FireFox and Chrome. Thanks ...

How to turn off 'silent' checkouts in VS2008/TFS

I am constantly noticing that I have files checked out for editing that I did not intend to. This cannot be a good thing. Can I have it prompt me? ...

Install VS 2008 Prof.

I have installed VisualStudio Express C# in my box. Now I going to install VS Prof. Not sure if I have to uninstall VS Express first or I can have both running in my box. I think there is difference between two. The express version does not support some sln options such as virtual folder for a group of projects. Therefore, I prefer to k...

warning MSB3391: <DLL> does not contain any types that can be unregistered for COM Interop.

I've made a simple C# DLL (that's part of a much larger project) using VS2005. I need to use the DLL in Excel via VBA code so I am using COM Interop on the assembly. I am trying to make the build process automatically generate the necessary TLB file so that I don't need to go to the command line and use regasm after every build. My pr...

Implement a C# Client that uses WebServices over SSL?

So I've got a ServiceReference added to a C# Console Application which calls a Web Service that is exposed from Oracle. I've got everything setup and it works like peaches when it's not using SSL (http). I'm trying to set it up using SSL now, and I'm running into issues with adding it to the Service References (or even Web References). ...

Visual Studio "Start Debugging" vs. "Attach to Process"

I have a client/server application using the .Net 2.0 Framework. I'm using Visual Studio 2008 to build and manage code. When I run either a Debug or Release version of the application simply by starting the .exe, I get an insert statement on the database that tries to insert a "0" for the foreign key of a table, triggering an error beca...

Help: How to enable Windows Authentication on ASP.NET Development Server?

I hope any of you guys knows how to fix this issue we are having. We are trying to host a WCF service via the web. We set the web.config to have the service require windows authentication. The problem we are having is the following: When we host our service in a regular IIS, the service runs fine and there is no issues with the "Windo...

WPF Stability in VS2008 Express

I'm having trouble with stability in the xaml editor. Restart VS 25 times a day has become tedious. Are there strategies that would minimize the problem or an open source alternative that provides a visual display? Any help would be sincerely appreciated! I don't want to jump out the window but I will... I WILL! ...

Solution Wide Analysis Broken in Resharper 4.5?

I'm having trouble with solution wide analysis since I upgraded to resharper 4.5. I'm continually getting false negatives, and having resharper report errors with my code that are not there. I find the only way to get rid of the errors is to open each of the reported in error files, find the offending types/classes, open those files an...