visual-studio-2010

VS 2010 unit test and unsigned type

I am converting my unit tests from NUnit to the VisualStudio 2010 unit test framework. This test fails with the message "Assert.AreEqual failed. Expected:<System.UInt16[]>. Actual:<System.UInt16[]>." what's actually very strange. This test was running successfully with NUnit. Any ideas why the types are supposed to be different? [TestMe...

Web.Config Transformation in VS2010

I am working in the web.config transformation file concept. I have three web config. One is Staging, Production, Deployment. I have different connection information for these three. Web.Config: <connectionStrings> <add name="MyGallery" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Devel...

Things to keep in mind when migrating from VS2008 to VS2010.

So, I'll be soon working on porting two APIs (C++ and C++/CLI) to use the VS2010 compiler. I think it'd be a good idea to have a head start on this. Any tips? ...

Visual Studio 2010 addin writing articles/tutorials?

Does anyone know of some good articles / tutorials on writing addins/plugins for Visual Studio 2010? ...

C++ Compilation Problems with Microsoft Visual Studios 2010 Beta 1

Well, I just got the new MSVS 2010 Beta 1, and just like with 2008 express, I just can't figure out how to compile anything, not even a simple hello world program. Anyone have any pointers? I usually just get a blanket fail message. No real information. Edit: Sorry about that #include <iostream> using namespace std; main() { cout ...

ExpectedExceptionAttribute is not working in MSTest

This is wierd, but all of a sudden the `ExpectedExceptionAttribute' quit working for me the other day. Not sure what's gone wrong. I'm running VS 2010 and VS 2005 side-by-side. It's not working in VS 2010. This test should pass, however it is failing: [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public voi...

How can I Enabling the breakpoint margin in VS2010

The Beta 1 of VS 2010 does not seem to have a margin on the left where I can click to add/remove break points with a single click. I can't find a way to turn this back on. I REALLY hope MS haven't removed this feature in their infinite wisdom! Anyone know how to get this critical feature back? Cheers, Jan ...

VS2010 MVC and Entity Framework Model in Separate Project

Hi I'm experimenting with ASP.NET MVC in VS2010. I'm trying to use an Entity Framework model in a referenced project within the main MVC project. However, although I can manually create a view that can work with the EF Model in the other project, I can't use the in-built scaffolding features. Is there something I'm doing wrong? For re...

Can I use .net 4.0 beta without having vs2010?

Possible Duplicate: Can I use .NET 4.0 beta in Visual Studio 2008? I have VS 2008 professional, and yesterday installed .net 4.0 Beta 1 (without vs2010). I want to try parallel Fx lib, but I don't know how to add .net 4.0 references. It is possible to use 4.0 version without visual studio 2010? ...

Can you use Optional Parameters in code targeting .Net 3.5?

I'm looking to write a library that uses the new optional parameters feature of C# 4.0, but I want to target it to the 3.5 version of th framework. Is this possible? Are optional parameters syntactic sugar in the same way that Extension Methods are? ...

system requirements for Visual Studio 2010

My team is currently using VS2005 with the following development PCs that are a few years old: XP, Pentium D 2.8GHz, 2GB RAM. My gut tells me that this is going to be poor hardware for VS2010 development. I am not running VS2010 beta but I am running Blend 3 beta and the performance is bad. Can you point me to anything that I can show ...

Will VS 2010 display recent used project and solution in the context menu of the start menu?

Start menu in Windows 7 has a feature: a programs, pinned to the top, can show a context menu with recently used files: Will Visual Studio 2010 be able to display also recently used Projects and Solutions? ...

UnauthorizedAccessException on MemoryMappedFile in C# 4.

Hey, I wanted to play around with using a MemoryMappedFile to access an existing binary file. If this even at all possible or am I a crazy person? The idea would be to map the existing binary file directly to memory for some preferably higher-speed operations. Or to atleast see how these things worked. using System.IO.MemoryMa...

Uninstalling VS.NET 2010 Beta Breaks .NET?

I've been running VS.NET 2010 beta for a couple of months now alongside VS.NET 2005. As late as yesterday afternoon I was using 2005 for work. Last night I uninstalled VS.NET 2010 and nownone of my .NET-related apps work (VS.NET 2005, SQL Server Management Studio, etc.). The installs for these products won't work, either, nor will the...

Boost::Test -- generation of Main()?

Hello :) I'm a bit confused on setting up the boost test library. Here is my code: #include "stdafx.h" #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE pevUnitTest #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_CASE( TesterTest ) { BOOST_CHECK(true); } My compiler generates the wonderfully useful error message: 1>MSVC...

Can I suppress selected input before the application's main loop?

As part of my Visual Studio utilities add-in SamTools, I have a mouse input routine that catches Ctrl+MouseWheel and sends a pageup/pagedown command to the active text window. Visual Studio 2010 added a new "feature" that uses that gesture for zoom in/out (barf). Currently, my add-in does send the scrolling command, but Visual Studio sti...

Is Visual Studio 2010 beta 1 stable enough to start a serious WPF 4.0 app?

I'm about to start a new WPF project and there are a number of things in 4.0 that I need (multitouch for one). I've heard that VS 2010 beta 2 will be released at PDC in November so I'm considering starting the project in beta 1 now, then migrating to beta 2 when it becomes available. Assuming I only need to live with the environment fo...

Code stubbing with Visual Studio 2010 UML modeling

Currently I'm exploring my way through all the new features added to the Visual Studio 2010 Beta 1 IDE and I found a feature that will hopefully be of great help to me. The UML Modeling tool in the Architecture Edition. I wanted to create a new test project, nothing special. I started out with creating just a standard UML Logical Class D...

How to get VS10 Intellisense to complete suggested member on enter?

I have been trying out the CTP Beta 1 of Visual Studio 2010 and I hate that VS10 doesn't autocomplete the best match when i press 'enter', or '.'. Visual Studio 2008 did this, and I haven't been able to find any options for this under Tools -> Options -> Text Editor. It kinda breaks my flow each time when I press enter (and get a new lin...

MSDeploy not working ...

Hi, I'm trying to deploy a .NET 4.0 project with Visual Studio 2010 using MSDeploy; however when I right-click on the project, what shows up is the legacy context menu for Visual Studio 2008 ('Publish Website', 'Build Website' etc.) in lieu of the VS 2010 context menu ('Publish', 'Build' etc.). I'm running Windows Vista and IIS 7.0. Id...