visual-studio-2012

What is the name of the ReSharper's Quick Fix command

断了今生、忘了曾经 提交于 2019-12-21 07:52:46
问题 I want to reassign the Alt-Enter keystroke (for the light bulb suggestions) to another key but I can't find it in the Options->Keyboard list. All the ReSharper commands seem to have ReSharper_ in the name. but I can't figure out what name they used for the quick fixes. 回答1: Resharper 8 seems to have renamed this to Resharper_AltEnter. 回答2: I found it under the ReSharper_QuickFix , as you'd expected. (VS 2012) See alse https://stackoverflow.com/a/1596353/1679310 来源: https://stackoverflow.com

What is the name of the ReSharper's Quick Fix command

允我心安 提交于 2019-12-21 07:51:30
问题 I want to reassign the Alt-Enter keystroke (for the light bulb suggestions) to another key but I can't find it in the Options->Keyboard list. All the ReSharper commands seem to have ReSharper_ in the name. but I can't figure out what name they used for the quick fixes. 回答1: Resharper 8 seems to have renamed this to Resharper_AltEnter. 回答2: I found it under the ReSharper_QuickFix , as you'd expected. (VS 2012) See alse https://stackoverflow.com/a/1596353/1679310 来源: https://stackoverflow.com

“@Model”, “@Viewbag” and “@Url” “does not exist in the current context” Razor MVC3 when using Visual Studio 11 Beta/Visual Studio 2012 RC

南笙酒味 提交于 2019-12-21 07:43:37
问题 I've created an MVC3 application in Visual Studio 10. When editing views the "@Model", "@Viewbag" and "@Url" all appear valid. I recently installed Visual Studio 11 Beta and when editing (or creating) views I get "x does not exist in current context" error for the above keywords and obviously no intelli-sense. I have since installed Visual Studio 2012 RC hoping it was just a Visual Studio 11 Beta issue.... it wasn't. Since running it in Visual Studio 2012 RC I've noticed the "@Html" key word

Visual Studio : The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory

偶尔善良 提交于 2019-12-21 07:41:43
问题 I have installed Xamarin plugin for Visual Studio 2012. And when create an Android Project and build the same. I am getting the following error. Error 1 The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory. AndroidApplication1 I think this error is due to some mapping. Kindly guide to resolve this issue. Thanks in advance. 回答1: You can solve this by editing the build definition in the VS 2012. Right click on the Build Definition and Edit Build Definition Goto

Visual Studio : The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory

ε祈祈猫儿з 提交于 2019-12-21 07:41:35
问题 I have installed Xamarin plugin for Visual Studio 2012. And when create an Android Project and build the same. I am getting the following error. Error 1 The Android SDK Directory could not be found. Please set via /p:AndroidSdkDirectory. AndroidApplication1 I think this error is due to some mapping. Kindly guide to resolve this issue. Thanks in advance. 回答1: You can solve this by editing the build definition in the VS 2012. Right click on the Build Definition and Edit Build Definition Goto

What installer options are there for Visual Studio 2012 Express for Desktop

回眸只為那壹抹淺笑 提交于 2019-12-21 07:25:08
问题 So Microsoft released Visual Studio 2012 Express for desktop apps. That's great, but how does one create an installer for open source apps that are built in Visual Studio Express? There are no installer templates available by default, and they have disabled browsing the online gallery. Sure, I could purchase something like InstallShield, but that kind of defeats the purpose of an open source application if you ask me. Any suggestions? 回答1: You can use the open source NSIS or WiX tools to

MSTest - How do I initialize log4net for a UnitTest project?

佐手、 提交于 2019-12-21 07:21:22
问题 I have a Visual Studio unit test project for testing an ASP.NET MVC project. Adding the assembly-level log4net.Config.XmlConfigurator attribute to AssemblyInfo.cs doesn't work and other people on SO have found they have to use a direct call to log4net.Config.XmlConfigurator.Configure(); The question is, how can this be done for a unit test? The answer to use Microsoft.VisualStudio.TestTools.UnitTesting.AssemblyInitialize attribute on a class method doesn't work. For me, this code results in

MSTest - How do I initialize log4net for a UnitTest project?

早过忘川 提交于 2019-12-21 07:21:06
问题 I have a Visual Studio unit test project for testing an ASP.NET MVC project. Adding the assembly-level log4net.Config.XmlConfigurator attribute to AssemblyInfo.cs doesn't work and other people on SO have found they have to use a direct call to log4net.Config.XmlConfigurator.Configure(); The question is, how can this be done for a unit test? The answer to use Microsoft.VisualStudio.TestTools.UnitTesting.AssemblyInitialize attribute on a class method doesn't work. For me, this code results in

How do I kick off an entity stored procedure in EF6 async and not wait for a return?

安稳与你 提交于 2019-12-21 07:11:59
问题 I'd like to just punt a call over to the SQL Server and not wait for a return. I have an imported Entity Function from a Stored Procedure that I'd like to call asynchronously this way in Entity Framework 6.0.0-rc1. Is this possible? What's the syntax? Entity Function: RecalculateBudgetNumbers(int id) 回答1: Start a new Task that creates a fresh data context and invokes that function. Just don't wait/await that task. Let it run by itself to completion. Make sure to log errors. Don't swallow

Anything new in .Net 4.5 to process better JSON? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 07:05:04
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Is there anything new about JSON handling in .NET 4.5 and VS2012 that would be better than DataContractJsonSerializer? I have seen