visual-studio-2019

Disabling highlighting of current line in the Visual Studio editor

孤街浪徒 提交于 2019-12-04 07:29:13
问题 The Visual Studio editor highlights the current line by changing the background color of the current line. Is there a simple way to disable this highlighting? Otherwise, which parameter in Fonts and Colors dialog controls the background color of the currently selected line in the editor? 回答1: Is there a simple way to disable this highlighting? Tools -> Options -> Text Editor, in the Display group, uncheck "Highlight current line" Which parameter in Fonts and Colors dialog controls the

Latest Update brings Github error on pull, push, or sync

旧街凉风 提交于 2019-12-04 05:25:28
In Visual Studio 2019, we have been using the GitHub extension successfully since before release. Now, all of the sudden, when we push, pull, or sync, we receive the following in the Output window: Warning: 'C:\ProgramData/Git/config' has a dubious owner: '(unknown)'. For security reasons, it is therefore ignored. To fix this, please transfer ownership to an admininstrator. You should check if 'C:\ProgramData/Git/config' actually exists. If it doesn't you can just create it and paste the following into the file: [core] symlinks = false autocrlf = true fscache = true [color] diff = auto status

Visual Studio 2017 & 2019 highlight occurrences of selected word in scrollbar

ぃ、小莉子 提交于 2019-12-03 04:02:29
问题 When I mark a word (of any kind) I would like all occurrences (in that particular file) of that word to be highlighted in the scrollbar on the right hand side. This was a feature in VS2015 and VS2013. I cannot imagine that they removed it, I just don't know how to switch it on. None of the apparent possibilities in Tools -> Options (image) helps me. Ps. I am using Visual Studio 17 Professional. Thank you. 回答1: This was a feature in VS15 and VS13. Actually it was not. It is a feature of the

Installation of AnkhSVN Visual Studio 2019

你。 提交于 2019-12-03 02:26:14
I can not Install AnkhSVN -Subversion Support for Visual Studio 2019, I have tried to Install It, It says Version is Invalid for VS2019 I use VS2019 Professional gigios The latest AnkhSVN version is not compatible with Visual Studio 2019 (and the project, unfortunately, seems dead). A possible solution is to edit manually the files stored in the vsix file (it's a zip file with a different extension). The file to edit are: extension.vsixmanifest Change the occurance of [15.0,16.0) to [15.0,17.0) Change the prerequisite in this way: <Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor"

Visual Studio 2017 & 2019 highlight occurrences of selected word in scrollbar

a 夏天 提交于 2019-12-02 18:58:51
When I mark a word (of any kind) I would like all occurrences (in that particular file) of that word to be highlighted in the scrollbar on the right hand side. This was a feature in VS2015 and VS2013. I cannot imagine that they removed it, I just don't know how to switch it on. None of the apparent possibilities in Tools -> Options (image) helps me. Ps. I am using Visual Studio 17 Professional. Thank you. This was a feature in VS15 and VS13. Actually it was not. It is a feature of the Productivity Power Tools extension. That extension is now just an installer for separate single feature

Visual Studio 2019 (16.2.1) no longer has checkbox to support .net core prerelease versions

可紊 提交于 2019-12-02 16:18:21
问题 In Visual Studio v16.2.1, there is no button to include .net core versions in pre-release any more. After upgrading to this version, I am unable to build .net core 3 preview 7 projects. 回答1: For .Net Core 3.0 (Preview) use Visual Studio 16.3 (currently Preview channel with Preview 2), this is first version that fully supports .Net Core 3.0 and .Net core 3.0 will ship the same time like VS2019 16.3 final. NET Core 3.0 Preview .NET Core 3.0 Preview 8 requires Visual Studio 2019 16.3 Preview 2

VS2017 / VS 2019 Run As Admin from taskbar

落花浮王杯 提交于 2019-12-02 14:34:44
I would like to run Visual Studio 2017/2019 as admin when I select a project from the recent list in the taskbar , ie. when opening a project via Explorer/Shell shortcuts. I did use the setting: properties -> shortcut -> advanced -> run as admin checkbox. Unfortunately, this does not result in devenv running as Administrator. Any ideas on how to fix this? Close all instances of Visual Studio Right click on the Visual Studio 2017/2019 icon in your task bar Right click on Visual Studio 2017/2019 and click Properties Click open File Location button Right-click devenv.exe file in that folder

Visual Studio 2019 (16.2.1) no longer has checkbox to support .net core prerelease versions

不羁的心 提交于 2019-12-02 09:03:59
In Visual Studio v16.2.1, there is no button to include .net core versions in pre-release any more. After upgrading to this version, I am unable to build .net core 3 preview 7 projects. For .Net Core 3.0 (Preview) use Visual Studio 16.3 (currently Preview channel with Preview 2) , this is first version that fully supports .Net Core 3.0 and .Net core 3.0 will ship the same time like VS2019 16.3 final. NET Core 3.0 Preview .NET Core 3.0 Preview 8 requires Visual Studio 2019 16.3 Preview 2 or later 来源: https://stackoverflow.com/questions/57477964/visual-studio-2019-16-2-1-no-longer-has-checkbox

Switching between compiler directives in Visual Studio 2019?

ⅰ亾dé卋堺 提交于 2019-12-02 05:57:39
问题 I'm using Visual Studio 2019 with SDK based project, with multiple targets: <TargetFrameworks>netstandard2.0;net45;net46</TargetFrameworks> But when I write conditional code, I see (obviously) some code in gray and some code in regular colors : Question: What settings decide which section will be gray and which will not? Because now, if I want to edit the " NETFULL " section (because I'm multitargeting), it's all gray and I don't have intellisense. How can I tell VS: now let's switch to

Cannot use interface default methods

夙愿已清 提交于 2019-12-02 02:36:29
问题 I have installed new version of visual studio and set the project to C# 8. When I tried to use new interface feature like below it said that I cannot implement in interface which seems that somehow I cannot use new feature. Can anyone explain why, is it still not included in 2019 preview? interface IDefaultInterfaceMethod { public void DefaultMethod() { Console.WriteLine("I am a default method in the interface!"); } } 回答1: Based on this: Microsoft has fleshed out more details about C# Version