visual-studio-2012

How to prevent automatic unit test execution in Visual Studio 2012?

这一生的挚爱 提交于 2019-12-30 08:05:17
问题 Every time I compile my solution the unit-tests start to run in background as I see in the Test Explorer. Is there any configuration to prevent VS from doing that? 回答1: Disable the " Run Tests after Build " setting: Source: http://tfs.visualstudio.com/en-us/learn/run-a-unit-test-after-build-in-vs.aspx 回答2: My problem: I have 'Run Tests After Build' Off. Although the test cases are not running, the test discovery itself is running for minutes after every build. Below setting fixed my problem.

Couldn't find “My work” in new Visual Studio 2012

被刻印的时光 ゝ 提交于 2019-12-30 08:04:06
问题 I'm using Visual Studio 2012 Premium and couldn't find the section "My Work" in the Team Explorer to suspend my current work. My TFS is still on version 2010 ... does it have to be updated to see the "My Work" feature? Or how can I enable this section? 回答1: My Work is indeed a VS Premium feature. It does require TFS 2012 to activate, as it uses functionality that is new to the 2012 SDK. On TFS 2012, you will have to settle on combining the work items and pending changes pages. 回答2: Yes, you

EntityFramework error: The provider did not return a ProviderManifest instance

做~自己de王妃 提交于 2019-12-30 07:56:17
问题 My project is using ASP.NET MVC4, in C# with Visual Studio 2012 for Web Express. When compiling my project, I have the following error: The provider did not return a ProviderManifest instance. Could not determine storage version; a valid storage connection or a version hint is required. After many hours of search I believe that is error is somehow related to Entity Framework. I also found a work around for this error here: http://forums.devart.com/viewtopic.php?f=32&t=25748 The workaround

Xcode equivalent of Visual Studio's “Find Source”

倖福魔咒の 提交于 2019-12-30 07:09:05
问题 I am developing on a Qt project, and have installed Qt from their installer onto my computer. In Visual Studio it is simple to debug-step into Qt sources: when I enter a function in an unknown file, it will open a file browser to let me locate the original Qt source code. Is there an equivalent function in Xcode or LLDB? 回答1: The debug information records the location of the QT source files when they were built. You can find this information by doing: (lldb) image lookup -va main Address:

Release Application looking for MSVCR110d.dll

谁说我不能喝 提交于 2019-12-30 06:08:39
问题 I've built a c++ application with Visual Studio 2012. I've tried to get it to run on another machine without VS2012 installed but it will not run. It keeps looking for msvcr110d.dll (not msvcr110.dll), I have built the application in release mode, and I have my runtime library set for multi-threaded dll (/MD) (although I have tried all of the options with no avail). I have no idea why this isn't running. The target machine does have the redistributable installed. Any suggestions? 回答1: Make

Release Application looking for MSVCR110d.dll

这一生的挚爱 提交于 2019-12-30 06:08:33
问题 I've built a c++ application with Visual Studio 2012. I've tried to get it to run on another machine without VS2012 installed but it will not run. It keeps looking for msvcr110d.dll (not msvcr110.dll), I have built the application in release mode, and I have my runtime library set for multi-threaded dll (/MD) (although I have tried all of the options with no avail). I have no idea why this isn't running. The target machine does have the redistributable installed. Any suggestions? 回答1: Make

How to check if dataGridView checkBox is checked?

主宰稳场 提交于 2019-12-30 06:06:31
问题 I'm new to programming and C# language. I got stuck, please help. So I have written this code (c# Visual Studio 2012): private void button2_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridView1.Rows) { if (row.Cells[1].Value == true) { // what I want to do } } } And so I get the following error: Operator '==' cannot be applied to operands of type 'object' and 'bool'. 回答1: You should use Convert.ToBoolean() to check if dataGridView checkBox is checked. private void

How to check if dataGridView checkBox is checked?

断了今生、忘了曾经 提交于 2019-12-30 06:04:16
问题 I'm new to programming and C# language. I got stuck, please help. So I have written this code (c# Visual Studio 2012): private void button2_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridView1.Rows) { if (row.Cells[1].Value == true) { // what I want to do } } } And so I get the following error: Operator '==' cannot be applied to operands of type 'object' and 'bool'. 回答1: You should use Convert.ToBoolean() to check if dataGridView checkBox is checked. private void

Move constructors and inheritance

送分小仙女□ 提交于 2019-12-30 05:54:11
问题 I am trying to understand the way move constructors and assignment ops work in C++11 but I'm having problems with delegating to parent classes. The code: class T0 { public: T0() { puts("ctor 0"); } ~T0() { puts("dtor 0"); } T0(T0 const&) { puts("copy 0"); } T0(T0&&) { puts("move 0"); } T0& operator=(T0 const&) { puts("assign 0"); return *this; } T0& operator=(T0&&) { puts("move assign 0"); return *this; } }; class T : public T0 { public: T(): T0() { puts("ctor"); } ~T() { puts("dtor"); } T(T

WCF Proxy Returning Array instead of List EVEN THOUGH Collection Type == Generic.List

China☆狼群 提交于 2019-12-30 04:03:25
问题 I have a VS 2010 solution containing a WCF Library project and another project consuming that web service. After opening in VS 2012, it was upgraded. The proxy now returns List<T> types as arrays, even though CollectionMappings is clearly set to Generic.List. What could be happening? Someone else has a similar problem here but he was downgrading from VS 2012 to VS 2010 instead. Edit: I double checked, and Reference.svcmap contains: <CollectionMappings> <CollectionMapping TypeName="System