visual-studio-2010

How can I build in release in Visual Studio 2010 (C# Express)?

I'm used to VS2008, in which a release build would be built upon pressing F6, or in the menu Build > Build Solution. The build menu is gone, and although I can build the solution (through F6), it only builds the debug. I assume there is some kind of configuration manager now, but I can't find it anywhere. ...

VS2010 Extension like Smart Paster?

Alex Papadimoulis' Smart Paster is a great little tool that can paste text in programmer-friendly ways (e.g. as a StringBuilder, as a language-specific string literal, etc.). However, it doesn't seem to be available for VS2010. Anyone know of a similar extension or of plans to port Smart Paster? ...

What OS would you choose for Visual Studio 2010?

What OS would you choose for Visual Studio 2010? I have been running Vista for VS 2008 with a Virtual PC running Vista for VS 2010 Beta 2. (I didnt want to run them side by side) Now that VS2010 is launched, I want to re-install my machine (2.2 GHz Dell XPS laptop with 4Gb Ram) , should I load Vista or sould I try out Windows 7? I am ...

Moving from Silverlight 3 to Silverlight 4

Hi, I moved my app from silverlight 3 VS2010 to a system having Silverlight 4 and VS 2010. When I open the Solution I get the following error in the MainPAge.xml. What is wrong. Could not resolve mscorlib for target framework 'Silverlight,Version=v3.0'. This can happen if the target framework is not installed or if the framework monik...

Program not connecting to new database

Hi, I moved a VS Solution file from an old PC to a new PC. When I opened the solution in VS2010, I found that the database connections in database explorer was not present. Now I want the project to connect to a SQL Server database which is local to the new PC. I have moved the database files (.ldf and .mdf) to the new location and crea...

Are Visual Studio 2010 Professional Solutions/Projects 100% compatible with Visual Studio 2010 Premium Solutions/Projects?

I am just wondering on what version of Visual Studio 2010 to install (Professional or Premium) If there are a few people in the team with a mix of VS2010 professional/premium, would opening solution/project files be an issue, ie incorrect version or prompts to upgrade prjects.. Projects include: asp.net mvc, database and silverlight. ...

Is it possible to programmatically clear the Ouput Window in Visual Studio?

Do you know a way to add some code that, during debug, programmatically clear the Output Window in Visual Studio? Or do you know some fast alternative like a key shortcut? ...

What does the new <%: %> encoding syntax in Visual Studio 2010 do?

Hi, Scott Hanselman's latest blog entry about the new VS 2010 features mentions "the new <%: %> encoding syntax". What does it do? Searching for these tags with google doesn't seem to be possible... Thanks, Adrian ...

How to add Transactions with a DataSet created using the Add Connection Wizard?

I have a DataSet that I have added to my project where I can Insert and Add records using the Add Query function in Visual Studio 2010, however I want to add transactions to this, I have found a few examples but cannot seem to find one that works with these. I know I need to use the SQLClient.SQLTransaction Class somehow. I used the Add...

Does TFS 2010 support Visual Studio 2003 and 2005 connections?

I have been unable to locate any information on compatibility with Visual Studio 2003 or 2005. I currently have TFS 2010 working correctly with Visual Studio 2008, but we have some developers with Visual Studio 2003 and 2005 instances. ...

how long is the Visual Studio 2010 Trial valid?

What is the trial period of Visual Studio 2010 professional IDE? ...

Error referencing System.Web.Mvc from csc in Visual Studio 2010 RTM

csc /target:library /reference:System.dll,System.Web.dll,System.Web.Mvc.dll Foo.cs Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved. error CS0006: Metadata file 'System.Web.Mvc.dll' could not be found (Note - it does exist in the GAC under GAC_MSIL fol...

How can I make VS2010 behave like VS2008 w/r/t indentation?

Situation I have a plain text file where indentation is important. line 1 line 1.1 (indented two spaces) line 1.2 (indented two spaces) line 1.2.3 (indented four spaces) In Visual Studio 2008, when I pressed enter, the next line would also be indented four spaces. However, in Visual Studio 2010, when I press enter, the next...

Does anyone else have a bizarre Visual Studio 2010 code-editing problem when style="" attribute?

In Visual Studio 2010 (just upgraded), in standard Web Application projects (everything) I cannot finish writing <element style="">. Text input is impossible as soon as I get to style=" . Some kind of text editor bug. Is there a fix? ...

MSTest Not Finding New Tests

Using VS2010, I can't seem to add additional test methods. If I set up my project like this [TestMethod] public void Test1() { Assert.AreNotEqual(0,1); } [TestMethod] public void Test2() { Assert.AreNotEqual(0,1); } The only test that shows up in my Test View is Test1. How do I make sure Test2 gets in to that list? EDIT: A...

In VS2010, is there a way to know which application pool a given w3wp.exe is serving, to then decide to attach the debugger to?

So I'm debugging some websites (one from trunk, one from branch) running locally, in separate apppools. I have trunk and branch solutions open in two VS instances. I'd like to debug trunk in one, and branch in the other. I'd like to know if there's a way to know which application pool each w3wp.exe is serving, to know which one is whi...

What do you think of Visual Studio 2010?

Since it came out a few days ago, I am sure at least some members of SO had a chance to try it out. For those that did, I wonder if you could share the following: Whether you liked/disliked it What you liked/disliked Whether it's worth upgrading To ensure fairness (and to make the mods happy) I will make this CW. ...

Why was J# not supported in VS 2008, is the language dead?

Has MS given up on J# ? We integrate with software currently through a J# assembly. Does anyone know if it will be/is supported in 2010? ...

How to enable 'Add Config Transforms' for old Visual Studio 2008 project?

I am working in the new Visual Studio 2010 RTM and I would like to use web.config transforms. My site is configured to use .NET 4.0 but it was formerly a Visual Studio 2008 web application project. When I right-click on my web.config file I do not see the 'Add Config Transforms' option as I should. I also tried adding creating a new w...

How to break-down my EF Model?

We have a database app that we're beginning to write some new systems for and I want to redo our DAL, potentially using EF4. As I begin to look at this, it seems that it's a bad idea to just use a single EDMX file for my entire database. When I did this, here is a screenshot of what that looks like (zoomed out as far as I can zoom out) t...