visual-studio-2010

Sort selected text from Visual Studio context menu

Currently VS has a very useful feature: sort usings (C#). I want the same functionality for any random text, for example - XML nodes in config files. How complex to implement that? VS addin, right? Is it possible to call some VS API which is used for sorting usings? ...

C++0x Lambda to function pointer in VS 2010

I am trying to use a lambda to pass in place of a function pointer but VS2010 can't seem to convert it. I have tried using std::function like this and it crashes and I have no idea if I am doing this right! #include <windows.h> #include <conio.h> #include <functional> #include <iostream> #include <concrt.h> void main() { std::f...

StaticResource not found

I have the situation where a SolidColorBrush (defined in App.xaml) cannot be resolved during runtime, when i use the Brush in a Style as StaticResource. During designtime (using Visual Studio 2010) the brush is found, cause when i change the color of the brush the UIElement with the styles are updated with the new color. During runtime...

Show missing PartialView as a build error

Hey everyone, I've been reorganising our views at work and moving them around to more appropriate locations. Because we're currently organising many of our views into their own folders within the Views folder, we're having to reference our views using the full path in RenderView. Is there a way that I can get Visual Studio to throw a ...

How to eliminate certain annoying message during framework source code debugging.

Dear ladies and sirs. While debugging the framework source code I always get this annoying message from the studio: Some bytes have been replaced with the Unicode substitution character while loading file C:\Users\markk\AppData\Local\Temp\SymbolCache\src\source.NET\4\DEVDIV_TFS\Dev10\Releases\RTMRel\ndp\fx\src\Core\Microsoft\S...

Build VS2010 solution on Team Build 2008 - MSTest failed to run

Hello folk, I have a weird problem while building VS2010 solution incl. unit tests on a Team Build 2008 server. It builds the solution and also can run the test without an error, but after running the test I get following warning which makes the build breaking: MSBUILD : warning MSB6003: The specified task executable "MSTest.exe" ...

Migrating MFC (VC6) application to .NET 2008

I want very specific answer from the developers who did this and want to know how you resolved the problems you faced. We have very big MFC (VC6) 32 bit application existing for 10 years. Now we would like to migrate it to .NET unmanaged 64-bit application. Here we have some problems, our UI should not change, we may need some managed ...

Visual Studio - SharePoint 2010 - Include Assembly > Quick Question

I have a quick question....building a VS 2010 SharePoint project and I am referencing a custom assembly. I can reference this assembly in my code and it works fine to write code and all. When I deploy the project to SharePoint my Feature Activation code will not run because the custom assembly does not get deployed with the project. I...

WriteBuildMessage not displayed

Consider this simple msbuild script (xaml): <Activity xmlns=[....]> <Sequence> <mtbwa:WriteBuildMessage Message="Test message"/> <mtbwa:WriteBuildWarning Message="Test warning"/> </Sequence> </Activity> I have a tfs build definition based on this script. When I queue a new build in tfs, the warning is displayed under "view...

installing MSDN local help for Visual Studio 2010?

I've installed Visual Studio 2010 Ultimate Edition. I am not getting local help/MSDN. How can I install the MSDN library locally? ...

Problems submitting DataGridView changes with Linq-to-SQL

I'm trying to implement database value edition through a DataGridView control but honestly I'm having a hard time trying to accomplish that. I'm basically using LINQ-to-SQL classes and events, the following being the most significant snippets: var data = from q in data.FOOBARS select new { ID = q...

Developing in Visual Studio 2010 with the new IIS Express web server?

Although this question isn't directly about code it's related to programming and seems better put here than, say, serverfault or superuser. -- I'm a developer with Visual Studio 2010. Microsoft's newest web server offering for developers is IIS Express. ScottGu indicated this combination is workable: IIS Express will work with VS 2...

Is there any way to use XNA 3.1 with Visual C# Express 2010?

Is there any way to use XNA 3.1 with Visual C# Express 2010? ...

Is there a better way to deploy web applications using Visual Studio 2010?

I am using Visual Studio 2010 and IIS 7.0 .Currently when I want to deploy an website to my web server I follow these steps - 1.Right-click on website and say publish..to get the entire site copied to a local folder. 2.Next using filezilla just ftp the copied files to the web server. The problem is I have to deploy entire website all...

RDL client-side (local) reporting on .NET 4.0?

I just stumbled across the VS2010 "upgrade or die" confrontation for the RDL report designer. Before I destroy a perfectly good monitor, I decided to take a deep breath and calmly ask if anyone can give me the real scoop on what is going on with RDL client-side reporting. I've seen it said that it can't be done with RDL 2008. Is this ...

To upgrade or not to upgrade. Visual Studio 2008 to Visual Studio 2010

I can't find any compelling reason why I should put in a request for my company to get me an upgrade from Visual Studio 2008 Pro to Visual Studio 2010 Anything. Am I missing something? ...

ASPX files sometimes readonly when debugging in Visual Studio 2010 Premium

I'm running Visual Studio 2010 Premium on a Vista 32-bit machine and I've noticed that sometimes when I'm debugging a website project I can't edit an aspx file. If I close the file and open it again then I can edit it. Has anyone else encountered this problem? The only extensions I have installed are the VS Productivity Power Tools and P...

Conditionals in Visual Studio 2010 Project files

In a Visual Studio 2010 C++ project file, is it possible to use conditionals to determine the presence of a library, and alter preprocessor flags, etc appropriately? To be more concrete, say we have a directory C:\libraries\MKL, i would like to #define MKL and add mkl_dll.lib as an additional dependency if that directory exists. Previo...

How do I Create an ActiveX (COM) in C#?

Hello, I am trying to create an ActiveX controller. I using VS2010 (.Net4) I need to create a COM object (in C#) and have no Idea how to get started (what type of project to use ect.) Thanks ...

Linken list in Visual Studio 2010 problems

#include <stdio.h> #include <stdlib.h> typedef struct node { int value; struct node *next; }LLIST; LLIST *list_add(LLIST **p, int i) { if (p == NULL) return NULL; LLIST *first = malloc(sizeof(LLIST)); if (first == NULL) return NULL; first->value = *first; *p = first; first->value = i; } i...