visual-studio-2010

VS2010 always relinks the project

I am migrating a complex mixed C++/.NET solution from VS2008 to VS2010. The upgraded solution works in VS2010, but the build system is always refereshing one C++/CLI assembly. It doesn't recompile anything, but the linker touches the file. The causes a ripple effect downstream in the build as a whole bunch of dependent then get rebuil...

Team foundation server 2010 - some setup question relating to performance

Hi Setup TFS 2010 on a pretty oldish server (actually an oldish desktop machine running server 2003 - single core, pre Core2 P4 so outdated...) I'm finding a first adding and first getting of a website with about 700 files is quite slow (over 20 mins already over a VPN line). Once you do that, the checkin / checkout operations are re...

Environment Setting for Highlighted Variable in Visual Studio 2010

Environment Fonts and Colors (Where's the one I'm looking for?) I have custom colors and fonts setup in Visual Studio and I'm now using those in the new VS2010. One new feature that I've noticed is that if you click on a variable, it highlights all instances of that variable in your current file. With my color scheme (a dark backgroun...

Visual Studio Express - console window as a tab

Hello, I wonder, if there is a way to make VS C++ Express console window appear as tab, like 'Output' or 'Code Definition Window', rather than new window (the same way like Eclipse does). Any IDE settings or plugin? Thanks in advance, Regards, Pawel (PL) ...

Enterprise Library 4.1 and .Net4

Hello I have a project that uses the Enterprise Library 4.1. When I target .net 4 and compile, I get an error that says I need to add a reference to System.ServiceModel version 3. My reference is to System.ServiceModel version 4. How can I tell Visual Studio 2010 to reference a .net3 assembly from a .net3 project? Or, does somebody ...

Database Projects: Visual Studio 2008 vs 2010

I just installed VS 2010 for the purposes of running someone else's DB project that was created using the 2010. In VS 2008 I was able to right click on a SQL file ans select "Run ON" to run the script on a given SQL Server. I don't see this option in 2010. Is it available and if so how do I get access to it? ...

Font Setting in VS2010 - missing FixedSys

After installing VS2010 yesterday - (both VS2005 and VS2010 installed), I can't find the "FixedSys" style font from the Fonts and Colors -> Font (pull down list). I can still use the font in VS2005. [update] I just searched "C:\WINDOWS\Fonts", there is no Fixedsys style in the folder. Any suggestions on how to make FixedSys available...

HTML Comment-out Add-In

Here is an old add in to quickly comment out HTML code. Maybe I am missing it, but it seems like there is a shortcut in VS2010 to scratch your tail with one click but commenting out HTML code is still awkward as hell. What's the easiest way to get a function like this working? Can I expect any add-ins that were written for older versio...

WPF Window Style not working at runtime

Hi, I created a WPF application in Visual Studio 2010 Express (C#) and added the text below to the Application.Resources in App.xaml. I see the style applied to the window in the designer, but when I run the application, the window background is white. Running in Windows XP on BootCamp on a MacBook Pro if that is a factor. Thanks in...

Using vsx how do you create a sub menu with commands?

I have created the following vsct file xml. <?xml version="1.0" encoding="utf-8"?> <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <Extern href="stdidcmd.h"/> <Extern href="vsshlids.h"/> <Extern href="msobtnid.h"/> <Commands package="...

VS2010 Implement Generic Interface expansion doesn't use specified type

Using the release version of Visual Studio 2010 I think there's a difference in the "Implement Interface" expansion from VS2008 If I speicify an interface and implement it in a class as so: public interface IRepository<T> where T : IModel { T Get<T>(int id); void Update<T>(T item); int Add<T>(T item); } public class Mo...

IntelliSense based snippet handling with Visual Studio 2010 SDK MEF Based text editor

Using the new Visual Studio 2010 SDK developing against the MEF based editor structure there's a question: How can I use the MEF editor interfaces to handle snippet behavior in IntelliSense? The ICompletionSession itself is not a problem (e.g. get the available snippets) rather filling the snippet, handling the subsequently expected act...

ReSharper 5 disable resolve view

I just did a fresh installation of Visual Studio 2010 Ultimate and ReSharper 5. But now ran into the following situation; return View("~/Plugin/Plugin.Product.dll/Plugin.Product.Views.CreateProduct.ascx"); From a controller i'm returning a view a shown above. ReSharper 5 is trying to resolve this view, but can't find it. Which is expl...

Visual C# 2010 Express Output Window

Is there Output window in C# 2010 Express? I don't see it in the View menu. ...

Entity Framework 4 maps DateTimeOffset to SQL datetime in Visual Studio 2010

I'm using Visual Studio 2010 RTM with .NET/Entity Framework 4 RTM with a model driven design approach. When I create an entity with a DateTimeOffset field the EF modeler tries to map the DateTimeOffset to a SQL datetime instead of a SQL datetimeoffset. I'm using SQL Server 2008 Express so the datetimeoffset is supported in the database. ...

Is it possible to use Visual Studio 2010 to edit Visual Studio 2008 solutions without conversion?

I just downloaded the Visual Studio 2010 trial. It would be nice if I could try it out by doing some real work on some real projects, but I can't convert these projects to 2010 format, because then noone else could open them unless they also install VS2010. Is there any way around this? ...

Is it possible to store credentials for auotmatic Team Foundation Server login?

Is it possible to store the credentials that I use to connect to my Team Foundation Server directly in Visual Studio 2010? I would like to avoid to insert them at every VS launch. The problem is that the machine that host TFS is not in the domain and I am conneting using the credentials of a user created on that machine. Suppose that ...

TFS: How to dectet changed files when loading a solution?

I am new to TFS integration with Visual Studio 2010, and I have a problem I would like to solve. Practically, when I open a solution, how can I detect, looking only at the Solution Explorer which file has been changed since my last login? I am able to discover the changed files if I look at the Latest column of Source Control Explorer ...

Visual Studio 2010 does not discover new unit tests

I am writing some unit tests in Visual Studio 2010. I can run all tests by using "Run all Tests in Current Context". However, if I write a new unit test, it does not get picked up by the environment - in other words, I am not able to find it in Test List Editor, by running all tests, or anywhere else. If I unload the project and then re...

VS2008 Team Suite working with VS2010 TFS?

Can I use Visual Studio 2008 Team Suite to work with Visual Studio 2010 Team Foundation Server? What are the functions that will not work? ...