visual-studio-2010

WPF: creating an app that looks like Visual Studio 2010

Hi! How do you create a desktop application using C# that would look like Visual Studio 2010? Here's an example What development environments can you use? Can you recommend any samples, tutorials or blogposts? edit: I think I found what I was looking for... http://wpfthemes.codeplex.com/. Thank you all for your answers. ...

Why can't I inspect local variables with IntelliTrace for VS 2010?

When navigating to previous calls/events during debugging with IntelliTrace, I can't see a snapshot of the value of locally-defined variables. When hovering with the mouse I get the message "Intellitrace data has not been collected". Does anyone know why? ...

TFS 2010 RC does not run Visual Studio 2008 MSTest unit tests

Steps: Run the build including unit tests. Expected result: the unit tests are executed and succeed. Actual result: the unit tests are built by the build, but this is the result: 1 test run(s) completed - 0% average pass rate (0% total pass rate) 0/4 test(s) passed, 0 failed, 4 inconclusive, View Test Results O...

How do I change the auto complete behavior in the VS 2010 editor?

How do I stop VS 2010 (RC) from autocompleting html helpers with new object { ... } when I just want to pass in an anonymous type? Backspacing is driving me crazy. e.g., VS wants: <%=Html.ActionLink("Register", "Register", new object { controller = "Account" }) %> I know the helper is declared expecting object, which is why it does ...

Visual Studio 2010 : Cant change target. Gives TargetFrameworkMoniker Error.

I have a console application which has target .NET 2.0 It is very short but full of unsafe code. I converted it to VS 2010. I run it OK. When I try to change "target framework" in properties to 3.5 or 4.0 it shows message box: TargetFrameworkMoniker: Error parsing application configuration file at line 0. XML document must have a top...

Interop type cannot be embedded

I am creating an web application on the .net 4.0 framework (beta2 ) in C#. When I try to use a assembly called "ActiveHomeScriptLib", I get the following error: Interop type 'ActiveHomeScriptLib.ActiveHomeClass' cannot be embedded. Use the applicable interface instead. When I change the framework to version 3.5, I don't have...

Visual Studio 2010, using VB.NET. Intellisense does not recognize new property until I recompile

I have an ASP.NET VB.NET web project that references a VB.NET class library. I add a new property to a class in the class library, then, from the web app, I expect to be able to use it immediately w/o errors and with full intellisense. It used to work in 2008. When I compile the class library, it becomes available but not until. W...

Use c# windows application projects in a web application

Hi, How can I use some projects I created using Visual C# 2010 in a Web Application. I want the projects all separated in the web application if possible Thanks :) ...

How much better is the WPF Designer in Visual Studio 2010?

For those who have spent time in Visual Studio 2010, and work with WPF, how much better, if any, is the designer for WPF? Are other designers, such as Blend, still preferred, or can we be productive in VS 2010? ...

Can't place a breakpoint in asp.net master page file

I have an MVC web application. I get an "Object reference not set to an instance of an object" error in line 16 below. It's a master page file. When I try to place a breakpoint in that line or anywhere in the file, I get a "this is not a valid location for a breakpoint" error. I have clicked on every line and I can't place a single brea...

My embedded resource has mysteriously vanished from the assembly, vb.net vs2010

I have an application that has a .sql file in it. The sql file is set to Embedded Resource. When I run the following code, I get an empty string array indicating there are no embedded resources. However this project has been working fine previously. Any ideas? Dim p As String() = Assembly.GetExecutingAssembly().GetManifestResourceName...

Removing unused local variables from .NET code

Is there a tool available that can scan a C# or VB.NET project and automatically remove all unused local variables? ...

NpgSQL insert file path containing backslashes "\\"

I am trying to create a record containing the path to a file. The insertion is done into a Postgres database where UTF8 is enabled, using the NpqSQL driver. My table definition: CREATE TABLE images ( id serial, file_location character varying NOT NULL ) My SQL statement including the code that executes it (boiled down to a mi...

The best use of time at Visual Studio Launch 2010

Yes, this is a programming-related question, if a little indirectly. For better or worse, I am switching from Winforms to WPF in April. I am also going to be in attendance at the Visual Studio Launch in Las Vegas. I have a real need to get up to speed quickly in WPF, so my question is: What sessions are going to be the best use of my...

Having trouble running code analysis from command prompt with msbuild

I'm using VS2010 RC while targeting .NET 3.5. I can run code analysis via Visual Studio without a problem. However, when I try to run code analysis on our CI server it isn't getting executed. When I attempt to build using msbuild 4.0 I get the following exception: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\CodeAnalys...

Who plans to go back to using Web Applications in ASP.NET 4.0?

So, it looks like Microsoft has gone back to pushing Web Application Projects* in ASP.NET 4.0. If you are like me, you converted to Website Projects in 2.0 and have never looked back. I recently spent some time trying to convert a Website Project to Web Application Project and was surprised at how tedious it was. So I am wondering what e...

Is the redistributable ReportViewer 2010 RC available in other languages?

I need to deploy the language packs for the ReportViewer 2010 control (the english one is installed and working perfectly). Before, with ReportViewer 2008 and 2005, all the supported laguages were available on the MS downloads site. I can't seem to find them for the RC of 2010 -- are they available anywhere? From MSDN: To use the ...

How to customize the Visual Studio 2010 RC StartPage recent projects

I'd like to play around with customizing the visual studio 2010 rc start page recent items. For what I have in mind I'd need to customize the datasource / databinding but I can't find where the information is coming from. <ScrollViewer Grid.Row="1" HorizontalAlignment="Stretch" Style="{DynamicResource StartPage.ScrollViewerStyle}"...

Visual Studio 2010: browse the web within VS?

Consider a developer who spends lots of time in Visual Studio. Hours are spent toiling on source code. Sometimes, he needs to search the web. Can you browse the web right within Visual Studio? Consider all modern versions and SKUs of Visual Studio. If so, are there any easy ways to launch that browser window? Are there any gotchas in...

Config transformations and “TransformXml task failed” error message

I’ve just enabled config transformations on a .NET 3.5 project in VS2010 RC after watching Scott Hanselman’s video on web deployment. Unfortunately every time I go to publish I now get the following error: The "TransformXml" task failed unexpectedly. System.UriFormatException: Invalid URI: The URI is empty. at System.Uri.C...