visual-studio-2019

Visual studio 2019 go to definition and Intellisense not working

我的未来我决定 提交于 2020-06-16 05:58:19
问题 I have noticed a weird issue with Visual Studio 2019 v16.0.1 the IntelliSense about "Using directive is unnecessary" normally grey is missing and type reference suggestion for missing using is not working. I also tried with Visual Studio 2019 Preview but no luck. I have tried the following: deleted .vs folder and restarted. Reinstalled Visual Studio Reset settings via import and export setting under tools Any other suggestions will be appreciated. 回答1: Go to Tools -> Options -> Text Editor ->

Microsoft Edge WebView2 - Sample crashes on Load

烂漫一生 提交于 2020-06-15 04:07:34
问题 I took the latest version of Microsoft.Web.WebView2 (0.9.515-prerelease) and added to a test C# WinForms application. Am using VS 2019, .NET framework is 4.7.2. Placed the WebView2 control on a form, compiled and ran. The application crashed on Load, at the below point in Form1.designer.cs. // webView21 // this.webView21.Location = new System.Drawing.Point(153, 66); this.webView21.Name = "webView21"; this.webView21.Size = new System.Drawing.Size(492, 253); this.webView21.Source = new System

Unable to Stepinto Nuget library with Symbols loaded

你说的曾经没有我的故事 提交于 2020-06-13 05:38:43
问题 I have my Nuget library uploaded into Azure Devops Artifacts. It also has the Symbols file (.PDB) published to the Azure Devops symbols server. I have added settings in my Visual studio to load symbols from the Azure Devops Symbols server as well by following the instructions mentioned here. During the runtime, when I try to StepInto the code (of Nuget library) then I get error saying unable to find the path of the .cs file. I have tried various solutions proposed like Uncheck the Enable Just

How to migrate .NET Framework 4.7.2 project to .NET Core 3.0 in Visual Studio 2019

放肆的年华 提交于 2020-06-09 19:45:34
问题 I have a Windows Forms application targeted for .NET Framework 4.7.2. As .NET Core 3.0 supports Windows Forms I'd like to try it. Is there any way to convert VS2019 project from .NET Framework to .NET Core or the only way possible is to create a new .NET Core project and add files from the old one? I'm asking only about VS project migration, not any potential incompatibility issues. 回答1: [EDIT] Official tool released: try-convert Check out releases for latest version. Until official tool is

How to migrate .NET Framework 4.7.2 project to .NET Core 3.0 in Visual Studio 2019

冷暖自知 提交于 2020-06-09 19:44:29
问题 I have a Windows Forms application targeted for .NET Framework 4.7.2. As .NET Core 3.0 supports Windows Forms I'd like to try it. Is there any way to convert VS2019 project from .NET Framework to .NET Core or the only way possible is to create a new .NET Core project and add files from the old one? I'm asking only about VS project migration, not any potential incompatibility issues. 回答1: [EDIT] Official tool released: try-convert Check out releases for latest version. Until official tool is

I need to capture Unit test case result and pass it into an array. How can I do that?

北战南征 提交于 2020-05-30 07:03:26
问题 I need to capture Unit test case result that is pass/fail in form of 1 and 2 and save it into an array for multiple test cases results. 1 for pass and 2 for fail. What if i need to save only one test case result? How can I do that? I am using Nunit C#. Using selenium webdriver. Here is the glimpse of my code [Priority(1)] [TestMethod] public void search() { Testlog.Info("Test ID:001); Testlog.Info("Select customer from cutomer dropdown"); var dc = gmethods.GetSelectElement(WDriver, dpo

Visual Studio 2019 creating .NetStandard 2.0.3 libraries instead of 2.1 inside a .Net Core 3.1 solution

☆樱花仙子☆ 提交于 2020-05-30 05:16:56
问题 i've recently (yesterday) updated visual studio 2019. I have access to .net core 3.1 sdk and can create .net core 3.1 projects. However, when i try to create a .net standard library, it defaults to 2.0.3 instead of 2.1. As far as i understand, .net standard 2.1 should come with .net core 3.1. Am i misunderstanding something here? 回答1: Create a blank solution and add a new Class Library (.NET Standard) . In properties change the target framework to .NET Standard 2.1 Save the changes and click

Visual Studio 2019 creating .NetStandard 2.0.3 libraries instead of 2.1 inside a .Net Core 3.1 solution

人盡茶涼 提交于 2020-05-30 05:16:01
问题 i've recently (yesterday) updated visual studio 2019. I have access to .net core 3.1 sdk and can create .net core 3.1 projects. However, when i try to create a .net standard library, it defaults to 2.0.3 instead of 2.1. As far as i understand, .net standard 2.1 should come with .net core 3.1. Am i misunderstanding something here? 回答1: Create a blank solution and add a new Class Library (.NET Standard) . In properties change the target framework to .NET Standard 2.1 Save the changes and click

Visual Studio 2019 creating .NetStandard 2.0.3 libraries instead of 2.1 inside a .Net Core 3.1 solution

时光怂恿深爱的人放手 提交于 2020-05-30 05:15:53
问题 i've recently (yesterday) updated visual studio 2019. I have access to .net core 3.1 sdk and can create .net core 3.1 projects. However, when i try to create a .net standard library, it defaults to 2.0.3 instead of 2.1. As far as i understand, .net standard 2.1 should come with .net core 3.1. Am i misunderstanding something here? 回答1: Create a blank solution and add a new Class Library (.NET Standard) . In properties change the target framework to .NET Standard 2.1 Save the changes and click

Visual Studio 2019 creating .NetStandard 2.0.3 libraries instead of 2.1 inside a .Net Core 3.1 solution

半城伤御伤魂 提交于 2020-05-30 05:15:47
问题 i've recently (yesterday) updated visual studio 2019. I have access to .net core 3.1 sdk and can create .net core 3.1 projects. However, when i try to create a .net standard library, it defaults to 2.0.3 instead of 2.1. As far as i understand, .net standard 2.1 should come with .net core 3.1. Am i misunderstanding something here? 回答1: Create a blank solution and add a new Class Library (.NET Standard) . In properties change the target framework to .NET Standard 2.1 Save the changes and click