visual-studio-2012

TypeScript error Web essential

删除回忆录丶 提交于 2019-12-23 09:05:44
问题 I use Web essentials to compile my typescript files on save (Visual Studio 2012), but i got an empty js and this message : Compile Error. See error list for details error TS5012: Cannot read file 'C:/Users/Nor/Documents/Tribway/tribway-InvitationPage/Tribway/Scripts/Tribway/Invitations.ts': Unsupported file encoding. 回答1: File encoding was an issue with TS 0.9.0 Fixed in the latest version. You can download 0.9.1 from here : https://typescript.codeplex.com/releases/view/102929 PS: I recommend

VS2012 Unit Tests: How to change the location of the TestResults folder

北城以北 提交于 2019-12-23 09:03:50
问题 I have all my Unit Test project in a folder under my Solution Folder and would like to have the TestResults folder in the same folder as the Test projects instead in the solution directory. I have found that this could be done via the test seeting file: How to specify the location for the unit test results in VS 2010? but I also read, that with VS2012 you should no longer use tests settings files. Actually VS2012 does not create one. Is there another way? 回答1: You can create a small

How to prevent loops in JavaScript that crash the browser or Apps?

独自空忆成欢 提交于 2019-12-23 09:02:40
问题 I am creating a live editor in Windows 8.1 App using JavaScript. Almost done with that, but the problem is whenever I run such bad loops or functions then it automatically hangs or exits. I test it with a loop such as:( It just a example-user may write its loop in its own way..) for(i=0;i<=50000;i++) { for(j=0;j<5000;j++){ $('body').append('hey I am a bug<br>'); } } I know that this is a worst condition for any app or browser to handle that kind of loop. So here I want that if user uses such

How to programmatically run unit tests with Gallio and MBUnit?

好久不见. 提交于 2019-12-23 09:00:16
问题 I'm trying to programmatically check my unit tests are passing as part of my deployment process. The application uses MBunit and Gallio for it's unit testing framework. Here's my code: var setup = new Gallio.Runtime.RuntimeSetup(); setup.AddPluginDirectory(@"C:\Program Files\Gallio\bin"); using (TextWriter tw = new StreamWriter(logFilename)) { var logger = new Gallio.Runtime.Logging.TextLogger(tw); RuntimeBootstrap.Initialize(setup, logger); TestLauncher launcher = new TestLauncher();

VS2012 ProjectTypeGuids Lost when opening after installing ASP.NET and Web Tools 2013.1

為{幸葍}努か 提交于 2019-12-23 08:58:40
问题 I've installed the "ASP.NET and Web Tools 2013.1" in my Visual Studio 2012. I have a solution which has an ASP.NET MVC 4 project with the following project type guids: <ProjectTypeGuids> {E3E379DF-F4C6-4180-9B81-6769533ABE47}; {349c5851-65df-11da-9384-00065b846f21}; {fae04ec0-301f-11d3-bf4b-00c04f79efbc} </ProjectTypeGuids> These Guids are for: ASP.NET MVC 4.0 Web Application Windows (C#) This is the usual configuration when you create a new ASP.NET 4.0 project. And it works fine. The problem

VS2012 Error when creating publish package: Exception in Executing Publishing Access to path is denied

僤鯓⒐⒋嵵緔 提交于 2019-12-23 08:47:04
问题 I am trying to publish an application with VS2012 and when i try and make the package i get an error that access to the path is denied. I have checked and my user has full control and verified the path. VS is trying to access .pubmxl file that is there. I have also tried running VS2012 as administrator. 回答1: I had this same issue (VS2012: Access to path is denied when executing publish) and found a way to allow Visual Studio access to the file. If you open the pubxml file in Visual Studio,

How to preserve non-nullable setting in edmx when refreshing model?

不打扰是莪最后的温柔 提交于 2019-12-23 08:46:23
问题 I have a project that I recently migrated from VS2010 to VS2012. It contains an EF4.1 edmx file containing my entities. A few of these entities are based on views and are read-only. Although some columns returned by the views are nullable, I have changed the return value of these columns in the view to ensure that they do not return null by using ISNULL(NumericColumnName, 0) AS NumericValueColumn When updating the model via the "Update Model From Database" function in VS2010, the columns that

DialogPage - string array not persisted

只谈情不闲聊 提交于 2019-12-23 08:39:58
问题 I'm developing an extension for visual studio. There I have an option page: public class GeneralOptionsPage : DialogPage { [Category("General")] [DisplayName("Foos")] [Description("Bla Foo Bla")] public string[] Foos { get; set; } [Category("General")] [DisplayName("Bar")] [Description("Bar Foo Bar")] public string Bar { get; set; } } The Bar property works perfectly and is persisted. The Foos Property does also work (it even gives you a nice popup in the options page where you can enter one

DialogPage - string array not persisted

匆匆过客 提交于 2019-12-23 08:39:08
问题 I'm developing an extension for visual studio. There I have an option page: public class GeneralOptionsPage : DialogPage { [Category("General")] [DisplayName("Foos")] [Description("Bla Foo Bla")] public string[] Foos { get; set; } [Category("General")] [DisplayName("Bar")] [Description("Bar Foo Bar")] public string Bar { get; set; } } The Bar property works perfectly and is persisted. The Foos Property does also work (it even gives you a nice popup in the options page where you can enter one

Target .NET 4.0 but .NET 4.5 is required

吃可爱长大的小学妹 提交于 2019-12-23 08:27:13
问题 We recently moved to VS 2012, but we are required to keep on using .NET 4.0. A large part of our customer base is still using XP and .NET 4.5 is not supported on Windows XP. Now, all projects in the solution are targeting .NET 4.0 or lower. When we run the application it tells us to install the .NET 4.5 Framework, while only the .NET 4.0 is used? In the generated config file I see: <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> </startup> If I change Version=v4