visual-studio-2010

vs2010 Custom MarkupExtension

Hi, We have just switched to vs2010 from vs2008, and our projects compile and run well without any problem. However, the xaml designer has some errors. Here is one of the errors hope someone can provide a solution. We have a custom MarkupExtension, and we use it in xaml to get certain resources. Something like this: <Button Style="{l:...

Debug .Net Framework's source code only shows disassembly in Visual Studio 2010

Hi! I'm trying to debug .Net Framework's source code using Visual Studio 2010 Professional. I followed the steps described in Raj Kaimal's post but I must be doing something wrong since the only code I'm getting to see is the disassembly code: As you can see in the image, the Go to Source Code and the Load Symbols options are disable...

View the xaml of a Windows Workflow file in Visual Studio

I have a file (just a file. It is not in a solution) that is a Windows Work Flow file. When I open it I get the GUI interface for WF. How can I show the xaml under it? (With out making a solution and adding my file to the solution.) ...

Migrating ASP.NET (MVC 2) on .NET 3.5 over to .NET 4 #gotchas

I've currently got a ASP.NET MVC 2 application on .NET 3.5 and I want to migrate it over to the new .NET 4.0 with Visual Studio 2010. Reason being that it's always good to stay on top of these things - plus I really like the new automatic encoding with <%: %> and clean web.config :-) So, does anyone have any experience they could share...

Can I use pdb files to step through a 3rd party assembly?

Hi folks, my friend has made a really helpful class library which I use all the time. I usually use Reflector to see what his code does. What I really wanted to do was to step through his code while I'm debugging. So he gave me his .pdb file. Foo.dll (release configuration, compile) Foo.pdb Now, I'm not sure how I can get it to aut...

Release build in MVS 2010 professional v/s express for C

Hi, recently I discovered that "executing" a C program as a release build instead of a debug build optimizes the code and makes it run much faster. This is accessed through project properties > configuration manager menu. I would like to know if this feature is the same in the professional version and in the express edition of MVS 2010 i...

VS2010, MSDeploy and declaration of parameters

Hi I'm trying to deploy an ASP.NET MVC 2 app using MSDeploy. I use VS2010 to generate the package as a ZIP. Inside that ZIP is a parameters.xml file that declares the parameters that I can set. I want to be able to set more parameters, using the auto-generated deploy.cmd file like this: MySite.deploy.cmd "-setParam:name='IIS Web Appli...

in Entity Framework how do I configure a new association in the Mapping Details pane?

Hi, in Entity Framework in VS2010 (in a C# project) how do I configure a new association in the Mapping Details pane? I don't quite get the Mapping Panel, in particular when you click on one of the Navigation Properties in a table. Once I've added the association between two tables, I can see it visually as a line between the tables, ...

Visual Studio Styles?

Hey Now Everybody, Studio Styles 2010 ? What is the Best public URL view to Visual Studio Styles? ex: CurrentSettings-2010-04-29.vssettings Thx, Catto ...

SQL 2000 Not Supported by .NET Framework Data Provider for SQL Server in VS2010's Server Explorer Data Connections

Just tried creating a data connection to a SQL 2000 database in VS2010's Server Explorer using a .NET Framework Data Provider for SQL Server (versus OLE) and found that it didn't work. VS2010 complained that I had to use SQL Server 2005 and up. This used to work in VS2008 (using .NET Framework Data Provider for SQL Server instead of th...

Unable to use IIS7 with Visual Studio 2010, MVC2.0 and NET4

Here is my environment Windows7, Visual Studio 2010, MVC2.0 and NET4 My default web site is configured to use ASP.NET v4.0 application pool. Here is an easy way to reproduce my problem Create a new MVC2 application Open the properties Window Go to the Web tab Check "Use IIS Local Web Server" Click on "Create Virtual Directory" button ...

Automatically add close quote in visual studio like resharper does

can not find this option in new studio (2010) ...

MS Build Server 2010 - Buffer Overflow // append: how to exclude directory from source safe

Hey everybody, I try to build an solution in MS Build Server (MS Visual Studio 2010 ver 10.0.30319.1) about ServerTasks -> Builds -> Server Task Builder -> Queue new Built and go, 47 seconds later I get an error output: CSC: Unexpected error creating debug information file 'c:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdP...

vcxproj file won't load into solution.

We've just recently switched to VS 2010 and i had a solution that was working fine. This moring when i try to load the solution i get the error: "An item with the same key has already been added." This occurs when it is trying to load one of our main projects and it is not loaded. I assumed the problem was with my solution so i cre...

Silverlight 4 missing from VS 2010

Hello, When I start a new Visual C# Silverlight project in the official release version (not the beta or the release candidate--the official release version) of Visual Studio 2010, I get only Silverlight 3 as an option in the Silverlight Version dropdown at the New Silverlight Application dialog box. I have installed SL 4, the SL4 tools...

FxCop for .NET 4.0

I know Visual Studio 2010 has a new Code Analysis tool built in, but that is only for the premium and ultimate editions. From what I can see the latest FxCop supports .NET 3.5 SP1. Searching I wasn't able to find any references to an FxCop for .NET 4.0. Is there plans to continue to offer FxCop and for it to support .NET 4.0? Where w...

SubSonic template with MySQL

When I run the custom tool to create the cs files for SubSonic all the templates now inject a letter g to the top of the cs files. To get this to compile I need to remove the g from the ActiveRecord.cs, Struts.cs, Context.cs and StoredProcedures.cs. Anyone else run into this? I am using MySQL. ...

Problem setting up Direct X for C++

I've downloaded Direct X SDK from the microsoft website but when I try to compile my code i'm getting this error: Error 1 error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "void __cdecl initD3D(struct HWND__ *)" (?initD3D@@YAXPAUHWND__@@@Z) C:\Users\Josh\Desktop\Tutorial\Tutorial\Tutorial.obj ...

Forbidden Patterns Check-In Policy in TFS 2010

I've been trying to use the Forbidden Patterns part of the TFS 2010 Power Tools and I'm just not understanding something - I simply cannot get anything to change as I try to use this! I'm using the version that was released recently (I believe April 23, 2010), so it's not an old version. First off, yes, I know it's regex based, so let's...

Visual Studio 2010 - Export (Project) Template menu option grayed out

In Visual Studio, I want to make a simple C++ project and export it out as a template, so I can use the template to start new projects to save me time. But the Export Template menu option is always grayed out. I've not once been able to click it. Anyone know why? Anyone know how to accomplish what I need (besides the obvious "make a co...