Category ".net-core"

GraphQL : Not Getting EF Related objects after implementing Types

For background, I am following the tutorial here: https://www.youtube.com/watch?v=HuN94qNwQmM . As the code is too long I am putting that in git https://github.

System.Text.Json: How do I specify a custom name for an enum value?

Using the System.Text.Json serializer capabilities in .NET Core, how can I specify a custom value for an enum value, similar to JsonPropertyName? For example:

.net core build produces localization folders

I have a web asp.net solution that is using .net core 2.0. I am building it using the command: dotnet publish MySolution.sln --configuration release --output d

C# Setup Project for winforms app (.NET Framework) does not create start menu company directory

I have two versions of a Winforms project built using VS2019. "AppNetCore" is written using the Windows Forms App template, "AppNetFramework" with the Windows

How to download file on browser from Dotnet core endpoint

I have a react front-end and the dotnet core web API project on the back-end. I have an endpoint on which a client can request a file using fileId from my react

Net Core API: Purpose of ProducesResponseType

I want to understand the purpose of ProducesResponseType. Microsoft defines as a filter that specifies the type of the value and status code returned by the act

Use Prometheus in .net core application

I am doing POC using Prometheus in .net core app. I did not found sufficient information on Prometheus website to get started , I have following question if som

WindowsImpersonationContext & Impersonate() not found in ASP.Core

I had the following in a .NET Framework 4.0 assembly: var newId = new WindowsIdentity(duplicateTokenHandle); WindowsImpersonationContext newId = ImpersonatedIde

How to move the debug pointer to change the execution flow in Visual Studio Code Debugger

I have used Visual Studio 2008 to 2017, all having this feature as shown below: The yellow arrow(debug pointer) which can be used to manipulate executing line(

MSBUILD throws error: The SDK 'Microsoft.NET.Sdk' specified could not be found

I'm trying to build a solution using msbuild command line and I keep getting this error: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be foun

Additional probing paths for .NET Core 3 migration

Short version of the question: Is there any way in .NET Core 3 to specify a local probing path, using the same rules as the <probing> element from app.con

.Net Core Dependency Injection inject out of constructor

I need to inject out of constructor, everything I declared in Setup. Ho can I do it ? How can I inject services out of constructor ? Something like Injector s

Populate IConfiguration for unit tests

.NET Core configuration allows so many options to add values (environment variables, json files, command line args). I just can't figure out and find an answer

How to Configure Network Tracing Dotnet core for HttpClient calls?

As per reference document at https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing We can setup this in web.c

Error: Cannot find module 'C:\XXX\XXX/config-overrides'

I have created a sample react/redux/.net core app by using this Tutorial. But when I try to start the application with npm start I get the 'cannot find module e

Is there an equivalent of Spring Cloud Stream in .Net or .Net Core?

I have a Java project that needs to be rewritten in C# .Net Core. The Java app is currently deployed on cloud using SCS. The concept of stream looks smooth as w

Where is the PEVerify equivalent in.NET Core for Mac and Linux?

In .Net Framework the PEVerify determines whether the IL code of a .Net module meets type safety requirements. What is the equivalent tool in .NET Core that pr

Elsa Workflow - How to implement cascade dropdown

I have two dropdowns in an activity. One of them it's populated dynamically from OptionsProvider attribute. I would to like to populate a second dropdown from t

returns 403(forbidden) when using authentication scheme in .net core

I am doing authentication in my web application with JWT Security Tokens and a custom authentication scheme. I'm generating tokens when a user login I created

WSDL Endpoint configuration in .NET Core

I'm trying to work with WSDL using .NET core. Currently, I'm able to import the WSDL and the related files are generated: The structure is done in the right