visual-studio-2010

VC++ 2010:Can I execute multiple post-build events from multiple props files in one project?

I use prop files to define include directories and linkage for libraries that I want to use. We have a solution with 40+ projects and require different libraries for the different projects. I want to use post-build event to copy the required binaries into my distribution binary folder, but currently only the first prop file post build e...

How to set SharePoint2010 feature IsHidden property in VS 2010

How to set SharePoint2010 feature IsHidden property in VS 2010? ...

Is it possible to detect in code behind to know if we are being in design/runtime mode?

Possible Duplicate: Is there a DesignMode property in WPF? I have some codes that run & cause trouble for the designer of the IDE when editing a WPF form. So I want to know if I'm in design mode, I will turn off my code. Is it possible? ...

Searching for multiple strings in multiple files

I have a text file containing 21000 strings (one line each) and 500 MB of other text files (maily source codes). For each string I need to determine if it is contained in any of those files. I wrote program that does the job but its performance is terrible (it would do that in couple of days, I need to have the job done in 5-6 hours max)...

Adding a Menu to the Visual Studio Menu Bar within an Add-In

Is it possible to create an add a custom menu to the main menu bar in Visual Studio within an Add-In? I want the Add-In to create a company specific menu if it does not already exist and then add its own specific command to that menu. That way if multiple Add-Ins are supplied then they can all add the commands to the same menu. I have ...

CTaskDialog hyperlinks in vc++

Hi I am using CTaskDialog class in my MFC application. I am trying to customize it. In this if i want to add hyperlinks, as of now there is no specific provision for this. But to add the buttons we can use "AddCommandControl" and can handle the button. If I want to implement similar to this AddHyperlinkControl and want to handle can any ...

cannot convert from 'boost::interprocess::mapped_region' to 'boost::interprocess::mapped_region &&'

When I try to compile a simple boost application with #include <boost/interprocess/allocators/allocator.hpp> #include <boost/interprocess/managed_shared_memory.hpp> headers in VS 2010, I get the this error message. c:\program files\boost\boost_1_44_0\boost\interprocess\detail\move.hpp(342): error C2440: 'return' : cannot convert fro...

Is there a way to quickly create a style from a set of selected attributes?

I currently want to create a wpf style by selecting a group of attributes, e.g. Height, Width of a button, then right click and call a command like "Generate style from selection" and the IDE will do the rest for me: add .Resource tags, and a Style with sample x:Key and put the attributes' names and values into Setter tags. Is it possib...

How to open WorkItem (VS-Team Explorer) from outside visual studio ?

Hi, I want to open the workitem from outside visual studio using C# code. is it possible? I tried with this IWorkItemDocument widoc = null; try { string tfsName = "http://rd-tfs-no2:8080/tfs/siproducts"; var projectCollectionUri = new Uri(tfsName); var projectColle...

Problem in converting VS 2005 WebSite Project to VS 2010

Hello everyone, I have a WebSite Project that was developed using Visual Studio 2005 and .Net 2.0. Now I want to conver the application to Visual Studio 2010 but keep the target famework as it is; i.e. .Net 2.0. When I opened the project using VS 2010 (Professional Edition) it started with the usual converting wizard, I selected to con...

Getting MSBuild and CruiseControl .NET to build and deploy VS2010 database projects

I almost have a NAnt script together that will build and deploy VS2010 database projects, but one error stands in my way: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.T...

Dealing with C# and VB.net Projects in same solution.

I am in a c# project, in this project I reference (using a project reference) another class library written in vb.net. Now, when I right click and view definition on the class. It doesn't take me to the exact source code in the vb.net project, instead it takes me to a dynamically generated c# representation of the vb.net class. I've ...

Can I create a Visual Studio 2010 Add-In that Uses a WPF Display?

We're working on creating a specialized graphical editor for our enterprise applications. We've looked at and rejected DSLs. Ideally I'd like to have the main interface of the editor be docked like the code windows and use WPF for drawing. Can anyone point me to some documentation to get me on the right path? Thanks. Colin. UPDATE: It...

WinForms in WPF via VS Designer?

Is it possible to add an WinForms UserControl into a WPF UserControl just using VS 2010 Designer? ...

Targeting multiple framework versions in Visual Studio 2010

What is the best practice for developing a shared class library in Visual Studio 2010 to be used by a .NET 3.5 app and a 4.0 app? I could do it with separate project/solution files, one for 3.5 and one for 4.0 i.e. MyProject.3.5.csproj and MyProject.4.0.csproj but then I need to keep the files in sync. Is there a better way? ...

Is it possible to hide a tab from a group of users in Team Foundation Server 2010?

I have a tab (Internal Development Review) on one of my work item forms that I would not like to show to all users: Is it possible to hide this from a specific user group (or conversely, to grant it to another group)? I cannot find a way to put permissions on a tab. ...

Compiling CUDA with Visual Studio 2010

Hello all, I have used Visual Studio 2008 to compile and run CUDA applications before. I have switched to Visual Studio 2010 and Windows 7. I've been trying to get integration set up all morning, but haven't had complete success. I've downloaded the toolkit, installed Nsight, made sure the libraries/include/bin paths are set, checked ...

getting of server explorer in visual studio express edition 2010

where is server explorer in visual studio express edition 2010.how to use ado.net in visual studio express edition 2010. ...

Are there any Youtrack plugins for Visual Studio 2010?

Are there any plugins for Visual Studio 2010 that allow to work with Youtrack directly from the IDE? ...

Development and deployment - how to get service assemblies into their proper location?

Hi, This has to be a pretty common issue, and while we have answers, I'm trying to determine if there is any better way. We are using IoC / DI with structuremap. This means that our final application (an Asp.Net MVC 2 app) requires the presence of some assemblies which aren't being referenced anywhere else (our implemention of IReposi...