visual-studio-2012

Is there any way to mass organise usings in Visual Studio 2012?

梦想与她 提交于 2019-12-19 03:09:31
问题 In Visual Studio 2010 I am aware you could use the PowerCommands extension to Right Click->Project and 'Remove and Sort Usings', I am also aware you can organise usings on a single file basis on the right click context menu. I did find instructions to create a new macro which executed the organise usings command over your entire project to do this, however didn't get far with that - as I believe macros are not supported in Visual Studio 2012. Anyone have any ideas on how to do this en-mass?

How to re-deploy, re-create database on each test run

巧了我就是萌 提交于 2019-12-19 03:01:54
问题 Currently I'm using Visual Studio 2012 RC and SQL Server 2012 RTM. I'd like to know how to re-deploy/re-create a test database for each test run. Keep in mind I've a SQL Server database project for the database using Visual Studio 2012's template. Actually I'm not very sure about an idea I got in my mind, but .testsettings file has Setup and cleanup scripts . Is this the way to go? For example, a PowerShell script reading the database project generated script and executing it against the

Export Visual Studio 2012 to 2010 sln format

人盡茶涼 提交于 2019-12-18 20:09:31
问题 My teacher is complaining that he can't read the VS2012 format on his VS2010 environment. I looked around in settings and so on but couldn't find anything. How can I give the project in an VS2010 readable format to my teacher? 回答1: Assuming this is not a terribly complex project (I'm making that assumption since there is a teacher involved), the easiest approach may be just to re-create the project in Visual Studio 2010. Fire up VS2010, add your files, make any necessary changes to settings,

How to “simulate” C99 in Visual Studio for variables declaration

本秂侑毒 提交于 2019-12-18 19:38:21
问题 I'm using Visual Studio 2012 to develop simple Win32 C programs. I know that the VS compiler only supports C89, but I'd like to know if there is a way to override this limitation. In particular I'd like to declare variables anywhere in my code, instead of only at the beginning of scope blocks (as C89 requires). Thanks in advance. 回答1: The choices I see: stick with MSVC and switch to C++ stick with MSVC and use a precompiler that translates C99 to C90 (Comeau, c99-to-c89) switch to a toolchain

Generate Entity Framework model from Visual Studio database project

余生长醉 提交于 2019-12-18 19:12:47
问题 I'm using EF5 with a Database-First model. And a database project in visual Visual Studio to maintain the Sql Server database schema of an application. To update the EF model, I'm deploying the changes in a empty database... Is it possible to generate and update a EF model from a Visual Studio (2012) database project? UPDATE: Also generate it from a dacpac file is a not too bad option. Is it possible? UPDATE: In the MS Build 2014 Conference, the ADO.NET team suggested that the future releases

Visual Studio 2012 compared to Visual Studio 2010 (delta) [closed]

怎甘沉沦 提交于 2019-12-18 19:03:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is there a resource out there, which lists the delta Visual Studio 2012 <-> Visual Studio 2010 concerning new features etc...especially in the area of C# (not the language itself but the tools, like editor/debugger etc.) ? I have not found one @ MSDN. That would be quite handy during the upgrade to VS 2012 in

Windows Phone 8 Emulator not launching. Error code 0x80131500

只谈情不闲聊 提交于 2019-12-18 18:55:49
问题 I have problem with Visual Studio 2012 (OS: Windows 8.1 Preview) Create empty project (Windows Phone App) Press F5 to start debugging. And I get 0x80131500 error code, with no detailed description. Only this: Deployment of application to device failed. Output: 1>------ Deploy started: Project: PhoneApp1, Configuration: Debug Any CPU ------ 1>Deploying C:\Visual Studio 2012\Projects\PhoneApp1\PhoneApp1\Bin\Debu\PhoneApp2.xap... 1>Connecting to Emulator WVGA 512MB... 1>Deployment of application

Installing Visual Studio 2012 Ultimate on Windows 8

China☆狼群 提交于 2019-12-18 18:49:11
问题 While trying to install the visual studio 2012 ultimate trial on Windows 8 Release Preview I got the following error message The .Net Framework installed on this machine does not meet the minimum required version: 4.5.50709. So I tried installing the required .net framework version, but that gave me the following error Microsoft .NET Framework 4.5 is already a part of this operating system. You do not need to install the .NET Framework 4.5 redistributable. I am running the windows 8 release

Create a directory based on Release/Debug build type in CMake

百般思念 提交于 2019-12-18 18:03:06
问题 I am working on post build, INSTALL command. After I build my project, I build INSTALL project,which copies directories to User Specified location. I have that working fine using install(TARGETS EXECTUABLE RUNTIME DESTINATION CMAKE_INSTALL_PREFIX/ USERSPECIFIEDLOCATION ). I would like to change this to install(TARGETS EXECTUABLE RUNTIME DESTINATION CMAKE_INSTALL_PREFIX/ DEBUG or RELEASE ). So, if I build using debug in VS2012, it should copy executable to CMAKE_INSTALL_PREFIX/ DEBUG instead

JavaScript critical error at line 5, column 9 in (unknown source location)

南笙酒味 提交于 2019-12-18 17:25:20
问题 I am using visual studio 2012 I have this simple html page, not asp.net page : <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test Float</title> <link rel="stylesheet" href="Styles/style.css" /> </head> <body> <div class="header"></div> <div class="slideBar"></div> <div class="content"></div> <div class="footer"></div> </body> </html> I run it on google chrome. it works good. when I debug it on internet explorer. I got this error: Edit For those who think that the