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
942
votes
109 answers

Metadata file '.dll' could not be found

I am working on a WPF, C# 3.0 project, and I get this error: Error 1 Metadata file 'WORK=- \Tools\VersionManagementSystem\BusinessLogicLayer\bin\Debug \BusinessLogicLayer.dll' could not be found C:\-=WORK=-…
Oliver
  • 35,233
  • 12
  • 66
  • 78
598
votes
28 answers

Go to Matching Brace in Visual Studio?

Is there a way in Visual Studio 2008 to go from a closing brace to its opening brace? I've found a fair amount of stuff about highlighting the brace, but nothing about moving the cursor to it. (VB.NET version of this Question: Keyboard shortcut for…
thepocketwade
  • 6,436
  • 5
  • 22
  • 25
575
votes
8 answers

What does the Visual Studio "Any CPU" target mean?

I have some confusion related to the .NET platform build options in Visual Studio 2008. What is the "Any CPU" compilation target, and what sort of files does it generate? I examined the output executable of this "Any CPU" build and found that they…
galets
  • 17,802
  • 19
  • 72
  • 101
517
votes
19 answers

The name 'ConfigurationManager' does not exist in the current context

I am trying to access connectionStrings from the config file. The code is ASP.NET + C#. I have added System.Configuration to reference and also mentioned with using. But still it wouldn't accept the assembly. I am using VSTS 2008. Any idea what…
pencilslate
  • 12,958
  • 18
  • 58
  • 73
503
votes
32 answers

Visual Studio : short cut Key : Duplicate Line

Is there a shortcut for Duplicate Line command in Visual Studio 2008? Some similar examples: in Notepad++, I can duplicate the current line with: Ctrl+D in EditPlus: Ctrl+J in NetBeans: Ctrl+Shift+↓/↑ in Eclipse, Ctrl+Alt+↓/↑ in Vi/Vim, yyp etc.
Posto
  • 7,362
  • 7
  • 44
  • 61
439
votes
30 answers

I want to delete all bin and obj folders to force all projects to rebuild everything

I work with multiple projects, and I want to recursively delete all folders with the name 'bin' or 'obj' that way I am sure that all projects will rebuild everything (sometimes it's the only way to force Visual Studio to forget all about previous…
MichaelD
  • 8,377
  • 10
  • 42
  • 47
429
votes
49 answers

How do you force Visual Studio to regenerate the .designer files for aspx/ascx files?

Sometimes when I'm editing page or control the .designer files stop being updated with the new controls I'm putting on the page. I'm not sure what's causing this to happen, but I'm wondering if there's any way of forcing Visual Studio to regenerate…
Glenn Slaven
  • 33,720
  • 26
  • 113
  • 165
369
votes
13 answers

How can I disable ReSharper in Visual Studio and enable it again?

I installed ReSharper, and it works in Visual Studio, but how can I disable it? Whenever I search in the ReSharper menu, I can't find a disable option.
ali62b
  • 5,363
  • 4
  • 22
  • 25
323
votes
7 answers

Difference between Rebuild and Clean + Build in Visual Studio

What is the difference between just a Rebuild and doing a Clean + Build in Visual Studio 2008? Is Clean + Build different then doing Clean + Rebuild?
Jim McKeeth
  • 38,225
  • 23
  • 120
  • 194
265
votes
7 answers

Visual Studio Post Build Event - Copy to Relative Directory Location

On a successful build, I wish to copy the contents of the output directory to a different location under the same "base" folder. This parent folder is a relative part and can vary based on Source Control settings. I have listed a few of the Macro…
Preets
  • 6,792
  • 12
  • 37
  • 38
256
votes
18 answers

NUnit vs. Visual Studio 2008's test projects for unit testing

I am going to be starting up a new project at work and want to get into unit testing. We will be using Visual Studio 2008, C#, and the ASP.NET MVC stuff. I am looking at using either NUnit or the built-in test projects that Visual Studio 2008 has,…
Ryan Skarin
  • 3,087
  • 3
  • 21
  • 18
234
votes
4 answers

Selectively suppress custom Obsolete warnings

I'm using the Obsolete attribute (as just suggested by fellow programmers) to show a warning if a certain method is used. Is there a way to suppress the warning similar to CodeAnalysis' SuppressMessage at points where the use is justified? This…
Alex
  • 75,813
  • 86
  • 255
  • 348
226
votes
17 answers

Visual Studio move project to a different folder

How do I move a project to a different folder in Visual Studio? I am used to this structure in my projects. -- app ---- Project.Something ---- Project.SomethingElse I want to rename the whole namespace SomethingElse to SomethingNew, what's the best…
Egor Pavlikhin
  • 17,503
  • 16
  • 61
  • 99
209
votes
13 answers

Visual Studio Copy Project

I would like to make a copy of my project. I would rather not start doing it from scratch by adding files and references, etc. Please note that I don't mean copy for deployment. Just plain copy. Is there a tool in VS to do this? I am using VS 2008
sarsnake
  • 26,667
  • 58
  • 180
  • 286
202
votes
5 answers

How to set session timeout in web.config

I have tried very hard but cannot find a solution on how to set session timeout value for in-process session for an ASP.Net web application. I am using VSTS 2008 + .Net 3.5 + C#. Here is what I wrote by myself to set timeout to be 1 minute, is it…
George2
  • 44,761
  • 110
  • 317
  • 455
1
2 3
99 100