Automatic native and managed DLLs extracting from Nuget Package

This is driving me crazy for several months now and I'm still not able to achieve it. My managed libraries are extracted from the Nuget package but not the natives ones. We have a bunch of managed...

Error:The preLaunchTask 'build' terminated with exit code 1

Visual Studio debug c# script on OSX, show a Error: The preLaunchTask 'build' terminated with exit code 1. This is a copy of the launch.json file: { "version": "0.2.0", "configurations":...

Using SharePoint CSOM inside .Net Core application

I want to get data from SharePoint list by CSOM library on .Net Core MVC application. There are absolutely no problem to achieve that on .Net Framework aplication because...

.NET Core: Remove null fields from API JSON response

On a global level in .NET Core 1.0 (all API responses), how can I configure Startup.cs so that null fields are removed/ignored in JSON responses? Using Newtonsoft.Json, you can apply the following...

Convert .Net Framework 4.6.2 project to .Net core project

I Have a solution which contains the bunch of class libraries which is developed by .Net framework 4.6.2. I have to convert those class libraries into .Net core. Is there any best and fastest way...

Get a guid to encode using big-endian formatting C#

I have a unusual situation where by I have an existing MySQL database that uses binary(16) primary keys, these are the basis for UUIDs that are used in an existing api. My problem is that I now...

Self Hosting OWIN in .NET Core

With legacy .NET, you could self-host OWIN via the Microsoft.AspNet.WebApi.OwinSelfHost NuGet package. Is there a way to self-host OWIN in a .NET Core console app?

dotnet: command not found in Mac

So I downloaded NET Core 2.1 SDK for mac and installed it. But when I run the dotnet command from terminal it throws -bash: dotnet: command not found error. I am trying to use the dotnet new react...

The "ResolvePackageAssets" task failed unexpectedly

I am trying to set up visual studio 2019 on macos (10.14.3), but when attempting to build a default web MVC project I get this dependency error: Target _CheckForNETCoreSdkIsPreview: ...

Unable to start Kestrel. System.IO.IOException: Failed to bind to address http://127.0.0.1:5000: address already in use

I followed the steps from this URL to publish .NET core 2.1 web application code to Linux Centos 7...

Mixing EF Core Convensions and DBFunction for a JObject property

I have an entity with properties of type JObject and I need to be able to use DbFunctions against those properties. When I execute, the project throws an exception saying that DbFunction doesn't...

How to consume SOAP web service from .NET Core 3.0 WPF app

I have a SOAP web service. I want to consume it in my WPF app. I am using .NET Core 3.0, Visual Studio 2019. So I used the Microsoft WCF Web Service Reference Provider to add reference to my...

The current .NET SDK does not support targeting .NET Core 3.0 | 3.1 | 5.0 | 6.0

I've just downloaded the release version of .NET Core 3.0.100 It was installed alongside older version that I have: When I try to run dotnet restore for a project that targets .NET Core 3...

What are the difference using app.Run and app.UseEndpoints in ASP.NET Core?

I'm using ASP.NET Core and am trying to work out the difference between app.Run() and app.UseEndpoints(). Are there some advantages / disadvantages of them? I tried to use app.Run() in 3.0 but I'm...

Angular 7 send multiple files to the server

I have a question about sending a collection of File from an Angular 7 application to a .NET Core 3 server. I have functioning code for sending a single File to the server. But I have hit a...

OmniSharp.MSBuild.ProjectManager Failed to load project on Linux

I am learning C# on my Manjaro Linux Notebook. I tried to install the ms-vscode.csharp extension, but when opening any .NET Core project I get the following Error Message: Some Projects have...

Unable to create an object of type 'ApplicationDbContext'. For the different patterns supported at design time

I face the following error when adding the migration of database in .net core This is the error: This is the code in Startup: public void ConfigureServices(IServiceCollection services) { ...

Why am I getting blank page when deploying Angular Spring war file to Apache Tomcat

I am trying to package an Angular app together with a Spring Boot app as a war file so that I can deploy it to my Apache Tomcat server. I have built the angular app and copied the files to my...

Custom Configuration Section (Array) in appsettings.json

I have an array of objects in my appsettings.json file: "CustomFields": [ { "GUID": "be283d29-12f0-4e02-be9f-050d7901269a", "Key": "Key1", "Type": 1 }, { ...

Angular 7 cant get data from HttpGet .net core API

I am migrating to .net core API, for some reasons my GET API is working fine on postman/simple browser call but not able to reflect result from my angular 7 service. My API [HttpGet] public...

The specified invariant name 'System.Data.SqlClient' wasn't found in the list of registered .NET Data Providers

I am using .NET Core 3.0 console application with ADO.NET (not using EF). I replaced System.Data with Microsoft.Data but IDbConnection, IConnectionFactory didn't work. Similarly I am not able to...

Different order of the calls to ConfigureServices between .NET Core 2.1 and 3.1 in WebApplicationFactory

During migration from .NET Core 2 to 3, I've noticed a breaking change in the WebApplicationFactory. Repro: https://github.com/lukasz-pyrzyk/orderofconfigureservices In my base library for...

Visual Studio installation failed in MAC OS X

Downloaded Visual Studio installer from https://visualstudio.microsoft.com/vs/mac/ first and started the download and install process. At the end of the installation process, it came up with the...

Nuget restore not working with artifact feed in Azure Devops

NuGet restore fails 404 from feed on another project in same organization. When using nuget restore from a pipeline the feed inside a different project is not found.

SignalR .Net Core 3.1 Web Application not working on local IIS

Trying to create a chat based on an online example using ASP.Net Core 3.1 and Angular. The following works perfectly well on IIS Express, but not on local IIS. Error...

ASP.NET Core: session expires but user is not redirected to login page

This is the first time I'm using .net core so maybe I'm doing something wrong. My application does not redirect to the login page after the session is expired, obviously resulting in Null Pointer...

What is the proper way to handle error CA1416 for .NET core builds?

Here is my C# code snippet: if (Environment.IsWindows) { _sessionAddress = GetSessionBusAddressFromSharedMemory(); } ... [System.Runtime.Versioning.SupportedOSPlatform("windows")] private...

Convert QR decoding solution from Python to C# (EU DGC)

I am trying to convert this Python code to C# (.NET Core ideally). Source My goal is to convert the QR input string to another string containing the data in json. See the provided links. #!...

Authenticating .net console applications with .net core web API

I have a .net core 3.1 web API ,which was built with JWT authentication and it is integrated with Angular UI and it working as expected. following is my JWT authentication...

dotnet command is not found in my Mac m1 terminal

I have downloaded .net5 from official website, but dotnet command isn't recognised by my terminal. Here's what I have found after some research- my dotnet folder is present in...