visual-studio-2010

Visual Studio build and deploy ordering

We have a VS 2010 solution that includes a few class library projects, a SQL Server 2008 database project and a Wix setup project. We are trying to get to a point where the following happens in the order specified: Build the class library projects and the database project Deploy the database project to generate the deploy .sql script B...

Resolving MSBuild 4.0 warnings

I've upgraded a solution to use MSBuild 4.0. It compiles but I get lots of warnings, for example: "T:\projects\Castle.Core\buildscripts\Build.proj" (Package target) (1) -> "T:\projects\Castle.Core\Castle.Core-vs2008.sln" (Build target) (2:2) -> "T:\projects\Castle.Core\src\Castle.DynamicProxy.Tests\Castle.DynamicProxy.Tests-vs2008.cspr...

Visual Studio 2010 - how to add next types in version resource menu?

Hi I switch from VS 2008, to VS 2010, but in VS 2010 I don't have types in "Add version" in resource, like: comments, legaltrademarks, privatebuild, specialbuild. How I can add this types to version on my program in Visual Studio 2010? (in pink I draw what have VS 2008). image: http://i48.tinypic.com/2mzlg5e.jpg BarbieLie28 ...

Target framework, what does ".NET Framework ... Client Profile" mean?

In Visual Studio 2008, the target framework settings for a project are .NET Framework 2.0 .NET Framework 3.0 .NET Framework 3.5 However, in Visual Studio 2010 they are .NET Framework 2.0 .NET Framework 3.0 .NET Framework 3.5 .NET Framework 3.5 Client Profile .NET Framework 4 .NET Framework 4 Client Profile What do the Client Prof...

Why does Microsoft tie .NET runtime versions to specific versions of VIsual Studio?

Why is it that I have to upgrade to VS 2010 to build/run .NET4 projects? This seems somewhat ridiculous to me. Why should the run-time that my code runs against, or the compiler that the IDE invokes (hopefully) generically through MSBUILD rules have anything to do with the IDE I am using? ...

Programmatically open a file in Visual Studio (2010)

Hello. I'm building a VS package, and I'm trying to send a command from the package to Visual Studio to open up a user selected file in a new tab (just like a user would do it by going to File -> Open...). I remember seeing at some point how to do this. Can anybody refresh my memory? Thanks! ...

VS 2010 migration issue – XSD.EXE can’t process Framework 4.0 assemblies

In VS 2008 / SDK 6.0 I used the /t option of the XSD utility to automatically generate XSD files from existing assemblies / classes. With VS 2010 and SDK 7.0 this isn’t working any longer, because the XSD.EXE can’t process the new Framework 4.0 assemblies. It stated to be a Framework 2.0 tool and can’t process assemblies of newer runtime...

Visual Studio 2010 and Silverlight - Adding Data Sources

Hello, I am interested in building a Silverlight application that uses RIA Services. I am using this video (http://live.visitmix.com/MIX10/Sessions/CL08) as an example. In that video, the presenter uses the "data sources" tab to populate the view. However, I cannot figure out how to add a data source from within Visual Studio 2010. I h...

Designing a data model in VS2010 and generating ORM code, application

Simply put: I have a database design in my head and I now want to use Visual Studio 2010 to create a WPF application. Key is to use the VS2010 tools to take much as possible manual work out of my hands. -The database engine is SQLite -ORM probably through DBLINQ -Use of LINQ -The application can create new, empty database instances ...

How to detect a Socket disconnection?

I've implemented a task using the async Sockets pattern in Silverlight 3. I started with Michael Schwarz's implementation and built on top of that. So basically, my Silverlight app establishes a persistent socket connection to a device and then data flows both ways as necessary between the device and the Silverlight app. One thing I a...

Visual Studio 2010 and Line Endings

Does anyone know a way (setting, add-in or extension) to force Visual Studio to use Unix Style line endings as default? I've seen there exists something for Visual Studio 2008, called stripem - but it seems more like a hack than a solution. ...

Newlines in the Immediate Window

Using Visual Studio 2010 Professional, I have a ToString() method that looks like this: public override string ToString() { return "something" + "\n" + "something"; } Because there are several "something"'s and each is long, I'd like to see something something Sadly, I'm seeing "something\nsomething" Is there a way to get wh...

How do I get the Silverlight Add-On for Visual Studio 2010 and some example code?

How do I get the Silverlight Add-On for Visual Studio 2010? And where can I find lots of example code? When the interent and html was new, one could find examples of how to build a website on a few trusted web sites. The same web sites might not be the best choice for looking for examples for Silverlight, I guess. What are the best w...

VS 2010 breaks my keydown events

I have a custom control, a groupbox, which reacts on key events on a assigned key. It is possible to remove this groupbox, as well as adding more dynamically. Havnt been any trouble in VS 2008 so far. Two days ago i installed VS 2010. And i started to get multiple event fireing, and removing a groupbox did not remove the specific key ev...

What is Silverlight's relationship -- if any -- to WPF?

I was working with a WPF application and I decided that the controls and graphics I wanted to display on the grid might look better if it was a silverlight component. I thought this way because of all the cool silverlight controls that look very flash-like. But now that I have gottem my Visual Studio 2010 set up with SIlverlight, it ...

Implementing themes in Silverlight 4 apps.

I have a 2 part question: Is there anything more to implementing themes than simply placing a <toolkit:BlahBlahBlahTheme> tag around all your content? What is the pattern for switching out themes at runtime? Is there such a thing? ...

DataGridView not displaying a row after it is created

Hi, I'm using Visual Studio 10 and I just created a Database using SQL Server CE. Within it, I made a table CSLDataTable and that automatically created a CSLDataSet & CSLDataTableTableAdapter. The three variables were automatically created in my MainWindow.cs class: cSLDataSet cSLDataTableTableAdapter cSLDataTableBindingSource I ...

VS2010 Ultimate - Unable to launch ASP.NET Development Server

I've worked with ASP.NET once before and had a project where it was potentially useful, so I started creating an ASP.NET website as part of a solution that contained several C# class libraries. I'm using Visual Studio 2010 Ultimate Edition and Windows 7 Professional x64. The issue is that when I try to debug my website project, I get th...

how can I swap Entity Framework connection strings easily when I test on different servers (i.e. different databases)

how can I swap Entity Framework connection strings easily when I test on different servers (i.e. different databases) - at the moment it is a bit tedious going into the design parameters and trying to swap back and forth each time I change. ...

Why don't I get code coverage results for C++/CLI project in Visual Studio 2010?

I've recently upgrade my solution to Visual Studio 2010. I have 4 projects I want to cover using unit tests - 3 C# and 1 C++/CLI. I get coverage for the C# projects but not for the C++/CLI project. I did get for all of them in Visual Studio 2008. I've configured the assemblies using testrunconfig -> Data and Diagnostics -> Code Cover...