visual-studio

Save all files in Visual Studio project as UTF-8

I wonder if it's possible to save all files in a Visual Studio 2008 project into a specific character encoding. I got a solution with mixed encodings and I want to make them all the same (UTF-8 with signature). I know how to save single files, but how about all files in a project? ...

View multiple files in Visual Studio

I just realised that Office 2007 now shows multiple pages per default. I can finally take advantage of that huge monitor I've bought. Is there a similar feature with Visual Studio? Something like "View -> Two Pages" ...

Issue when using Visual Studio Report Designer with Linq to SQL datasource

I don't expect to get a great response from this, so if you have had experience in this any contribution would be appreciated. I am trying to use the Visual Studio Report Designer with a Linq to SQL datasource, I have no experience of using the Visual Studio Report Designer. If I go through the wizard and use an object datasource I can...

What's a good directory structure for large C#/C++ solutions?

How would you lay out the directory structure for a large C# solution, consisting of perhaps 20 to 30 projects, mostly C# but some C++? Where do you put external dependencies? When creating a branch in source control, do you branch absolutely everything? Do you override the defaults for where built files go? ...

How can I renew my expired ClickOnce Certificate

I need to make some changes to a clickOnce application that I haven't touched for over a year and therefore the certificate has expired. I've read that publishing with a new certificate will make the application fail because it will be signed with a different key. Therefore I think I need to use the same certificate but not sure how ...

How to get cmd line build command for VS solution?

This is probably easy but I am getting stuck: when I build a solution in Visual Studio - how do extract the exact cmd line for the current build command in order to be able to do the same build from VisualStudio console? In the output window I can see the single projects in the solution build commands but not the one for the whole solu...

What is the best practice for "Copy Local" and with project references?

I have a large c# solution file (~100 projects), and I am trying to improve build times. I think that "Copy Local" is wasteful in many cases for us, but I am wondering about best practices. In our .sln, we have application A depending on assembly B which depends on assembly C. In our case, there are dozens of "B" and a handful of "C"....

Visual Studio - Prevent stopping debugging from closing Internet Explorer

Under visual studio if you run a web project by pressing the 'Go' button on the Debugging toolbar, then stop it by pressing the 'Stop' button on the debugging toolbar, Internet Explorer is opened and closed by the IDE. Is there a way to prevent the IDE from closing Internet Explorer when stopping debugging? I want to do this to allow my...

Is there a way in .NET to make your overload of a method appear first in the Intellisense dropdown?

In a form, I added an overload of ShowDialog(). In Visual Studio, this overload shows up in Intellisense as the third version. How can I make my overloaded function appear as #1 (i.e. the default)? ...

Visual Studio variable declaration

I have a project that has the following line in the additional includes section: "$(SOMEPATH_SHORTNAME)\include" Can someone tell me where I can find $(SOMEPATH) defined? I can't find it by simply searching in Visual Studio ...

Code Pointers in VS.Net 2003 are out of whack.

I have a .net 1.1 project in VS.Net 2003 (using C#) in which I can set a breakpoint in one method, and step through code just fine, but when I hit one specific method (which we also wrote), the breakpoints and code pointers go "whacky", for lack of a better term. If the breakpoint is on line 100, the execution pointer stops on line 101....

Visual Studio 2005 Quick find missing Search in solution

If I open a solution then press CTRL + F and select Quick Find, the Look in drop-down doesn't have "Entire solution" as an option (Find in files still has it). Any idea how to fix this? Thanks! ...

Intellisense for AJAX and Javascript libraries in Visual Studio

I know about using a -vsdoc.js file for intellisense, and the one for JQuery is easy to find. What other javascript / AJAX / DHTML libraries have them and where can I find those files? Also, is there a document which outlines the specifications for -vsdoc.js files? ...

Visual Studio: How do I show all classes inherited from a base class?

In Visual Studio, How do I show all classes inherited from a base class? For example, in ASP.NET MVC there are several 'ActionResult' types -- and they all inherit from / implement the base class 'ActionResult'. It looks like unless you just 'know' that 'View' and 'Json' are valid 'ActionResult' types, there is no way you can easil...

Debugging JavaScript errors in Internet Explorer on Vista with UAC enabled

Consider the following trivial HTML page that throws an error: <html><head><script> throw new Error('oops'); alert('should not reach here'); </script></head></html> The user I am logged into Vista with is a member of both the Administrators and Debugger Users groups. If I run Internet Explorer on Vista as an administrator (right ...

How to enable debugging of stored procedures in visual studio?

Ok, this is driving me nuts. I've done just about everything I can to enable step through debugging of stored procedures of a sql server 2005 database. http://arjunachith.blogspot.com/2007/05/debugging-stored-procedures-debug.html http://msdn.microsoft.com/en-us/library/zefbf0t6(vs.71).aspx My currents setup: visual studio 2008 SP1...

How to Prevent Visual Studio launch WcfSvcHost.exe in Debuggin?

I have a solution in Visual Studio 2008 which has multiple projects. One of the projects is a WCF project. Sometimes I just want to debug other projects, but when I press F5, Visual Studio has wcfsvchost.exe launched to host the WCF project even it is not "StartUp Project". Currently, every time I debugging other projects, I Have to Un...

How to get ascms.exe from ascmd.cs -.csproj and -.sln files?

Hello, I have downloaded Samples for MS SQL Server 2005 and I don't know how to get an .exe file from files like ascmd.sln, ascmd.cs, ascmd.csproj. When I'm trying to launch an .sln file in Visual Studio there is an error like "The application for project C:\project_path\project_name is not installed". Do I need a C# compiler or some...

Source Control with Visual Studio: switch from VisualSVN to Ankh?

I am evaluating VisualSVN for me and a small team of developers. I set it up on the server (VisualSVN server) without problems and installed TortoiseSVN and VisualSVN in order to integrate it in Visual Studio 2008. So far, it works well and we use it for the development of our main application. I've heard good things about the new versi...

.NET Settings Relative Path

I am working on an application where I have an images folder relative to my application root. I want to be able to specify this relative path in the Properties -> Settings designer eg. "\Images\". The issue I am running into is in cases where the Environment.CurrentDirectory gets changed via an OpenFileDialog the relative path doesn't re...