visual-studio-2012

visual studio 2012 shortcut to implement interface

可紊 提交于 2019-12-22 08:00:03
问题 It appears that Visual Studio 2012 has removed the automatic implementation of abstract classes that inherit from an interface, any idea how to fix this in 2012 version? 回答1: It seems to still be possible. Please see this How To article from MSDN I tested it and it seems to work just fine. Use this procedure to perform the Implement Abstract Base Class IntelliSense operation. For more information, see Implement Abstract Base Class. To implement an abstract base class using IntelliSense Create

Link Errors in Unmodified Visual Studio 2012 MFC Template when Statically Linking MFC

◇◆丶佛笑我妖孽 提交于 2019-12-22 06:57:47
问题 When creating a new MFC application of the simplest kind in Visual Studio 2012, and setting it to link statically to MFC, linking fails. Here's a gallery of 7 screenshots starting from the creation of the project via the wizard, up to the building (resulting in the linker error). No source editing was done in-between. The error logs state: 1>------ Build started: Project: Test, Configuration: Debug Win32 ------ 1> stdafx.cpp 1> TestDlg.cpp 1> Test.cpp 1> Generating Code... 1>uafxcwd.lib

Unloading different sets of projects in Visual Studio

[亡魂溺海] 提交于 2019-12-22 06:45:04
问题 Is there an extension to Visual Studio that provides the ability to create something like an 'unloaded project profile' for a solution? I have a solution with a large number of projects (~100). When working on a certain part, I can unload unrelated projects to improve performance. I'd like to be able to save this group of unloaded projects, so that when I switch to working on a different part I can then cause it's projects to be loaded instead. 回答1: I ended up writing my own extension to do

How to profile only a class library?

て烟熏妆下的殇ゞ 提交于 2019-12-22 06:36:51
问题 I want to profile the CPU usage of a class library project which is compiled into a dll with VS2012. When I go into Analyze -> Launch Performance Wizard, I can choose which project to profile but it only lets me profile executables, so I can't profile my library. If I profile both of my projects (one is a very simple Form which runs functions from my library and shows some output) then System.Windows.Forms.Application.Run takes up 97% of my samples - I don't really care about the performance

How to set the guides (right-margin marks) in VS2012 text editors

江枫思渺然 提交于 2019-12-22 06:27:38
问题 Is it possible to set the guides (right-margin marks) in the visual studio 2012 text editors without any extensions? Edit : registry key HKCU\Software\Microsoft\VisualStudio\11.0\Text Editor doesn't work. Any working solutions? 回答1: Now is the Paul Harrington's Editor Guidelines Extension for the Visual Studio 2012 available. So you have an extended context menu, where you can Add, Remove or Change Color of the guidelines. 来源: https://stackoverflow.com/questions/12073277/how-to-set-the-guides

Upgrade a visual studio solution on the command line with visual studio express

左心房为你撑大大i 提交于 2019-12-22 06:11:29
问题 Is there a way to upgrade a visual studio solution on the command line with visual studio express? When trying to build the old solution with msbuild I get a warning to upgrade with either "vcbuild /upgrade" or "devenv /upgrade". Both of them do not exist in VS Express 2012 and msbuild from that version does not include an /upgrade flag. I also found a solution proposing to use vcupgrade, which exists but can only upgrade individual projects. Also, the upgrade fails in my case, whereas it is

Upgrade a visual studio solution on the command line with visual studio express

旧时模样 提交于 2019-12-22 06:10:32
问题 Is there a way to upgrade a visual studio solution on the command line with visual studio express? When trying to build the old solution with msbuild I get a warning to upgrade with either "vcbuild /upgrade" or "devenv /upgrade". Both of them do not exist in VS Express 2012 and msbuild from that version does not include an /upgrade flag. I also found a solution proposing to use vcupgrade, which exists but can only upgrade individual projects. Also, the upgrade fails in my case, whereas it is

How to Target WP7.1 in Visual Studio 2013

不打扰是莪最后的温柔 提交于 2019-12-22 05:48:16
问题 I have just upgraded to Windows 8.1 and installed Visual Studio 2013. I am trying to update a previous WP7.1 solution but when opening with VS2013 I am asked to update some things. I select yes, and everything seems to work except for the Windows Phone Toolkit I got from NuGet in my original solution (built in VS2012). After updating I had a migration report error saying Some NuGet packages were installed using a target framework different from the current target framework and may need to be

list available platform toolsets

家住魔仙堡 提交于 2019-12-22 05:40:13
问题 Is there any method to list platform toolsets available in VS2012? I mean a list that might contain v90, v100, v110, v110_xp and any externally provided platform toolset. Alternatively (should that be easier): is there a way to check if given platform toolset is installed or not? 回答1: Here is a console app utility (in C#) that dumps the list of toolset (for each available configuration). You need to add a reference to Microsoft.Build to be able to compile. Note the proper list of toolset is

Visual Studio ODP Unmanaged Driver - Failed to find the default tnsnames.ora file (12c )

送分小仙女□ 提交于 2019-12-22 05:35:39
问题 I'm developing an app in Visual Studio 2013 that connects to a Oracle Database. I have to use the "Unmanaged Driver". When I'm trying to create a new connection in a dataset, when I chose the "Managed Driver" all work fine: the tnsnames.ora is found. But when I select the "Unmanaged driver" all fails, it send me a message like " Failed to find the default tnsnames.ora file" I already - Uninstalled all old Oracle Clients - Clean all environment variables - Reinstalled Oracle client, ODP tools