visual-studio-2012

What is this compiler error when using a lambda as a template parameter?

心不动则不痛 提交于 2020-01-01 14:26:38
问题 Edit: This has been reported as a VS2012 C++ compiler bug on Microsoft Connect (link). Nov. 11, 2014: Microsoft has responded saying the fix for this bug should show up in the next major release of Visual C++. I've been struggling with a VS2012 compiler error message I don't understand, so I trimmed down the problem to what seems like the bare minimum. I'm building the following main.cpp using VS2012: #include <utility> template <typename T> struct A { T x; A(A&& other) : x(std::move(other.x)

What is this compiler error when using a lambda as a template parameter?

北战南征 提交于 2020-01-01 14:26:33
问题 Edit: This has been reported as a VS2012 C++ compiler bug on Microsoft Connect (link). Nov. 11, 2014: Microsoft has responded saying the fix for this bug should show up in the next major release of Visual C++. I've been struggling with a VS2012 compiler error message I don't understand, so I trimmed down the problem to what seems like the bare minimum. I'm building the following main.cpp using VS2012: #include <utility> template <typename T> struct A { T x; A(A&& other) : x(std::move(other.x)

Removing ConnectionString when deploying with Visual Studio 2012

北慕城南 提交于 2020-01-01 12:11:18
问题 I'm working on a project with 2 web applications, one being hosted as long running process (with appfabric), the other is just a normal MVC application. They share same datacontext, thus same connectionString. The appfabric application is deployed as a child application of the main, taking advantage of the web.config inheritance (we don't want connectionstring to be duplicated in web config) My problem is that with the new Visual Studio 2012 wizard for publishing, the connectionString are

How to Detect if Visual Studio IDE is closing using VSPackage?

半腔热情 提交于 2020-01-01 11:47:11
问题 I'm writing a VS Package where I need to store the time when the user start my package, and when the user close the Visual Studio. The problem is, I don't know how to get the closing event for the Visual Studio. Can anyone give me any information about how to detect if the VS is closing? Note: When I search from the internet, I got the following similar problem to mine: How do you cancel a ToolWindowPane or Visual Studio IDE close operation via a VSPackage?, but when I try it, this solution

WP 8: How to deploy/export Application from Visual Studio

感情迁移 提交于 2020-01-01 10:13:43
问题 in android, we right click to our project, click export and get the apk. For windows phone 8 , in visual studio 2012, how can i export my application into my desktop or somewhere ? Anyone can help about it ? Thanks ! 回答1: Each time when you build you project - Visual Studio builds XAP file, which is actual package for uploading it to Windows Phone Store or deploying to the real device. This may help Submit your app 回答2: For Windows Phone you get a XAP file instead of an APK file. The XAP in

Application.exe is not a valid Win32 application error

允我心安 提交于 2020-01-01 09:12:04
问题 I have written a Console application that client is trying to run it on their Windows Server 2003 R2 machine machine and they get that error message. If I go to Build -> Configuration Manager all my projects are set to Platform of "Any CPU" and Configuration of "Release" What else I might have missed? They don't want to actually run the console application by double clicking on it, they want to give it to the Windows schedules tasks so it can pick it up and rn it on certain times 回答1:

Application.exe is not a valid Win32 application error

限于喜欢 提交于 2020-01-01 09:11:27
问题 I have written a Console application that client is trying to run it on their Windows Server 2003 R2 machine machine and they get that error message. If I go to Build -> Configuration Manager all my projects are set to Platform of "Any CPU" and Configuration of "Release" What else I might have missed? They don't want to actually run the console application by double clicking on it, they want to give it to the Windows schedules tasks so it can pick it up and rn it on certain times 回答1:

How to mock/isolate internal classes in VS 2012 with Fakes Framework shims?

情到浓时终转凉″ 提交于 2020-01-01 08:51:53
问题 So, the issue is that I have a bunch of internal classes in my assembly that are used by the class I want to test. Since accessors have been removed from VS2012, I'm fine with using [InternalsVisibleTo] and that works great... except when I try to shimify my internal classes, they are not visible to the Fakes framework. I should also note that the particular class I am dealing with is a static class with static methods, and I don't really want to refactor everything to use interfaces (and

How to mock/isolate internal classes in VS 2012 with Fakes Framework shims?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 08:51:15
问题 So, the issue is that I have a bunch of internal classes in my assembly that are used by the class I want to test. Since accessors have been removed from VS2012, I'm fine with using [InternalsVisibleTo] and that works great... except when I try to shimify my internal classes, they are not visible to the Fakes framework. I should also note that the particular class I am dealing with is a static class with static methods, and I don't really want to refactor everything to use interfaces (and

Visual Studio 2012 RC breaks on exceptions from within the .NET Framework. How do I make it break on exceptions only in my code?

99封情书 提交于 2020-01-01 08:48:27
问题 When debugging using Visual Studio 2012 RC with break on exception turned on, Visual Studio breaks on exceptions from within the .NET Framework. How do I make it break on exceptions only in my code? When debugging a ASP.NET MVC 4 project there are a lot of framework exceptions thrown on every page hit. The following exception happens a lot: System.Globalization.CultureNotFoundException occurred HResult=-2147024809 Message=Culture is not supported. Parameter name: name UserCache is an invalid