visual-studio-2012

Add-In events are never executed

家住魔仙堡 提交于 2019-12-20 09:58:22
问题 I used the "Add-In for Visual Studio" wizard to create a new Addin project and now, I'm trying to add some event handlers: public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) { _applicationObject = (DTE2)application; _addInInstance = (AddIn)addInInst; _applicationObject.Events.BuildEvents.OnBuildBegin += BuildEvents_OnBuildBegin; _applicationObject.Events.BuildEvents.OnBuildDone += BuildEvents_OnBuildDone; _applicationObject.Events

Update Private Gallery atom such that VS shows that an extension update is available

六月ゝ 毕业季﹏ 提交于 2019-12-20 09:55:47
问题 I'm using a Visual Studio Private Gallery to publish a VSIX internal to my company. My VSIX shows up in the "Online" section of "Extensions and Updates" in Visual Studio 2012 and I can install it from there: However, once it's installed, I can't figure out how to update my extension in a way that makes it show up in the "Updates" section of that same dialog box, nor can I figure out how to make Visual Studio notify me that an update is available. I've tried various combinations of the

Could not find ildasm.exe at location C:\Program Files (x86)\Microsoft visual studio 11.0

人盡茶涼 提交于 2019-12-20 09:51:42
问题 How does the Developer command prompt for Visual studio 2012 search the location of ildasm.exe. Running command window Developer command prompt for Visual studio 2012 will point to location C:\Program Files (x86)\Microsoft visual studio 11.0 but at this location ildasm.exe couldn't be found. In fact input to command window, ildasm.exe will open the ildasm tool. Can any one clarify how does Developer command prompt for Visual studio 2012 locate the physical ildasm.exe. 回答1: When you start

Could not find ildasm.exe at location C:\Program Files (x86)\Microsoft visual studio 11.0

风流意气都作罢 提交于 2019-12-20 09:50:06
问题 How does the Developer command prompt for Visual studio 2012 search the location of ildasm.exe. Running command window Developer command prompt for Visual studio 2012 will point to location C:\Program Files (x86)\Microsoft visual studio 11.0 but at this location ildasm.exe couldn't be found. In fact input to command window, ildasm.exe will open the ildasm tool. Can any one clarify how does Developer command prompt for Visual studio 2012 locate the physical ildasm.exe. 回答1: When you start

Jasmine in a separate test project

拈花ヽ惹草 提交于 2019-12-20 09:47:52
问题 Is it practical/possible to separate jasmine tests into a separate visual studio project? I am just getting started with angular, and am trying to write my tests before I start on the actual angular implementation. I will be writing my project in Visual Studio 2012 with the Chutzpah test runner , see this video. Currently, I am trying to figure out how to organize my folder structure. I know about angular-seed and yeoman, but those are ill suited to starting a .net project. I am assuming that

“C:\Microsoft.Cpp.Default.props” was not found

时光毁灭记忆、已成空白 提交于 2019-12-20 09:39:13
问题 I have a project created in Visual Studio, 2013. The project file has the following properties: ToolsVersion="12.0", PlatformToolset = v120. I have Visual Studio 2013 and Microsoft Build Tools 2015 installed. This project gets successfully built using MSBuild 12.0. Upon the attempt to build it with MSBuild 14.0 I get an error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on

How can I make VS break on exceptions in an async Task, without breaking on all exceptions?

霸气de小男生 提交于 2019-12-20 09:29:02
问题 As indicated here and here, exceptions occuring in an async Task are technically not unhandled. This is particularly nasty when working with MVC. It actually took us a while to figure out why it was occurring more and more that exceptions weren't being caught, we had been gradually introducing Web API calls to our aplication the past few weeks. public async Task<ActionResult> Foo() { // ... } The suggested workaround is to make VS break on all exceptions instead of only unhandled exceptions.

How to disable the indentation dotted line in VS 2010

丶灬走出姿态 提交于 2019-12-20 09:07:26
问题 see these dotted lines there on every indent... How do I turn it off? I must have accidentally hit some keyboard shortcut but I can't find this anywhere in the settings. Sorry, this is a really dumb question, but these lines really bother me and I didn't know where else to turn :) 回答1: Toggle it on/off with: Edit > Advanced > View white space The default hotkey is usually ctrl+E,S (I think this is for General or C# developer settings) If you use Resharper, you may find you need to use ctrl+R

MVC 4 Intranet Authentication with Custom Roles

老子叫甜甜 提交于 2019-12-20 09:01:54
问题 I have spent some time searching and found a lot of confusing answers, so I will post here for clarification. I am using MVC4 VS2012 created an Intranet site using domain authentication. Everything works. However, to manage the users that have access to different areas of this webapp I prefer not to use AD groups that I cannot manage and nor can the users of the webapp. Is there an alternative? I assume this would involve associating/storing domain names belonging to custom roles and using

Using VSTest to run unit test cases instead of MSTest

天涯浪子 提交于 2019-12-20 08:50:15
问题 I have an x64 platform C# solution(VS2012) on a TFS2010 server. I have attached a unit test project (also x64) to this solution and created a build definition. When I queue the build, it succeeds but the unit test cases will not be executed. This is because MSTest is a 32 bit application. So, I decided to customize the default build process template (DefaultTemplate.xaml) to invoke VSTest(VSTest.console.exe) instead of MSTest. This is quite complex and I am unable to add a build activity to