visual-studio

How can I share Configuration Settings across multiple projects in Visual Studio?

Ok I know this may be a design issue, so I would love to have remarks on that as well. I have a Visual Studio web application solution. I have three projects as UserInterface, BusinessLogic and DataAccess. I had to store some user defined settings and I created configSections in the config file. I access these configSections through ...

Suppress errors of files that are not set to be built from the "Error List" window

I have some cs files in my project that are not set to be built (Properties -> Build Action = None). They contain bits of code that don't compile as a whole and are there merely for reference. I don't care about any compilation errors in them, but they appear in the "Error List" window. The errors don't stop compilation, merely clutter t...

How do I expand ALL collapsed code regions in VS2005

This is very frustrating, if I search for a variable in a vb file in VS2005 it won't find it if the code blocks are collapsed. How is this helpful? So I tried to expand ALL code blocks inside the file, without success. I've tried Ctrl+M but that only expands 1 block, and I've tried Ctrl+M, L but that expands the top class only and not...

Silverlight 4.0 in Visual Studio 2008?

I've been trying to find official requirements for Silverlight 4.0, but can't seem to find anything. What I want to know is if VS2008 supports Silverlight 4.0, or if I need to upgrade to VS2010. The only mention I could find was on this Silverlight forum: http://forums.silverlight.net/forums/p/156538/350841.aspx Does anyone know of an...

Prevent debugging projects that are added as reference in Visual Studio

I have a project that is auto generated. This project is referenced by my web app in visual studio. When i step through the code in debug mode the code from this project gets stepped into. Is there a way I can skip this code in debug mode. I can't use System.Diagnostics.DebuggerStepThroughAttribute since the code will get replaced e...

Automate VisualStudio immediate Window

I'm trying to automate the process of opening crash dumps for managed applications and retrieving the stack trace. Windgb works sometimes, but getting it to load the correct version of sos.dll is a nightmare unless the machine processing the dump is practically identical to the machine where the dump occured. Visual Studio, on the othe...

should I include VB macros in source control with my project?

For a C# project, I make use of several Visual Basic macros in Visual Studio. I was just considering that these would be of use to other developers that work on the C# project. The macros so far include removing trailing whitespace on save, organizing using directives and removing unnecessary ones, and an override for Ctrl-M Ctrl-O tha...

How to add tests from test result to test list in visual studio?

For example, I have 1000 tests. I run them and 200 fail. I want to create a test list for the 200 failed list. What is the fastest way to do it? Thanks guys. ...

Get Visual Studio to produce the same DLL for the same C# source

I noticed that when I build a given C# or VB.NET source to produce a DLL, the binary output is different each time. It would be helpful for our build / deployment process if this was not the case. Can I control this? ...

Visual Studio 2010 HTML Designer Renders Unlike IE8?

My question is: since Visual Studio 2010 was only just released, why does it not render pages in the same way as the latest Microsoft web browser, IE8? Is there a bunch of render options I should be setting? I thought Expression Web was supposed to help with its fancy Super Preview but that app doesn't even open VS solutions. Thanks f...

Visualization of object trees in VS

Hi, I am implementing a SPA tree algorithm and is looking for a Visual Studio plug-in that let me visualize objects and their relationships in debug/runtime. Visualization like: [0]-----[1] | \ / [2] \ / | [4] [3] | \ \ | [6] \[5] Any ideas? ...

How do I stop ReSharper from maintaining classes namespaces to correspond a folder?

If I place a class file into a folder, the folder's name is appended to the namespace, even if I set "Namespace Provider" property of the folder to False. If I then rename the namespace back, ReSharper underlines it suggesting to change it according to the class file location. How do I suppress this behaviour? I use ReSharper 5 and Visua...

How do I change which files by default have build property of content in visual studio.

When adding a PDF, CSV, etc... to a project I have to go to the properties of every file and change the build action to Content. Is there a way to change the list of extensions that are recognized in a project so that this will happen when I include a pdf or csv in my project automatically. Thanks, ...

How to export an application and its SHIM in a MSI package...?

Hi, I have an application(.exe) and its SDB file, and now I want to bundle it into an MSI package for deployment as a installer. How can I create the msi package? Are there any tools? can it be done in Visual studio? ...

Installation of Visual studio..

hai Can we install visual studio in external harddisk? pls clarrfy this.. thanks in advance. ...

object datasource problems in visual studio 2008,

After going to the process of adding the various attributes like insert,delete and update.But when i run it through the browser ,editing works but updating and deleting doesn't !(for the update and shows the same thing for delete,my friends think i need to use codes to repair the problems,can you help me please.it shows this: Server Err...

web.config, configSource, and "The 'xxx' element is not declared" warning.

I have broken down the horribly unwieldy web.config file into individual files for some of the sections (e.g. connectionStrings, authentication, pages etc.) using the configSource attribute. This is working fine, but the individual xml files that hold the section 'snippets' cause warnings in VS. For example, a file named roleManager....

"Build" item in Windows Explorer's context menu of a VS solution file?

I wonder why this is not integrated by default. I'd like to have an item in Windows Explorer's file context menu of a VS solution file to build it. Is there a tool for this? Or do I have to create this myself? ...

IntelliSense has forgotten my code snippets!

Hi all I have a stack of code snippets imported into Visual Studio. Just recently, they have stopped displaying in Intellisense. If the keyboard shortcut doesn't bring up anything else on IntelliSense, then I can tab and the code snippet is inserted just fine. However, if the keyboard shortcut for the snippet happens to also bring up ...

Enable code analysis in Visual Studio 2010 Professional

Hi I can see that we can enable code analysis in Visual Studio Team Systems. But i am using Visual Studio 2010 Professional. Do we have any option to enable code analysis in this version or can we integrate any tools like FxCop and StyleCop with this version for validating the code. I am expecting my code should analysied the momen...