visual-studio-2010

Visual Studio 2008 network drive trust and .NET 4.0

I'm using Visual Studio 2008 on a PC that also has .NET 4.0 installed to work on code that has to be kept on a network drive. Question is, since .NET 4.0 overrides .NET 3.5 security settings, how the heck do I get VS2008 to trust the network drive? ...

In Visual Studio 2010, is there a way to keep recently-used files from falling off the File Tab Channel?

In Visual Studio 2008 you could use Sara Ford's did you know #331 (Did you know… You can keep recently-used files from falling off the File Tab Channel? - #331) to make the tabs ordered in MRU (most recently used) order (i.e. the current window is always the left most tab, the previously visited window is second tab, and so forth). The ...

ClassificationTypeDefinition list of BaseDefinitions for Visual Studio 2010

Does anyone know where I can get a list of BaseDefinitions for the ClassificationTypeDefitions in Visual Studio 2010? I'm trying to define a base definition of "UserTypes" but it doesn't seem to work. For those that don't quite know what I'm talking about and need code to make it easier... [Export(typeof(ClassificationTypeDefinition))]...

unhandlex exceptions when using new after implementing a setup project in visual studio 2010

Hey I have my little client application which - when started - creates some user defined objects on the heap via "new" pHistory = new CHistory; This was no problem and everything ran fine until yesterday. I wanted to deploy my application and did decide to use a "Setup Project" from Visual Studio 2010. http://msdn.microsoft.com/en-u...

Cancel VS2010 project creation from wizard

Hi I created a wizard for a custom template in VS2010 And it works like a charm. But since the wizard contains a form required to finish the creation of the project, i feel that the user should be able to cancel the creation of the project. So my question being.. Is it possible to cancel the creation of a project/template process fro...

Nunit-agent debug workaround

I attached to nunit-agent.exe about 49 times today, and my fingers are getting tired. I was wondering if there is an automated way to get the nunit-agent.exe attach to the debugger within Visual Studio 2010? ...

Turn off double-click undock in VS2010

I keep accidentally double-clicking my tabs in VS2010 and undocking them. Is it possible to turn off this behavior? Note: I'm using Document Well 2010 Plus from the Productivity Power Tools, in case that makes a difference. ...

VS2010 WPF - Can I create a menu with menu items just via the UI (not editing XAML?)

Just trying to drag my first Menu control onto a WPF application in VS2010. Is there a way to (via the VS2010 UI) setup the menu items etc? Or does one have to jump into the XAML to do this? Also it seems like the Menu control, after I drag it onto the window, exists at the top of the Window. However I was expecting it to be rend...

Solution Filters with SCONS Visual Studio Solution Generation?

When generating a MSVS Solution file with SCONS, I end up with a flat list of projects in a solution file. Is there any way to specify solution filters through the solution builder? It does not appear so from the API or documentation. ...

mysql service stops while trying to alter a table

I have mysql 5.1 installed using this: mysql-essential-5.1.49-win32.msi. And also have Workbench installed using this mysql-workbench-gpl-5.2.26-win32.msi On Windows 7 Now my problem that anytime i try to create a new table or alter an exist table, the mysql service stops and workbench gives an error that it can't connect. But before ...

AnkhSVN trouble : "please select a valid location in the repository to add to"

I've tried to solve this error message but I couldn't. I've tried for a really long time, I just can't figure a solution to this. I'm using Ankh plugin with Visual Studio 2010, I've got an SVN repository on unfuddle.com and I'm trying to import my project into that new repository. this is the error message I get : " please select a v...

Visual Studio 2010 Intellisense slows down everything

Hey. I have the issue with Visual Studio 2010, after a while, running exceptionally slowly and slowing everything else down with it. I'm meaning: Most other open windows become unresponsive Typing is delayed Build times increase 10-fold Saving takes forever I am sure this is an Intellisense issue; disabling it solves everything, and...

Can we create a VC++ executable which will work natively on both 32 bit and 64 bit Windows?

Is there any way to build a VC++ project so that the dll/exe created by it will work as a 32 bit application on a 32 bit Windows OS and as a 64 bit application on a 64 bit Windows OS (not in WOW64). I know that is possible for C# applications using the /ANYCPU option. ...

Silverlight 4: Resolving Microsoft.Silverlight.CSharp.targets was not found?

I've been upgrading some Silverlight 3 apps to Silverlight 4 in Visual Studio 2010. My Silverlight 3 apps open fine in Visual Studio, but SL4 apps don't, with the following error: C:\Path\To\MyProject.csproj : error : Unable to read the project file 'XNTVOD.AdminClient.csproj'. C:\Path\To\MyProject.csproj(593,3): The imported project ...

stream << set_of_dices.dies[die].getStringRow(row) << " ";

Hi, I get the following error when I try to run my application in Visual Studio 2010: Error 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const std::string' (or there is no acceptable conversion) new folder\setofdices.cpp 55 1 test1 And the function is: //Overload of the ope...

C++ Specify Headers Include Directory in Code

Is there a way to specify include directories in the code, perhaps via a #pragma? I have my project setup as "src/" and "include/" folders. I am trying to compile in Visual Studio 2010, but I don't want to set it up in the project settings. Is there another way to allow it to compile instead of having to specify the include as #includ...

How to use Linq/Lambda with ObservableCollection<T>

I have the following code that simply loops looking for a condition and places all matches into a new collection: ObservableCollection<Device> allDevices = GetAllDevices(); ObservableCollection<Device> matchingDevices = new ObservableCollection<Device>(); foreach (Device device in allDevices ) { if (device.ID != 5) matchingD...

Is the VS2010ImageLibrary missing a few images?

I'm looking through the provided library from the VS2010ImageLibrary.zip file and I'm wondering if they missed a few out? For example, I can find: AlignTableCellMiddleLeftJustHS AlignTableCellMiddleCenterHS AlignTableCellMiddleRightHS but I can't find the images: AlignTableCellTop... AlignTableCellBottom... Also I can find the f...

Disabling Team Foundation Server extensions in VS2010

We're using Visual Studio 2010 (Premium edition if it matters), and pretty happy with it. However, We're never going to use the TFS features that's included in the IDE. (We're using Jira and Subversion, as it's not just Visual Studio that we work with, but also IntelliJ and a couple other IDE's.) Is there any way to disable the TFS p...

Can't debug ASP.NET application stored in IIS

...