.net-core-2.2

Selenium .NET core 2.2 published project exe not running even on Windows x64

不羁岁月 提交于 2020-01-24 12:12:38
问题 When I build and publish project, the exe generated in the Published folder doesn't Open then closes within a sec. Can anyone help me to resolve the error ? When I ran the exe from CMD line I am getting this error. cd ..Path_to_Project\WebShopTestAutomation dotnet restore dotnet build dotnet test An assembly specified in the application dependencies manifest (WebShopTestAutomation.deps.json) has already been found but with a different file extension. The full project is here. Please read the

Selenium .NET core 2.2 published project exe not running even on Windows x64

浪子不回头ぞ 提交于 2020-01-24 12:12:25
问题 When I build and publish project, the exe generated in the Published folder doesn't Open then closes within a sec. Can anyone help me to resolve the error ? When I ran the exe from CMD line I am getting this error. cd ..Path_to_Project\WebShopTestAutomation dotnet restore dotnet build dotnet test An assembly specified in the application dependencies manifest (WebShopTestAutomation.deps.json) has already been found but with a different file extension. The full project is here. Please read the

.Net Core 2.2 Web API 405

只愿长相守 提交于 2020-01-14 04:25:15
问题 I am trying to setup a .net core 2.2 web api to use a post verb. Anything other than a get verb returns a 405 no matter if it is run on my local machine (w10 iis eXPRESS 10.0) or the windows server (2016 R2 IIS 8.0). I've read the other posts about disabling WebDav in your config file, adding a route, and completely removing the WebDav feature. I have done all of those to no avail. I'm just starting to develop in core and find this baffling, on the same server is a non-core web api that runs

Net Core Integration Test: Run Startup.cs and Configuration from other Program

不问归期 提交于 2019-12-24 04:34:18
问题 We are creating an Integration Unit test (Xunit), which is calling the Real Application Startup.cs. For some reason, Real project can read Configuration file/property correctly, however running it from the Integration test, it cannot read it. Its not placing anything into Configuration (conf) variable below. How would I resolve this? The reason is its not picking up is its not reading the internal dependency injection new from Net Core 2.2 which reads Configuration file. Trying to use

ConcurrentDictionary GetOrAdd async

怎甘沉沦 提交于 2019-12-22 05:36:16
问题 I want to use something like GetOrAdd with a ConcurrentDictionary as a cache to a webservice. Is there an async version of this dictionary? GetOrAdd will be making a web request using HttpClient , so it would be nice if there was a version of this dictionary where GetOrAdd was async. To clear up some confusion, the contents of the dictionary will be the response from a call to a webservice. ConcurrentDictionary<string, Response> _cache = new ConcurrentDictionary<string, Response>(); var

How to Create Framework-Dependent Executables with .NET Core 2.2

。_饼干妹妹 提交于 2019-12-21 09:18:22
问题 How do I create framework-dependent executables (FDE) with .NET Core 2.2? The MSDN documentation mentions them here as a new feature for .NET Core 2.2: Framework-dependent executables (FDE) Starting with .NET Core 2.2, you can deploy your app as an FDE, along with any required third-party dependencies. Your app will use the version of .NET Core that's installed on the target system. Sadly the step-by-step examples still only refer to self-contained and framework-dependent deployments (FDD).

Error Could not load type System.Data.OleDb.OleDbConnection from assembly System.Data when using Scaffold-DbContext, EntityFrameworkCore.Jet, .NetCore

久未见 提交于 2019-12-18 09:21:12
问题 I am trying to use Scaffold-DbContext from Entity Framework Core to create Models from an existing MS Access Database. In Package Manager Console when I run the command: Scaffold-DbContext "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Folder\Database.mdb;" EntityFrameworkCore.Jet I get the following error: Could not load type 'System.Data.OleDb.OleDbConnection' from assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=123123123'. I'm using a ClassLibrary project with

Union can't be translated to SQL

做~自己de王妃 提交于 2019-12-08 02:34:25
问题 I'm using EFCore 2.2.3 and I have disabled local evaluation. I have the following queries var query1 = companyContext.Companies.Where(c => c.Name == name); var query2 = companyContext.Companies.Where(c => c.Id == 10); If i execute them on their own they work correctly. await query1.ToListAsync(); await query2.ToListAsync(); But if i try to var result = await query1.Union(query2).ToListAsync(); i get the following error: InvalidOperationException: Error generated for warning 'Microsoft

.Net Core 2.2 Web API 405

邮差的信 提交于 2019-12-07 04:56:30
I am trying to setup a .net core 2.2 web api to use a post verb. Anything other than a get verb returns a 405 no matter if it is run on my local machine (w10 iis eXPRESS 10.0) or the windows server (2016 R2 IIS 8.0). I've read the other posts about disabling WebDav in your config file, adding a route, and completely removing the WebDav feature. I have done all of those to no avail. I'm just starting to develop in core and find this baffling, on the same server is a non-core web api that runs on .net framework 4.5 that processes GET,PUT,POST,DELETE without error. And yes, I have restarted the

How to Create Framework-Dependent Executables with .NET Core 2.2

别等时光非礼了梦想. 提交于 2019-12-04 03:28:15
How do I create framework-dependent executables (FDE) with .NET Core 2.2? The MSDN documentation mentions them here as a new feature for .NET Core 2.2: Framework-dependent executables (FDE) Starting with .NET Core 2.2, you can deploy your app as an FDE, along with any required third-party dependencies. Your app will use the version of .NET Core that's installed on the target system. Sadly the step-by-step examples still only refer to self-contained and framework-dependent deployments (FDD). The way to do this is to specify a runtime identifier and then --self-contained false : dotnet publish