visual-studio-2012

How can I disable code coverage / assembly instrumentation in Visual Studio 2012?

只愿长相守 提交于 2019-12-22 12:18:28
问题 I have a project upgraded from Visual Studio 2010 to 2012 and the .testrunconfig file was included in the upgrade process. I noticed that it was possible to click "Analyze code coverage" on any of the unit tests that I had run and it would correctly display the result. However, my test run configuration (originally from VS 2010) had code coverage disabled. After doing a bit of research I learned that the VS 2010 configuration files have been deprecated and replaced by .runsettings files. It

Compile-On-Save with Typescript 0.9

爷,独闯天下 提交于 2019-12-22 11:37:22
问题 So I know that the Typescript 0.9 Alpha is out, and one of the drawbacks is the ability to Compile-On-Save is not available yet. My question is, is there another way to get this feature? Web Essentials has a compile-on-save feature with Typescript 0.8.1, does that work for 0.9? Is there another extension available that can provide this feature? I am using Visual Studio 2012 and the Typescript extension. I am working in Typescript projects (if that makes any difference). Thanks in advance!

Install Qwt on Win7 64bit

你说的曾经没有我的故事 提交于 2019-12-22 11:15:33
问题 I searched around the web but didn't find a solution for my proper problem. Problem: Qwt-installation failes at the nmake -step What I did: -) installed Qt 5.1 ( Qt 5.1.1 for Windows 64-bit (VS 2012, 525 MB) ) (Info)from qt-website -) Downloaded Qwt 6.1.0 files from here -) extracted Files to C:/Qt/Qwt-6.1.0 -) set correct path in qwtconfig.pri -) started MSVC 2012 console (coming with Qt) and run qmake qwt.pro -) tried nmake in same consol (but nmake.exe was not found) --> installed

How to extract compilation args for each compilation unit in a vcxproj?

冷暖自知 提交于 2019-12-22 10:52:46
问题 I'm trying to get the compilation args for each compilation unit so I can create the "compilation_commands.json" for my vcxproj that can be used with clang's libTooling. The libTooling tutorial suggests using a CompilationDatabase to provide the compilation args for all the cpp files in a project. The tutorial shows that CMake can generate the compilation_commands.json for CMake based projects. Since clang can be put into "MSVC mode" via clang.exe --driver-mode=cl or clang-cl.exe my thought

Visual Studio local workspace + Enable Nuget Package Restore (disableSourceControlIntegration)

不打扰是莪最后的温柔 提交于 2019-12-22 10:46:22
问题 I was happy with disableSourceControlIntegration = true (and /packages/ not checked-in to TFS) in server workspace. Now I decided to try local workspace and boom - it finds thousands of 'Detected Changes' in /packages/, which should be ignored because of disableSourceControlIntegration = true in my NuGet.Config Anyone got local workspace and package restore working together? I believe that adding .tfignore is a really bad option. Btw, I'm using VS13. 回答1: In your solution directory root,

Linker error: already defined

瘦欲@ 提交于 2019-12-22 10:19:04
问题 I am trying to compile my Visual C++ project (uses MFC) in Microsoft Visual Studio 2012, and it comes back with the following errors: error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj) error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj) error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBCMTD.lib(delete2.obj) error LNK1169: one or

Visual Studio convert web application to website

笑着哭i 提交于 2019-12-22 10:08:12
问题 I know this is going backwards - but I would like to convert a web application back into a website. I want to do this because there are/will be many people working on it and we like to be able to update just a single page without having to compile/deploy the entire project. My environment is Visual Studio 2012/ASP.Net 3.5/c# 回答1: The following worked for me: Delete the .sln, .suo, .csproj, .csproj.user , *.debug.config , *.release.config and any other project/solution related files. In Visual

How to create a Visual Studio build configuration with StyleCop code analysis disabled?

≡放荡痞女 提交于 2019-12-22 09:57:23
问题 Question I have installed StyleCop and now there are StyleCop squiggly lines all over the source code. Now, I'd like to be able to temporarily enable and disable StyleCop's analysis. I would have expected a checkbox saying "Disable StyleCop", instead, the Internet tells me that I have to create a new Visual Studio build configuration called "Debug without StyleCop" open the project *.csproj file and do all kinds of nasty things in there. Can anyone please provide a step by step instruction on

cpp file with a single global variable is ignored

青春壹個敷衍的年華 提交于 2019-12-22 09:56:27
问题 I'm trying to initialize a global map std::map<long, std::string> Global_ID_Mapper; with a number of "init" classes like: struct AGlobalMapperInitializer { AGlobalMapperInitializer() { Global_ID_Mapper.insert( std::make_pair(1, "Value1") ); Global_ID_Mapper.insert( std::make_pair(2, "Value2") ); } }; I want to fill the map automatically during application start. So in one of my cpp files, I just define a global variable of that "init" class. // AGlobalMapperInitializer.cpp

Move Up, Move Down Buttons for ListBoxes in Visual Studio [duplicate]

不羁岁月 提交于 2019-12-22 09:42:27
问题 This question already has answers here : How to move item in listBox up and down? (15 answers) Closed 6 years ago . I am trying to make a Move Up Button, and a Move Down Button, to move a selected item in a ListBox in Microsoft Visual Studio 2012. I have seen other examples in WDF, jquery, winforms, and some other forms but I haven't seen examples from Microsoft Visual Studio yet. I have tried something like this: listBox1.AddItem(listBox1.Text, listBox1.ListIndex - 1); But Microsoft Visual