.net-core Questions

4

Is there an obfuscation tool that can work well on the exe and pdb files that result from a dotnet core single file publish? I am using dotnet core single file publish with the command: dotnet pub...
Aghast asked 19/5, 2020 at 16:46

3

Does anyone know how to implement MediatR in a console application, to call a handler function using the _mediatr.Send(obj) syntax. I'm using the .Net 6 framework. Thanks for the help.
Microfilm asked 25/7, 2022 at 6:21

2

I'm trying to figuring out versioning in .Net core Web Api 2.0 and I have some questions after seeing a lot of 'tutorials'. For example I have a large api with a lot of controllers/models/etc. 1. W...
Berthaberthe asked 22/6, 2020 at 12:41

4

I am attempting to dynamically set the language of an IStringLocalizer at run time. The only available method that seems to do this is IStringLocalizer.WithCulture. However, attempting to use it re...
Ironwork asked 14/3, 2020 at 14:48

4

Solved

I created a Windows Service starting from my .NET Core project following this After this, I installed correctly it on my working machine and started it. This is my service class: using System; u...
Intend asked 28/1, 2020 at 14:31

4

Solved

I'm storing some IConfiguration as json in my sqlserver db so I can then bind them to some already constructed classes in order to provide dynamic settings. At some point I might change the binded ...
Glowworm asked 3/7, 2020 at 10:29

2

I have been trying to fix version conflicts in my .NET 6 console project. I fail to find a way like app.config's BindingRedirect or CodeBase, which worked for this case in .NET Framework. Is there ...
Disputant asked 3/4, 2022 at 14:22

3

Solved

This question is regarding types Span<T> and RealOnlySpan<T> in .NET Core. The documentation explains how to create a span over an array, or an array segment, or a stack-allocated or un...
Cordey asked 28/11, 2019 at 20:55

2

Solved

I have a Postgres DB running in a Docker environment which is set up using FluentDocker in a Xunit test. Xunit is configured to run tests serial. When running a single test, everything works fine. ...
Giamo asked 13/6, 2022 at 10:6

4

Solved

UPDATE TO THE UPDATE (Because this is just getting lost in bizarro world) OK, I'm now totally blow away. I noticed in my update, I was missing the period after {b} on line 7. So, being a sticker fo...
Brownlee asked 16/4, 2023 at 15:40

3

During troubleshooting, I came across this weird behaviour which occurs when parsing text to create a DateTime object in C# (in .Net Core 8.0). Can anybody explain why the following statements retu...
Exoteric asked 6/9 at 11:33

10

Solved

I have a DbContext named FileManagerContext in my DOTNET 6 API: public class FileManagerContext : DbContext { public FileManagerContext(DbContextOptions<FileManagerContext> options) : base(o...
Braunstein asked 2/2, 2022 at 15:30

5

I'm working on macOS Big Sur and Visual Studio .net core 5. I think the issues started after allowing Visual Studio to install updates (I wasn't expecting any issues), after a few hours dotnet comm...
Anguilla asked 21/12, 2021 at 9:40

2

Solved

I have a controller that looks like this IHttpWrite httpWrite; [HttpPost] public async Task<HttpResponse> Post(Request req) { return await httpWrite.Write(req, Response); } that calls th...
Leighannleighland asked 31/10, 2018 at 14:20

2

Solved

I was looking at a way for caching responses from an API endpoint developed in .NET Core. The request to the API must have a valid Authorization header as part the requirement. I came across a fe...
Kansas asked 14/8, 2019 at 9:29

4

I have a shared .NET Standard library that was originally being referenced by a .NET 4.8 MVC 4 project. There is a lot of code in this shared library that uses the ConfigurationManager, like: var s...
Moneymaking asked 13/2, 2022 at 21:6

2

Solved

First of all, excuse my English, it's very bad. I am using MassTransit with Azure Service Bus for asynchronous communication between microservices. By their own definition, and to avoid generating ...
Speech asked 24/9, 2018 at 10:24

3

I've built a .NET Core 6 application that runs without issue on my local Windows 11 machine. I've deployed it to an Ubuntu 20.04 server and I receive an error that it cannot load the libSkiaSharp s...
Koodoo asked 10/2, 2023 at 18:55

3

I installed VS2019 with .NET5 SDK on Windows 10. Today it stops working. VS2019 cannot build any .NET project, without showing any error. I tried to run dotnet build and dotnet restore. It hangs fo...
Scribe asked 17/9, 2021 at 1:55

4

Solved

I need database connection string in two places in appsettings.json. Is it possible to introduce common variable or json-path related references into json file to avoid potencial problems? It wo...
Ericaericaceous asked 16/10, 2019 at 12:34

4

Solved

I am using .net core 6.0. I am getting this error when I am calling the same method from different places. I tried calling this method GetEmployeeByEmployeeNumber from inside `Index and I dont get ...
Foreyard asked 7/2, 2023 at 3:53

4

Solved

I install too many dotnet tool but how to keey they in lastest version. I do not want to update them manual. I find the github issus: Add dotnet tool update --all option · Issue #10130 · dotnet/sd...
Susurrus asked 19/2, 2020 at 5:0

4

Solved

With blazor I get Non-nullable warnings all around the code. Those warnings seems to be wrong, however solving them introduces a lot of code with the only purpose to hide the warning while the valu...
Poland asked 7/7, 2022 at 12:37

2

Solved

I have ArchLinux distro, I'm testing .Net SDK on Linux for the first time. I installed a trial version of JetBrains Rider IDE. I created new ASP.Net Core project, but I get this error message in th...
Griseous asked 11/2, 2018 at 12:43

3

I am trying to run a .Net Core based Azure Function inside a Docker container on a M1 Macbook without success so far. Originally I used the Azure Function Core Tools CLI to create the function with...
Stanislaus asked 17/4, 2021 at 11:4

© 2022 - 2024 — McMap. All rights reserved.