visual-studio-2012

Cannot add a MVC controller VS2012 gives “object reference not set to an instance of an object”

烈酒焚心 提交于 2020-01-01 04:07:48
问题 I have searched extensively and cannot find another person on the planet with this problem... The symptoms are: In Visual Studio 2012, on a MVC 4.0 Project that was upgraded from VS2010 and is configured for dual version editing from VS2012 and VS2010. When I right-click on the Controllers Folder and select Add->Controller... from the context menu, I get an "Object reference not set to an instance of an object" error from Visual Studio. The existing code in the project runs fine, and if I use

Cannot add a MVC controller VS2012 gives “object reference not set to an instance of an object”

北城余情 提交于 2020-01-01 04:07:08
问题 I have searched extensively and cannot find another person on the planet with this problem... The symptoms are: In Visual Studio 2012, on a MVC 4.0 Project that was upgraded from VS2010 and is configured for dual version editing from VS2012 and VS2010. When I right-click on the Controllers Folder and select Add->Controller... from the context menu, I get an "Object reference not set to an instance of an object" error from Visual Studio. The existing code in the project runs fine, and if I use

How can I create new applicationhost.config file in IIS Express Server?

徘徊边缘 提交于 2020-01-01 03:55:07
问题 I had to delete my applicationhost.config, because VS 1012 didn't deal with it. How can I create it? thank you. 回答1: Just run IISExpress and it will recreate the file for you. The exe is located at: "c:\Program Files\IIS Express\iisexpress.exe". Hope this helps. 回答2: After you deleted applicationhost.config you do not need to run iisexpress.exe manually, you can simply load your project in Visual Studio and run it. Visual Studio will take care of that plus it will change applicationhost

Visual Studio 2012 - Find Circular References Efficiently

ⅰ亾dé卋堺 提交于 2020-01-01 02:53:10
问题 Currently if I want to check for circular references inside a solution I select Architecture - Generate Dependency Graph - For Solution . Then from the new tab that opens I select Layout - Analyzers - Circular References Analyzer . Finally if I drill down from the individual assemblies and there are circular references I can see them highlighted in red on the graph and they also appear as warnings in the Error List. Since I intend to spot circular references even between methods of the same

TFS 2012 - How can I tell if a changeset was code-reviewed?

时间秒杀一切 提交于 2020-01-01 02:07:22
问题 We recently started using Team Foundation Server 2012 and are using the code-review feature to have other developers review code changes. It seems to work great; however, as a project lead I would like to be able to see that a given changeset has been reviewed by someone else. For example, say Developer Bob makes changes and requests a review on those changes. This generates a shelveset for the changes and creates a code-review work item for the requested review. Developer Alice reviews the

ReSharper intellisense does not display documentation

你。 提交于 2020-01-01 01:29:12
问题 Any idea why I'm not getting any documentation to go along with my ReSharper IntelliSense? If I go to the ReSharper options and enable the Visual Studio IntelliSense instead, I get the proper documentation when going through the members in the IntelliSense pop up. If I re-enable the ReSharper IntelliSense, I now get the ReSharper IntelliSense pop up sans documentation. 回答1: Go to ReSharper | Options -> Environment | IntelliSense | Completion Appearance . Check Show member signatures and Show

MSTest.exe (VS2012) crashes QTAgent32.exe

删除回忆录丶 提交于 2019-12-31 22:34:14
问题 i am trying to execute our tests via cmdline. I use VS2012, but i always get this error: When i run the tests directly in VS2010 on the same machine they run fine. I can't use VS2010 for cmdline because we have the wrong license ( assembly finding doesn't work ) so i have to use 2012. All Windows updates are present. Has somebody had similar issues with MSTest/VS2012 ? 回答1: If you want to keep VS 2012 update 2, 3, or 4 installed, you can try the below workaround: Run the below commands in the

.NET 4.5.1 Preview Support in Visual Studio 2012

若如初见. 提交于 2019-12-31 22:28:10
问题 First let me add some context to error I get, I have installed .NET 4.5.1 Preview and first thing that I noticed in VS 2012 is that .NET 4.5.1 isn't listed in available frameworks. I'm not sure if this is correct behavior because this is just an upgrade to 4.5 so I guess VS 2012 should list it. Further more when I installed a VS 2013 Preview, upgraded my project to .NET 4.5.1 and opened the solution in VS 2012 new .NET version reappeared so I'm not sure if this is a bug in VS 2012 or not ? Ok

Zip files after build completes in Visual Studio

旧巷老猫 提交于 2019-12-31 21:42:34
问题 I have a requirement where I need to zip some files after I build a solution file. Could this be achieved automatically once I build my project in Release/Debug mode. 回答1: Usually I don't put stuff like creating zip files, installers, NuGet packages etc. into my actual project. Why? Because when I put it there, it gets executed each time I'm building the project in Visual Studio, for example when I'm debugging. But zip files, installers etc. are only needed when I do a release , so I don't

Visual Studio 2008/2010 on Windows 8 - problems?

跟風遠走 提交于 2019-12-31 21:31:46
问题 I am looking for any information that can be provided regarding problems with the use of Visual Studio 2008 and 2010 on Windows 8 (x64). I have been able find the following article that identifies the acknowledged problems for VS2010 on W8, but I cannot find any similar articles for VS2008. Specifically, I use VS2008 for mobile development so I cannot simply upgrade the projects to 2010/2012 (yet) but I do also have some web application projects and there may even be a couple of console and