tagged [visual-studio-2017]

What is the default encoding for source files in Visual Studio 2017?

What is the default encoding for source files in Visual Studio 2017? It seems Visual Studio 2017 always saves new files as UTF8-BOM. It also seems this was not the case with earlier versions of Visual...

7 Jan at 01:0

Visual Studio 2017 - How do I duplicate the current line?

Visual Studio 2017 - How do I duplicate the current line? I want to duplicate the current line to a new line below it. I found [this](https://stackoverflow.com/questions/30203752/how-do-i-duplicate-a-...

Can I execute npm commands directly from the visual studio

Can I execute npm commands directly from the visual studio Can I execute npm commands (e.g. npm init, npm install) directly from Visual Studio 2017 on Asp.Net Core 2.0 project? May be from command lin...

Access Visual Studio 2017's private registry hive

Access Visual Studio 2017's private registry hive Visual Studio uses a private registry hive instead of "polluting" the system registry - typically found somewhere like this: `C:\Users\Abx\AppData\Loc...

21 Mar at 00:18

How to build .csproj with C# 7 code from command line (msbuild)

How to build .csproj with C# 7 code from command line (msbuild) I use some C# 7 features in my project: and it builds fine in visual studio 2017, but I get an error on my CI agent when using old msbui...

6 Sep at 08:44

Reportviewer tool missing in visual studio 2017 RC

Reportviewer tool missing in visual studio 2017 RC I just started to write reporting software in new version of visual studio named visual studio 2017 RC but just noticed that core reportviewing tools...

Visual Studio : can't find "resource file" in list of items to add to project

Visual Studio : can't find "resource file" in list of items to add to project I'm on VS Community 2017 RC. I'd like to add a resource file (.resx) to my project but this item type is not listed in the...

HTTP Error 500.19 with Error Code 0x8007000d visual studio 2017 while deploying .net core application

HTTP Error 500.19 with Error Code 0x8007000d visual studio 2017 while deploying .net core application I created default .net core application using visual studio 2017 and am trying to publish it, The ...

How do I add features to Visual Studio 2017?

How do I add features to Visual Studio 2017? Let's say that when I installed Visual Studio 2017 I decided to use the "Windows Universal Platform" packages. Later, I realize that I'd like to install th...

29 Apr at 12:56

VS 2017 immediate window shows "Internal error in the C# compiler"

VS 2017 immediate window shows "Internal error in the C# compiler" I use Visual Studio 2017 (15.6.6). When debugging, I try to evaluate simple expressions like `int a = 2;` in the immediate window. An...

Authentication method 'caching_sha2_password' not supported by any of the available plugins

Authentication method 'caching_sha2_password' not supported by any of the available plugins When I try to connect MySQL (8.0) database with Visual Studio 2018 I get this error message > "Authenticatio...

How-to migrate Wpf projects to the new VS2017 format

How-to migrate Wpf projects to the new VS2017 format I'm migrating my projects to the new visual studio 2017 format which is working nicely for all standard libraries only now I run into problems with...

29 Apr at 08:44

Fody is only supported on MSBuild 16 and above. Current version: 15

Fody is only supported on MSBuild 16 and above. Current version: 15 Visual Studio 2017 let me know there was an upgrade to Fody version 5 this morning. I accepted and did a NuGet package update of bot...

How to change C# Language Version for all of the projects in my solution in one place?

How to change C# Language Version for all of the projects in my solution in one place? I have a solution with 20 projects, I want to change the C# version for all of them to C# 7.3 Is there a way that...

28 Apr at 20:57

Is there a ValueTask<T> in C# 7.0?

Is there a ValueTask in C# 7.0? There are a few preliminary sources that mention that there is a new ValueTask in C# 7.0: [https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/](...

Fix all 'Naming rule violation' shown in VS2017 for all opened files at once

Fix all 'Naming rule violation' shown in VS2017 for all opened files at once Is there any tool witch allows to apply fix for all VS2017 messages like ""? In VS2017 it has to be done manually one by on...

How to consolidate all applicable projects and nuget packages from the command line?

How to consolidate all applicable projects and nuget packages from the command line? I'm merging two solutions and now have the following situation [](https://i.stack.imgur.com/xpM4U.png) [](https://i...

28 Mar at 09:18

Remote deploy/debug Visual Studio 2017 .NET Core

Remote deploy/debug Visual Studio 2017 .NET Core How can I set up remote deploy + debugging in VS2017 using a net core app which targets net framework? I have the remote tools installed and working on...

How do I automatically set all projects in my solution to the same version?

How do I automatically set all projects in my solution to the same version? I have a Visual Studio solution with 5 C# projects. I want the assembly versions to match in each project. But it looks like...

Can we deploy a C# 7 web app to Azure using Kudu?

Can we deploy a C# 7 web app to Azure using Kudu? Since Visual Studio 2017 is released and we can use the new C# 7 features I expected this will work when deploying on Azure Web apps. Unfortunately we...

What is analog for HttpListener in .NET Core

What is analog for HttpListener in .NET Core I'm porting application from .NET 4 to .NET Core and can't find analog for HttpListener class Update1 ``` private readonly HttpListener _httpListener; ...

ServiceStack Incompatible net 4.7.1

ServiceStack Incompatible net 4.7.1 i have a problem with VS2017 (15.4.2) and ServiceStack. The error is the seguent: Package ServiceStack.Logging.Log4Net 4.5.14 is not compatible with net471 (.NETFra...

How to remove an unpushed outgoing commit in Visual Studio?

How to remove an unpushed outgoing commit in Visual Studio? I accidentally pushed a staged change in a new branch in Visual Studio 2017 to my local repository. It hasn't been pushed to the remote repo...

Visual Studio 2017 disable Dependency Validation

Visual Studio 2017 disable Dependency Validation How to disable Dependency Validation in Visual Studio 2017 RC? Whenever I open C# solution it always shows me a message in the Solution Explorer: "One ...

14 Mar at 19:39

Unable to start program. [VALUE].dll is not a valid Win32 application error in Visual Studio 2017

Unable to start program. [VALUE].dll is not a valid Win32 application error in Visual Studio 2017 I have developed an C#, ASP.NET web application in a Windows 7 machine using Visual Studio 2012. Now i...

3 Feb at 23:11