visual-studio

Features of Visual Studio 2005 that is not in Visual Studio 2008

Currently I have both Visual Studio 2005 and 2008 on my machine. If I uninstall Visual Studio 2005, would I be missing something? If there is, what are they? Let's assume that I did a complete (not default) installation for both releases. Thanks in advance for your time and expertise. ...

How to setup different Resources for different compile macros in Visual Studio?

I have a String resource that needs to have different value based on the conditional compile. How to setup different Resources for different compile macros in Visual Studio 2008 Professional? ...

LINQ to SQL datacontext update after changing SQL Server name

In a WPF application I use LINQ to SQL, SQL Server 2008. SQL Server computer was replaced and SQL Server was installed under instance name not the same as before. Database was restored under the same name as before. The new connection string was added to the application. But it appeared that it is impossible for the application to con...

Post build copy config file to another project

I have a solution which contains a website and various class libraries. The exists on the file system like so: C:\Projects \MyWebsite\dev\MyWebsite.sln C:\Projects\Core\MyClassLibrary1.csproj C:\Projects\Core\MyClassLibrary2.csproj I want to move the App.config file from MyClassLibrary1 project to the bin of the MyClassLibrary2. I...

Help for writing a click event for a custom map

I have an image of the political map of the USA. I want to write separate click events for each of the 50 states in Visual Studio. How would I do that? ...

How to force a C# root namespace throughout project files for when none is coded?

I want to force a root namespace on the contents of any .cs source files that don't have their contents wrapped in an explicit namespace. In other words I want to keep classes and other namespace-level structures out of the default namespace. (Working inside a Windows .NET environment with Visual Studio) In the following example, I want...

How to make an object belong to a namespace (VS 2008)?

Hello, I have a name space Company.Controls, which contains several controls. I also have a class called "Common" which contains enums/structures/static methods that I use throughout the controls. Is there a way to make these "Common" peices belong to the Company.Controls namespace this way I don't have to keep typing "Common.Structu...

How can I install WTL 8.0 Project Wizards in VS 2010?

I've downloaded the WTL 8.0 package and come to find the scripts to install App Wizards don't support VS 2010. Does anyone know of updates scripts to support installation in VS 2010? Thank you! ...

Could not load file or assembly

When I am trying to debug in visual studio 2008, im getting the following error. I have cleaned the asp.net temp folder and restarted VS. I also removed the supposedly breaking reference and added it back. But nothing seems to working. Has anyone faced similar situations and is there a solution. Could not load file or assembly '"GCS.C...

Is there a way to tell from code whether the application was developed in Visual Studio 2008 Express or Standard or Pro?

Hello, Is there a way to tell if the project was done in Visual Studio 2008 Express Edition or higher (pay) versions were used? Like if you were handed over a project and they ask you what version of Visual Studio was it created with (except the obvious 2005/2008/2010 difference). With regards, MadBoy ...

Compiling Visual Studio 2008 Project with Mono

Possible Duplicate: How can i build a visual studio solution using xbuild (from Mono)? How to compile a visual studio project/solution with Mono ? If this is possible, Will the output run without installing .NET Framework ? ...

Silverlight Storing Reference Data

I have a text file with a list of 300,000 words and the frequency with wich they occur. Each line is in the format Word:FequencyOfOccurence. I want this information to be accessible from within the C# code. I can't hard code the list since it is too long, and I'm not sure how to go about accessing it from a file on the server. Ideall...

Can I run VS 2008 and VS 2010 on the same computer?

I want to install VS 2010 RC but do not want to get rid of VS 2008 until the 2010 final release. ...

What is the difference between a MonoDevelop solution file and a Visual Studio Solution file?

MonoDevelop allows you to save your solution in either MonoDevelop format or Visual Studio format. What is the difference between these two formats? Are they different ways or storing the same thing? If not, what does one store that the other does not? ...

How to automatically publish a website on build in Visual Studio 2008?

I want to be able to automatically publish to a local folder each time a web asp.net mvc 2 project is built. I use Visual Studio 2008. ...

What COFF (windows .obj object file) viewers are available?

I am only aware of 2: dumpbin which is included with Visual Studio PEView from http://www.magma.ca/~wjr/. ...

How to specify if a T4 file should produce any output

I am using T4 for generation of some DTO classes + mappers. I am splitting the files in a number of re-usable bits (some of which containing common methods, some others common procedures) and including them into the T4 templates that will produce my output - which is all good. My problem is that the re-usable .tt files will try and pro...

.Net-like Intelisense for VC++?

Up until now in VC++, when I want to see everything I do :: . This shows all of my objects. Is there a way to make it like c# so it checks as you type without needing :: . Thanks ...

Visual Studio Web Deployment project auto compress js and css

Is there a way to make the web deployment project automatically compress js and css files when building it? how can I automate this process? ...

InvalidCastException on Result of Indexing Into an ArrayList

I have an ArrayList filled with a bunch of Points and I want to loop over them, so I use this code: for (int i = 0; i < currentClicks.Count; i++) { if (i > 0) // Skip the first click { clickPos = currentClicks[i]; prevPos = currentClicks[i - 1]; } } and I get this error on the clickPos and prevPos lines: C...