visual-studio-2010

how to compile an expression blend solution in visual studio

weWithin our development environment we have VS2010 installed on my computer along with Expresison blend and silverlight4 tools. We have a separate build box where we compile and build the entire project. When running through the precompile I am receiving errors that references to the expression blend namespaces cannot be found. I assum...

Visual Studio 2010 SQL Variable Color

I'm trying to configure a zenburn-like syntax highlighting for my Visual Studio 2010 environment and am having trouble customizing the color scheme of the SQL editor. In the SQL text editor, "plain text" including local variables and user-defined table names are something like teal and I want them to be 220, 220, 204 like they are in o...

Unable to view the COM Class Attributes in VS 2010

I am adding a COMVisible(True) class to my project. In Visual Studio 2008, I am able to have the COM class active in the IDE editor and when I look at the properties tab it gives me the ' Attributes' option in the drop down box. However, when I do the same thing in Visual Studio 2010 the drop down box is empty. I have also tried right...

How to create a test for Fluent nHibernate conventions?

I am creating a set of conventions for Fluent nHibernate. I create a few conventions, like primary key, foreign key and many-to-many table. I would like to be able to test out these conventions with an in memory database to see if I coded these conventions correctly. Currently, I am setting up nHibernate using an SQlite in-memory datab...

Using <asp:EntityDataSource>

Hi, I am using EntityDataSource control to display Data in Grid, I want to use the same EntityDataSource to display all data as well as per the search, the problem is I can do only one thing either can use it to search or to get whole data here is my .aspx page <asp:EntityDataSource ID="InvestorsSource" runat="server" ConnectionS...

Change Default "Default.aspx" to "Index.aspx" on Visual Studio 2010

Whenever I create a new Web Form on Visual Studio 2010, the default name is always "Default.aspx". This is a slight pain as I'm having to change it to "Index.aspx" each time. How can I change this so that "Index.aspx" is the default name? Thanks. ...

Issues with RESX files on VS2010 targeting 3.5 framework

Here is a story what I recently ran into and a possible answer(?) I just wanted to share this information because I could not find this yet at stackoverflow. I upgraded my solution from VS2008, WinXP, 32bit TO VS2010, Win7, 64bit. When I make modifications on WinForms that generate new RESX files, or update the RESX files, I'm running ...

Missing resource runtime exception when form tries to load picturebox

Hey guys. I'm trying to put a picture in one of my forms. I dragged a picturebox onto the screen and clicked "Choose Image" and picked my image from the dialog box. When I run it, however, I get a runtime error: An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional...

Visual Studio 2010 uses Application.xaml; Blend 4 uses App.xaml

Previously all application level resources in a project I am authoring were stored in App.xaml. Then i decided to migrate from VS 2008 to 2010 and that is where the trouble started. After migrating, I tried to do a little testing using a testing window instead of the normal startup window. After changing the startup object, suddenly I...

Using GlobalFlags to call vsjitdebugger with VS2010

I've upgraded to Win7 and VS2010. Previously on Win2K and VS2008, I used GlobalFlags to debug an application on startup, simply by setting it's debugger to vsjitdebugger - see the screenshot below. Unfortunately, this doesn't work on my current setup - a google and search of SO haven't turned up any answers. Thanks in advance. UPDATE:...

VS2010 Minimum RAM requirement

I have 512 RAM, would i be able to run VS2010? ...

Saving SQL in Visual Studio 2010

Is there a way to have Visual Studio 2010 save the SQL you've developed in the SQL Editor to the current solution? ...

Expanded/collapsed state not saved after closing file

In Visual Studio, you can expand and collapse code without using regions, for example in a code-behind page you can collapse methods, etc... And in an ASPX page you can collapse tags, tags, etc... It's useful when you have a long page and you want to focus your development on a specific part. What's cool about it too is that you can c...

The type "x" is defined in an assembly that is not referenced. VS 2010 C#

Hi all, I am having a problem I just couldn't solve and would like some input. I am working with multiple class libraries in Visual Studio 2010, .net 4.0 Framework, in C#. I have a class library project which references the assembly output(.dll file) of another Visual Studio solution. The reference was added correctly to the class li...

Can't find whitespace display setting in VS 2010

I am looking for a setting in Visual Studio 2010 (It was in 08 I'm sure it's in 10) Basically it makes it easy to see the indentation/spacing of code because in the white space it buts spaced fullstops (which are obviously a different color) and it makes it really easy to see the indentation of your code. But I can't find the setting n...

How to disallow var keyword under .net 2.0 target?

I created new project in Visual Studio with target framework 2.0. But even if I left somewhere var keyword Visual Studio successfully compiles project. Is this the correct behavior as var is 3.0 feature? Is there any settings to prevent code with var to be compiled? ...

How to resolve CVT1100 in Visual Studio 2010 Ultimate?

Hi, I'm working on a medium-sized project which uses qmake to generate Visual Studio 2005 project files. I'm trying to get it built under Visual Studio 2010 Ultimate. Since qmake doesn't support this IDE yet i had the provided conversion assistant convert my solution. When trying to build I get the following error in one of the subproj...

VS 2010 Database Project deploy sql scripts

Hi, I am working on a sql database project in VS 2010. I know how to synchronize the schema, but what I want is this: 1. I have some data sql scripts that inserts data into some tables. 2. I want to when I click Deploy on the DB project to automatically deploy those data scripts and execute them on the sql server. How to do this? Thank...

Visual Studio 2010 Deployment multiple environments

If i have multiple invironments DEV, UAT, Staging, ETC.. and i need to have different web config settings for each one. What is the better way to go with it? Because by default VS 2010 provided only debug and release configurations/web configs ...

precompiled .libs for boost on 64 bit VC++ 2010

Are there precompiled .libs for boost on 64 bit VC++ 2010? ...