visual-studio-2010

Best practice for projects and namespaces in framework solution

We are currently setting up our solution which will mostly contain wrapper-classes to consume some public APIs in the first release. Do you have some advice or best practices we can follow to end up with a scalable and clear solution? The current structure looks something like this: imgur ...

VS2010 How do I supress MSB3245 (The referenced component X does not exist)

I have some project's with various compile switches, so depending on how they are built do not need a referenced dll , so I get a warning that it does not exist. I would like to suppress this warning so we are warning free. How do I do this on the project on VS2010, what number to I put in the suppress warning box on the prject page ? ...

change Visual Studio project root ?

My project has all the visual studio solutions and projects stored in ./win/vc100, sources in ./src/ and libraries in ./lib/ Now if I want to add additional libraries to include I need to specify the path as ../../lib/library_name Is there any way to set the root to be at . rather than ./win/vc100 ? ...

Add a assembly to GAC and Add reference dialog in visual studio 2010

HY, Know someone how can i add a assembly to GAC and Add reference dialog automatically in same time. I have a setup project which i set him to add the assembly automatically to GAC, but i can`t add that in add reference dialog from visual studio 2010. I search on the internet but i didn't found how to do it. The idea is that i have a ...

Visual Studio 2010 runs installer when I debug

Hi, I've been using a solution since VS2010 was released. My solution has a number of projects in it. Until a couple of weeks ago, all was fine. All of a sudden, whenever I click the button to start debugging my code, the Visual Studio 2010 installer starts. It takes around 5 minutes for it to complete and then I am able to debug as no...

Visual Studio Refactor for vb.net

Hi. why visual Studio Does not have Refactor tool for vb.net by default ? but it has this tool for c#. for example extract method and etc. thanks all. ...

Using VS2010 Image Library when image contains more than one icon

Hi all, I'd like to create a button containing an image (remove) from the VS2010 Image Library in WPF (...\_Common Elements\Actions\remove.png). This image actually contains four versions of the icon in different sizes. How do I go about using the first one of these? Thanks, Chris ...

Error setting up S#arp Architecture 1.6 project from the Visual Studio 2010 project template in a 64bit O/S.

I'm trying to get a brand new Sharp Architecture 1.6 project set up. My environment is Windows 7 64bit, running Visual Studio 2010. I have followed the instructions provided in the VS2010_ReadMe.txt. In VS2010 I do File | New | Project, select S#arp Architecture Application, give it a name and hit 'OK'. And I receive the following er...

Auto select file in solution explorer from its open tab in visual studio 2010

Normally, many files in VS2010 are opened in many tabs, while massive working on project. Many times I find myself right-clicking on tab-title and searching for "Show/Select/Scroll-to this file in solution explorer" and I can't find it. Is there way to finding, automatically-by-demand, opened file in the solution explorer? ...

Alternative to _input in VS2010?

Hey all, I recently ported a project from Visual Studio .NET 2003 to Visual Studio 2010. The problem here is that my code uses the built-in VC++7.1 _input. _input is used in a function which simulates the functionality of GNU glibc's vsscanf(). I realize that VS2010 provides _input_l as a replacement, however this function crashes con...

Does to install both Visual C# 2010 Express, and Visual C++ 2010 Express create problems?

Are there any problems if I install two different IDEs of the Express family? ...

Can't get values from App.config file (framework 4.0)

Hello, i have a config file like this: ?xml version="1.0" encoding="utf-8" ? configuration appSettings add key="PortName" value="COM4" add key="BaudRate" value="9600" add key="DataBits" value="8" appSettings configuration ... and then i want to access app.config values with this code: using System; using Syst...

Creating extra type definitions at compile time

Recently I've been working with MSTest, and I noticed that the testframework generates accessor classes dynamically at compile time. How can one do this? There's an xml file in a VS2010 C# project. I'd like to make an enum out of certain data in this xml file. Can this be done? And if so, how? ...

WPF, 'Object reference not set to an instance of an object' in Designer

I'm getting an "Object reference not set to an instance of an object" error when I try to reload the Designer for my XAML UserControl. Visual Studio highlights the following line as being the problem: <local:TemplateDetail Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Width="600" TemplateData="{Binding ElementName=cbo_templates,...

VS 2010 DB Test - Multiple Test Conditions Per Test

I have a UDF that accepts two dates and minute interval, does some date math, then spits out the difference between date1 + interval and date2, honoring business hours. I just found out about VS DB project type and am writing some unit tests. As far as I can tell, I can only set up one context per test, even though multiple Test Condit...

VS 2010 Database Project bug?

Hi. I am having a very weird problem with building a SQL Server 2008 Database Project from within Visual Studio 2010. I created the database project and then imported the database objects and settings from a local database that I am working with. I then went to build the database project and got the following error: SQL03006: View: [db...

Visual Studio 2010 - Datagridview

Hi guys, Is it possible to bind a particular column in datagridview to another datasource, while all other columns are bound to same datasource as the gridview? ...

Do Crystal Reports or Reporting Services support themes in Visual Studio 2010?

Do Crystal Reports or Reporting Services support themes in Visual Studio 2010? So that different reports share common attributes, the same way css works for web pages? I know they didn't in earlier versions and wondered if they added this support. While at it, any .NET reporting tools which support themes? ...

What does "Register for COM Interop" actually do?

What exactly does the VS project option "Register for COM interop" actually do? Because when I build my library with this option enabled I can call CreateObject on my library from VBScript. But if I build without this and then run regasm manually CreateObject fails. So I'm wondering -- what does VS2010 do that I'm not doing? ...

Where should a Visual Studio Add-in store its settings?

Currently I'm storing the settings for my custom addins in the registry but this seems like a kludge. I was wondering if there was an official place to store add-in settings. My preference would be to store them where Visual studio stores settings so they can be exported and imported easily. Is it possible to store add-in settings with...