Questions tagged [visual-studio-2008]

This tag refers to the Visual Studio line of software development products from Microsoft, the 2008 version. Do not use this tag unless you have a specific question about Visual Studio -- not just a coding issue. Questions should be specific to the 2008 version of Visual Studio.

Microsoft Visual Studio 2008 is an integrated development environment (IDE) from Microsoft. It is used to develop console and graphical user interface applications along with Windows Forms applications, web sites, web applications, and web services in both native code together with managed code for all platforms supported by Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework and Microsoft Silverlight.

Visual Studio does not support any programming language, solution or tool intrinsically, instead allows the plugging of functionality coded as a VSPackage.

More information:

15670 questions
156
votes
9 answers

How to stop Visual Studio from "always" checking out solution files?

For apparently no reason, every time I open my solution, Visual Studio checks the sln file out. If I compare it to the previous version there are no changes. But this is really frustrating since everybody has the solution checked out. I'm using VS…
CodeClimber
  • 4,109
  • 4
  • 32
  • 44
153
votes
24 answers

MSBUILD : error MSB1008: Only one project can be specified

Why am I getting the following Build error? C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe C:\Code\EduBenesysNET\EduBenesysNET\EduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed…
Gerhard Weiss
  • 9,343
  • 18
  • 65
  • 67
153
votes
16 answers

Visual Studio setup problem - 'A problem has been encountered while loading the setup components. Canceling setup.'

I've had a serious issue with my Visual Studio 2008 setup. I receive the ever-so-useful error 'A problem has been encountered while loading the setup components. Canceling setup.' whenever I try to uninstall, reinstall or repair Visual Studio 2008…
ljs
  • 37,275
  • 36
  • 106
  • 124
149
votes
12 answers

How do I enable file editing in Visual Studio's debug mode?

Is there a way to enable file editing while debugging in Visual Studio? I have unchecked the "Require the source file to exactly match the original version" checkbox. It makes no difference. I have to stop debugging to edit files. Very annoying. I…
tom7
  • 4,062
  • 8
  • 30
  • 30
147
votes
15 answers

The project type is not supported by this installation

Whenever I try to open a project (csproj) that's downloaded from the internet, most of the times, I get the "The project type is not supported by this installation" It appears that my Visual Studio installation is not corrupted (I can pretty much…
Nick
  • 7,475
  • 18
  • 77
  • 128
145
votes
16 answers

How to automatically remove trailing whitespace in Visual Studio 2008?

Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this?
ChrisN
  • 16,635
  • 9
  • 57
  • 81
142
votes
34 answers

The Following Module was built either with optimizations enabled or without debug information

I cannot get rid of this in my VS 2008 web project when debugging. I've checked that it's in debug mode on the non-web project in question and it's in Active(Debug). Deleted all items in my .NET 2.0 temp folder in Windows. Not sure what else to…
134
votes
5 answers

What is MyAssembly.XmlSerializers.dll generated for?

I am working on a project which generates an assembly. I just noticed that an additional assembly *.XmlSerializers.dll is being generated. Why this file is auto generated and what it is used for?
Hemant
  • 19,486
  • 24
  • 91
  • 127
134
votes
5 answers

Setting Icon for wpf application (VS 08)

Before going much further i'll mention I have tried solutions in following: How do I set the icon for my application in visual studio 2008? Set application icon from resources in VS 05 I am trying to set an icon for my application. AFAIK, I need…
baron
  • 11,011
  • 20
  • 54
  • 88
133
votes
11 answers

Localization of DisplayNameAttribute

I am looking for a way to localize properties names displayed in a PropertyGrid. The property's name may be "overriden" using the DisplayNameAttribute attribute. Unfortunately attributes can not have non constant expressions. So I can not use…
PowerKiKi
  • 4,539
  • 4
  • 39
  • 47
132
votes
2 answers

In release mode, code behavior is not as expected

The following code generates different results under debug mode and release mode (using Visual Studio 2008): int _tmain(int argc, _TCHAR* argv[]) { for( int i = 0; i < 17; i++ ) { int result = i * 16; if( result > 255 ) …
Lorris Lin
  • 953
  • 2
  • 6
  • 9
129
votes
11 answers

How can I get "Copy to Output Directory" to work with Unit Tests?

When I build a unit test project before the tests are executed the test output is copied to a TestResults folder and then the tests are executed. The issue I'm having is that not all the files in the Debug/bin directory are copied to the…
Eric Schoonover
  • 47,184
  • 49
  • 157
  • 202
128
votes
6 answers

How do I create/edit a Manifest file?

I have this code from a coworker (probably got it from the web somewhere) but he's out on vacation and I need to add this to the manifest file
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
128
votes
6 answers

How do I start a program with arguments when debugging?

I want to debug a program in Visual Studio 2008. The problem is that it exits if it doesn't get arguments. This is from the main method: if (args == null || args.Length != 2 || args[0].ToUpper().Trim() != "RM") { Console.WriteLine("RM must be…
Kasper Hansen
  • 6,307
  • 21
  • 70
  • 106
126
votes
6 answers

How to set standard encoding in Visual Studio

I am searching for a way to setup Visual Studio so it always saves my files in UTF-8. I have only found options to set this project wide. Is there a way to set it Visual Studio wide?
Thomaschaaf
  • 17,847
  • 32
  • 94
  • 128