visual-studio-2012

How do I insert ‘\’+‘n’ using regex replacement in MSVS 2012+ editor (and .NET?)

China☆狼群 提交于 2020-01-03 20:30:10
问题 In the editor of Visual Studio 2013, which I understand is very similar to 2012 and allegedly uses .NET regexes, I cannot get the replacement string to insert a backslash and an ‘ n ’ — is that even possible? I wish to insert ‘ \n ’ after the first ‘ " ’ on some (but not all) lines of a C programme, i.e. make the string literals start with a new line. Obviously the expression to find is ‘ ^([^"]*)" ’, and the replacement is … what? ‘ $1" ’ + magic + ‘ n ’, where magic is whatever inserts a

Resharper 7 on VS2012 ignores assembly redirect in app.config

左心房为你撑大大i 提交于 2020-01-03 19:33:11
问题 We use moq and AutoMoq with mstest, and since upgrading to VS2012 and ReSharper 7, we the tests run fine with mstest, but fail when using the R# unit test runner with: Test method [...] threw exception: System.IO.FileLoadException: Could not load file or assembly 'Moq, Version=3.1.416.3, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) AutoMoq is

Why VS2012 project with referenced assembly can't target 4.0 automatically

纵饮孤独 提交于 2020-01-03 17:35:53
问题 In a Visual Studio 2012 C# console application, I downgrade ".NET Framework Target" from 4.5 to 4.0. Win 7 Pro with both Frameworks installed. I then reference an assembly, which, through warnings complains the following: The primary reference "System.Threading.Tasks.Dataflow, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime, Version=4.0.0.0,

AWS Toolkit for .NET won't open in Visual Studio

半腔热情 提交于 2020-01-03 17:12:44
问题 I downloaded the AWS Tookkit for .NET a couple weeks ago and it was working fine. http://aws.amazon.com/visualstudio/ For the last couple of days, I have not been able to open it in either Visual Studio 2010 or Visual Studio 2012. I have already uninstalled it, rebooted, and re-installed (multiple times) I can choose it from the View menu, but when I select it, nothing happens. I'm just looking for some direction to see what I can do to resolve this. 回答1: I figured it out. I had to uninstall

Crystal Reports 8 for Visual Studio 2013

点点圈 提交于 2020-01-03 17:08:21
问题 Is there any way we can run the Crystal Reports 8 on Visual Studio 2013. I have a Vb.Net Project which was built using VS2008 + Crystal Reports 8. Now I am running Visual Studio 2013 Community Edition. but the project is not opening is because of Crystal Report References. I know there won't be any! for that ancient Crystal Report version but trying for a luck? Is it possible? 回答1: To integrate Crystal Reports development int Visual Studio 2013 you must use "SAP Crystal Reports, developer

Win8: Registration of the app in the layout folder … failed

懵懂的女人 提交于 2020-01-03 14:13:08
问题 Noob warning. I'm really new to Windows dev tools. I've got the latest Win8 RC installed, and got VS 2012 RC for it as well. Now I'm trying to create a Metro-style application (C#), but running into problems when executing tests from VS. The error message is: Error : DEP0700 : Registration of the app in the layout folder "C:\<FOLDER>" failed. error 0x80070005: Failed to set access rights to \\?\C:\<FOLDER> Failed to activate Metro style unit test executor. Error : The parameter is incorrect.

Visual Studio 2012 - C#: Reading a '.txt' File From Resources

≡放荡痞女 提交于 2020-01-03 13:39:31
问题 I am trying to access and read a text file, 'achInfo.txt' from my resources in Visual Studio. Some workarounds have already been listed on this site, but none of them seem to work for me. They just give me one of two errors, which I will explain later on. Here's the entire method so far. private string[] GetAchMetadata(short element) { string[] temp = { "", "" }; string cLine; try { StreamReader sr = new StreamReader(Properties.Resources.achInfo); while (!sr.EndOfStream) { cLine = sr.ReadLine

Visual Studio 2012 - C#: Reading a '.txt' File From Resources

。_饼干妹妹 提交于 2020-01-03 13:39:08
问题 I am trying to access and read a text file, 'achInfo.txt' from my resources in Visual Studio. Some workarounds have already been listed on this site, but none of them seem to work for me. They just give me one of two errors, which I will explain later on. Here's the entire method so far. private string[] GetAchMetadata(short element) { string[] temp = { "", "" }; string cLine; try { StreamReader sr = new StreamReader(Properties.Resources.achInfo); while (!sr.EndOfStream) { cLine = sr.ReadLine

In Visual Studio 2012, I get warnings and squiggly lines when trying to write JSX with React JS

梦想与她 提交于 2020-01-03 11:02:21
问题 I am using a separate javascript file to put my React JS JSX in. When I use the example given by the documents, I get tons of Visual Studio warnings and ugly squiggly lines.. I cannot figure out a way around this.. Pretty much a deal breaker for React JS. 回答1: Visual Studio 2012 was released before ReactJs, so you can't really blame them for not supporting it. There is some visual studio stuff here: http://reactjs.net/ You can see support for tooling being asked here: https://github.com

Difference between Web Application & Web Forms Application in VS2012

自闭症网瘾萝莉.ら 提交于 2020-01-03 09:28:07
问题 What is the difference between Web Application & Web Forms Application in Visual Studio 2012? 回答1: The clue is in the word 'Empty'. The first (highlighted in your image) option is a blank project. Subsequent options set up a Web Forms, MVC3 or MVC4 project with appropriate directory structure and a default set of pages and supporting code. 来源: https://stackoverflow.com/questions/14184490/difference-between-web-application-web-forms-application-in-vs2012