visual-studio-2015

vs2015 keeps adding project.lock.json to tfs

Deadly 提交于 2020-01-04 06:07:50
问题 My folder structure is: -- Solution folder --- .tfignore file --- folder for each project But vs2015 keeps including my project.lock.json files in source control. In my .tfignore file, I added: project.lock.json I've tried undoing and deleting the files from source control. How can I stop it from including project.lock.json? 回答1: Simply update your VS to VS2015Update 3 . The .tfignore should be indeed working correctly. Or you can also use a temporary quick fix for the problem: Add an $ char

Linking google test to your main project

霸气de小男生 提交于 2020-01-04 05:47:11
问题 I am new to the gtest. I have followed a tutorial how to set it up in the VS 2105. But all that I could find talked about how to build and link gtest. I am passed that level. The code below runs and passes the first dummy test. #include "gtest/gtest.h" TEST(VI, simple) { EXPECT_EQ(false, false); } int main(int argc, char* argv[]) { testing::InitGoogleTest(&argc, argv); RUN_ALL_TESTS(); std::cin.get(); return 0; } My question: How do I exactly hook it up to my project that I want to test? Both

Visual Studio 2015 - Editing TypeScript files

纵然是瞬间 提交于 2020-01-04 05:43:47
问题 For some odd reason, I cannot* edit TypeScript files in Visual Studio 2015. The really weird thing is that I can create new lines and add tabs, but nothing else. I tried updating to the latest version of TypeScript for VS2015 to no avail. I thought maybe it was project related so I opened a ts file without having a project loaded - same problem. I saw some other posts indicating problems with ReSharper cache, so I tried deleting those as well as disabling Re# - no luck. Anybody have any ideas

Why is throwing an exception inside lambda a C# 7 feature? [duplicate]

£可爱£侵袭症+ 提交于 2020-01-04 05:22:18
问题 This question already has answers here : Why can't I throw exceptions from an expression-bodied member? (5 answers) Closed 2 years ago . This statement doesn't compile in VS2015, but does in VS2017: var example = new Action( () => throw new Exception() What had to change in the way labmdas are parsed in order to support throwing an exception inside a labmda expression? Especially because if I use a lambda body, VS2015 is perfectly happy: My question is similar to Why can't I throw exceptions

WPF - Detect design mode in a Converter

半腔热情 提交于 2020-01-04 05:11:16
问题 I have a converter in which I want to be able to change the value to Visibility.Collapsed when in DesignMode. Right it is ignoring the GetIsInDesignMode. Also, I am binding the VM via dependency injectio (prism) Converter: public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (DesignerProperties.GetIsInDesignMode(new DependencyObject())) return Visibility.Collapsed; if (value != null && value is AllowedSourceCode) { var allowedSourceCode =

How do I not print collapsed code regions in Visual Studio 2015

烂漫一生 提交于 2020-01-04 05:05:10
问题 I'm sure this is a foolish question, but I can't seem to find an answer. I'm required to print out my code for a program, but I want to not print regions that are collapsed, as this would save about a dozen pages of paper per print. Where is the setting in Visual Studio 2015 to do this, if there is one? I am working in C#. 回答1: Cut/Paste your collapsed regions into functions and put those functions into a different file. Its easy "low lying fruit" in terms of refactoring and making you code

SQL Server 2016 Express LocalDb - does anybody have a link to the download page?

自古美人都是妖i 提交于 2020-01-04 04:32:11
问题 The link to download page of SQL Server Express 2016 LocalDb (https://www.microsoft.com/download/details.aspx?id=52679) is no longer working. I have searched left and right on the Download Center, and also lot of websites online for this, but it's not available. Can anybody say whether this has been withdrawn or anything? 回答1: Scott Hanselman made life easy. 回答2: To get the install, download the setup for SQL Server Express and one of the options is to "Download Media" and from there you can

How can I suppress Intellisense errors for certain files?

北慕城南 提交于 2020-01-04 04:00:49
问题 Visual Studio 2015 offers the option to show Intellisense errors in the same window that also displays regular build errors. I like it because I don't even need to build in order to see if my code is sytatictically correct. However, the window also shows one false positive error which seems to be related to an Intellisense bug. Is there any way to suppress intellisense errors for specific code regions or entire files? 回答1: Did you find an answer? You can do it by writing the following in your

TFS Build Fail when running for TFS-GIT Repository

一世执手 提交于 2020-01-04 02:27:08
问题 I am using VS2015 & TFS2013. I have a GIT repository on TFS which has got a web application and I am trying to publish that using TFS build. I created a build for deploying that web application which fails. Here is the full error message : Cloning repository 'http://localhost:8080/tfs/defaultcollection/GitTest/_git/GitTest' into 'C:\Builds\2014\GitTest\TestGitBuild\src'. **Exception Message: Response status code does not indicate success: 404 (Not Found).** (type LibGit2SharpException)

Visual Studio 2015 (latest update) publish function does not compile ASP.NET Core RC1 sources

女生的网名这么多〃 提交于 2020-01-04 02:09:07
问题 I begun working on a new ASP.NET Core RC1 project months ago, and Publishing with Visual Studio 2015, was producing a folder tree ready to deploy without the project C# sources (because it was compiling it in assemblies placed into the folder tree). Now that I've upgraded the Visual Studio ( only the VS , not the project that remains in 1.0.0- rc1-final ) with latest updates (circa May, 19 2016): "Microsoft .NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1", "Microsoft .NET Core 1.0.0 RC2 - SDK