visual-studio-2012

CSS region not working in Visual Studio 2012

删除回忆录丶 提交于 2019-12-22 03:25:24
问题 I have the following in my css file but css region doesn't work. There's no collapse or expand icon to click on. But the C# region is working, just css region isn't. /*#region shared styles */ .blah { background-color: red; } .foo { line-height: 1.2em; } /*endregion */ 回答1: Your missing the '#' between the '*' and 'endregion' try /*#region shared styles */ .blah { background-color: red; } .foo { line-height: 1.2em; } /*#endregion */ 回答2: Not sure why, but after doing this, it works now: type

CSS region not working in Visual Studio 2012

我们两清 提交于 2019-12-22 03:25:24
问题 I have the following in my css file but css region doesn't work. There's no collapse or expand icon to click on. But the C# region is working, just css region isn't. /*#region shared styles */ .blah { background-color: red; } .foo { line-height: 1.2em; } /*endregion */ 回答1: Your missing the '#' between the '*' and 'endregion' try /*#region shared styles */ .blah { background-color: red; } .foo { line-height: 1.2em; } /*#endregion */ 回答2: Not sure why, but after doing this, it works now: type

Visual Studio 2012 debug tests keyboard shortcut

帅比萌擦擦* 提交于 2019-12-22 03:24:09
问题 In Visual Studio 2010 there were keyboard shortcuts to debug all tests, debug tests in context and more. For reference, in VS 2010 the chords were: Debug: All Tests in Solution: Ctrl + R , Ctrl + A Debug: All tests in context: Ctrl + R , Ctrl + T VS2010 also had keyboard commands to just Run All Tests In VS 2012 I found the keyboard command for run all tests, Ctrl + R , A but can't find a keyboard command for debug all tests, which I found to be a really useful command. Am I being dense and

Writing or Copying Visual C++ console output to text file

我与影子孤独终老i 提交于 2019-12-22 03:22:22
问题 I am working with Intel Perceptual Computing SDK Voice Recognition Module. Using Microsoft Visual Studio 2012 Professional, the SDK sample perceives the dictation and after processing the voice input prints it on the console window. All i want to do is to copy the output printed on console window and write it in a .txt file. I am following the general way but somehow the text written in file is just some numbers. // Callback for recognized commands and alerts class MyHandler: public

Getting the CurrentUserID from Websecurity directly after login (C#/ASP.NET)

时间秒杀一切 提交于 2019-12-22 03:17:29
问题 I have this website (C#/ASP.NET) with a form where the user can register for an account (it is the default template of VS11) and after everything is filled in and the user clicks to register, it creates the account and logs in the user (which works great). After this step I want to get the UserID which he was assigned, but it doesn't work. I've put a breakpoint there to see the values of both "currentuserid" and "WebSecurity.CurrentUserId" but they only have a -1 value. Next step is the user

Keeping web application attached to IIS Express in Visual Studio 2013

人走茶凉 提交于 2019-12-22 02:28:27
问题 In Visual Studio 2012, if I stopped debugging, the web application would remain attached to IIS Express, such that I could continue loading pages in the browser without having to restart debugging. This worked really well for me in conjunction with .NET Demon, as my application would rebuild after every change and I could just jump over to the browser to check the changes instantly. After upgrading to Visual Studio 2013, this behavior no longer exists. When you stop debugging, the application

Visual Studio wants to build with wrong platform toolset

十年热恋 提交于 2019-12-22 02:04:20
问题 I have upgraded a solution from VS2010 to VS2012. I did that with other solutions, and it worked fine. But now when I tried to build the updated solution, the compiler tells me: Error 1596 error MSB8020: The builds tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install Visual Studio 2010 to build using the Visual Studio 2010

How can I see the strong name of my assembly?

折月煮酒 提交于 2019-12-22 02:00:04
问题 I have a project, and I created a strong name key file for it. How can I tell what the strong name of my assembly is? It seems this should be obvious, but I can't find any reference to it. 回答1: You can get the Fully Qualified Name by using a tool like Reflector or ILSpy. Select the assembly and it should be in top of it. For XNA in ILSpy : // C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.dll // Microsoft.Xna.Framework, Version=4.0.0.0

Visual Studio native unit testing: Debug/console output?

烈酒焚心 提交于 2019-12-22 01:39:45
问题 Can anyone tell me how to enable or get debug or console text output when running unit tests in a native (C++) test project in Visual Studio 2012? Answer should not include the phrase, "use Google Test". 回答1: In the unit test code, you can use Logger::WriteMessage("My message string"); and the message will appear in the Output window. 回答2: Brian's answer is correct. Use Logger::WriteMessage("some text"); and run the test normally (there is no need to debug). However, you also need to select

NuGet Package Manager Console Default Project dropdown is empty

偶尔善良 提交于 2019-12-22 01:33:07
问题 I recently upgraded to Visual Studio 2012 RTM Ultimate from MSDN. I'm using EF Code First Migrations to build my database in my app, and I recently added a new entity and want to scaffold the migration for it. To do this, you need to open the Package Manage Console window in VS, and type add-migration "some name here" . This will scaffold any changes to your database since the last time it was updated. The Problem This issue did not occur on VS 2012 RC The problem I'm encountering is the