visual-studio-2015

regex works very slow

风格不统一 提交于 2020-01-16 03:24:47
问题 I have lots of files less than 64 kb and I need to convert them with code below. Here is working code in QT with QRegExp . I tried to rewrite it in MSVC with regex_replace and faced with the problem of very slow work. QT: temp.replace(QRegExp("[ ]{0,}(=)[ ]{0,}"), QString("=")); temp.replace(QRegExp("[ ]{0,}(==)[ ]{0,}"), QString("==")); temp.replace(QRegExp("[ ]{0,}(>)[ ]{0,}"), QString(">")); temp.replace(QRegExp("[ ]{0,}(<)[ ]{0,}"), QString("<")); temp.replace(QRegExp("[ ]{0,}(\\&\\&)[ ]

Connect to TFS programmatically from vs 2017

﹥>﹥吖頭↗ 提交于 2020-01-15 11:55:07
问题 I am using TFS 15.x. package . Error: Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: 'TF30063: You are not authorized to access "https://myproject.visualstudio.com/RpaCodeReview' Uri Repurl = new Uri("https://myproject.visualstudio.com/RpaCodeReview"); NetworkCredential netCred = new NetworkCredential(username, password); VssBasicCredential basicCred = new VssBasicCredential(netCred); VssCredentials tfsCred = new VssCredentials(basicCred); TfsTeamProjectCollection tpc =

The event 'foo' is not a RoutedEvent

我的梦境 提交于 2020-01-15 10:15:18
问题 I tried making a Routed Event in a user control of an existing project and I'm getting the error message The event 'foo' is not a RoutedEvent. To make sure I wasn't crazy, I made an example project with just the offending code (a Minimal, Complete, and Verifiable example"). Only I don't get any error message in my example project. But it's the exact same code! Does anyone have any ideas what's going on? Even with the error message, the project compiles and the RoutedEvent works! I tried

The event 'foo' is not a RoutedEvent

偶尔善良 提交于 2020-01-15 10:15:12
问题 I tried making a Routed Event in a user control of an existing project and I'm getting the error message The event 'foo' is not a RoutedEvent. To make sure I wasn't crazy, I made an example project with just the offending code (a Minimal, Complete, and Verifiable example"). Only I don't get any error message in my example project. But it's the exact same code! Does anyone have any ideas what's going on? Even with the error message, the project compiles and the RoutedEvent works! I tried

Does DbFunctions.TruncateTime behave differently in different server time zones?

老子叫甜甜 提交于 2020-01-15 08:22:08
问题 I'm not sure that my question Title is perfect - so please allow me to explain a little further. Here's a snapshot of some test data: Here's my code: Function TestDb() As ActionResult Dim clientLocId As Integer = 23 Dim showDate As New Date showDate = New Date(2015, 8, 14) 'showDate = New Date(2015, 9, 22) 'showDate = New Date(2015, 9, 27) Dim orderRecs = db.Orders.Where(Function(x) x.ClientLocationId = clientLocId AndAlso x.OrderNumber IsNot Nothing _ AndAlso x.DateCompletedUtc IsNot Nothing

Custom build action properties in a Visual Studio C# project

*爱你&永不变心* 提交于 2020-01-15 07:15:52
问题 In a Visual Studio C++ project I can define custom build actions and corresponding property rules (see cl.xml under the MSBuild folder). How can I create such a rule for a custom build action in a C# project? Under the MSBuild folder there's a the file Microsoft.CSharp.CurrentVersion.targets which references CSharp.ProjectItemsSchema.xaml , CSharp.xaml and CSharp.BrowseObject.xaml which looks exacltly like the definitions I need. Using procmon I can see that these files are not accessed at

Unresolved Externals When Compiling With FreeType

血红的双手。 提交于 2020-01-15 05:12:06
问题 I am compiling a program in Visual Studio 2015, using the FreeType Library. Before, I had used the same project to compile a static library with my own Font class (and many other things), using the library. All was well, and the class worked great. However, I recently changed the project to a Windows application, by changing Properties -> General -> Configuration Type to Application (.exe) . That way, I could make a program and edit the code at the same time, without copying all of the 20

LNK1104 cannot open file 'legacy_stdio_definitions.lib'

青春壹個敷衍的年華 提交于 2020-01-15 01:52:31
问题 I've ported my project from vs 2012 to vs 2015. The Library i'm consuming is also built from vs 2015. I build my project using makefile and getting this error LNK1104 cannot open file 'legacy_stdio_definitions.lib' if i build the same in vs 2012 , it works fine. What this error is all about? 回答1: Try opening the project in Visual Studio, then click Project at the top menu bar. Click "Properties", "Linker", and then "Input". In "Additional Dependencies", click the down arrow beside and click

jQuery UI breaks Visual Studio 2015 Intellisense

旧巷老猫 提交于 2020-01-14 13:38:26
问题 I am finding a frustrating issue with JavaScript intellisense where if I include jQuery UI in my _references.js file I lose all JavaScript intellisense. Does anyone know if there is a way to fix this problem beyond removing jQuery UI from the _references.js ? Update I do know that more files in the _references.js file will cause it to slow down, that makes sense. However, I have projects at work which include far more files (on the order of 600) with no typesense issues, and my project has 20

'Duplicate identifier' error when compiling typescript definition files to wwwroot folder

只愿长相守 提交于 2020-01-14 09:52:27
问题 I have created a ASP.NET 5 project wich I use mainly for a front-end typescript application. I'm using grunt and grunt-ts to do the compilation. I have a 'src' folder where all my typescript files are contained grunt-ts compiles everything in the 'src' folder and combines this to a single js file wich is then put in the wwwroot folder. A typescript definition file is also generated and put in the wwwroot folder. compiling with grunt/grunt-ts works flawlessly. The problem : When the definition