.net-core-2.1 Questions
3
Solved
I have a (ReadOnly)Span<byte> from which I want to decode a string.
Only in .NET Core 2.1 I have the new overload to decode a string from it without needing to copy the bytes:
Encoding.GetS...
Newborn asked 18/1, 2019 at 14:19
8
Solved
Ok, .NET Core 2.1 has landed. With it we've gotten a new way to work with string data being ReadOnlySpan<char>. It's great at splitting string data, but what about combining the spans back to...
Unclinch asked 31/5, 2018 at 23:12
4
Solved
I'm updating a VS2017 to use ASP.NET Core 2.1 (installing dot.net core sdk 2.1 and Microsoft.Net.Compilers 2.8.2) and I am receiving some warnings about analyzers not being able to be created after...
Oligopsony asked 28/6, 2018 at 8:1
5
Solved
I am developing a .netcore web application. I am using of swagger and I've made all the necessary adjustments. Unfortunately it does not work and I just see No operations defined in spec! in the sw...
Isoelectronic asked 12/1, 2019 at 13:21
4
I need to access ModelState in Asp.net Core 2.1 Middleware, but this is just accessible from Controller.
For example I have ResponseFormatterMiddleware and in this Middleware I need to ignore Mode...
Brock asked 17/9, 2018 at 15:2
3
I would like to create a hierarchical in-memory configuration along the lines of using a nested dictionary to populate the IConfiguration. My current approach is something like this.
I have a dict...
Shibboleth asked 12/3, 2019 at 7:3
1
I want to add this to my program.cs without having to use a startup class.
I've read the Microsoft docs but can't seem to get it to work.
public static void Main(string[] args)
{
var host = Create...
Thrill asked 5/8, 2022 at 18:58
3
Solved
So far I read the docs, tutorials google brought up and other SO questions but it seems I miss something and I don't get it (to work).
I try to implement a really tiny PostgreSQL database for a .N...
Strictly asked 14/11, 2018 at 10:29
5
Solved
I am working on a Web Service using .Net Core 2.1.
I have a byte array containing all pixels values (in grey scale), a width, a height. I want to create a bitmap from theses parameters.
There is ...
Nebraska asked 14/1, 2019 at 11:8
5
Solved
I'm using the .NET Core 2.1 HostBuilder class to set up and run a GRPC server and am having trouble getting SeriLog properly configured so that it is used by the .NET Core logging pipeline as well ...
Champignon asked 6/6, 2018 at 20:1
2
Solved
I'm updating a package to .NET 5.0 from .Net Core 2.1. I've updated all the assemblies to the latest versions but am getting the error below from the Analyzer package:
This error occurs due to the...
Israelitish asked 29/7, 2021 at 16:7
3
Solved
I am developing an Angular 6 application in dotNet Core 2.1.
Everything is working flawlessly, until I got to setting up EFCore.
All my models are defined and context created. Running dotnet ef mig...
Hasin asked 18/11, 2018 at 10:9
4
Solved
Is there any way to get a stack trace or inner exceptions on Swashbuckle/Swagger errors? At some point, it stopped working. I'm not sure if it was when I upgraded from .Net Core 2.0 to 2.1, but I'm...
Memorandum asked 3/8, 2018 at 9:0
10
When I try to publish my application to the web server after upgrading to .NET Core 2.1 from 2.0, I get this message: "This version of Microsoft.AspNetCore.All is only compatible with the netcoreap...
Restaurant asked 6/6, 2018 at 23:54
2
Solved
My .Netcore 2.0 project can target net471.
But when I upgraded to .NET 2.1, I can't retarget net471 or net472
Can I retarget in the latest version of .the NET core?
Severity Code Description Proj...
Favourite asked 19/6, 2018 at 4:25
1
I upgraded my ASP.NET CORE application from sdk .NET Core 2.0 to .NET Core 2.1.
I can run the solution in my localhost but when I deploy it to another server there is an exception. And the excepti...
Florindaflorine asked 20/11, 2018 at 22:52
3
Solved
I am trying my hands on blazor.Net which is an experimental framework.
I already developed a small project in this Framework and its awesome.
But after recent update in Blazor Language Service on 1...
Waverly asked 16/11, 2018 at 5:44
3
Solved
Tools
Visual Studio 2017 Professional (15.8.7)
dotnetcore SDK 2.1.403
Scenario
I'm attempting to create a console app using the dotnet core framework. The console app needs to make API reque...
Lucchesi asked 21/10, 2018 at 17:27
1
Solved
Is there a way to allow a list of tuples to deconstruct to a List<T>?
I get the following compile error with the following code sample:
Cannot implicitly convert type 'System.Collections....
Postpaid asked 23/6, 2019 at 11:13
2
Solved
I want to use the HttpClientFactory that is available in .NET Core 2.1 but I also want to use the HttpClientHandler to utilize the AutomaticDecompression property when creating HttpClients.
I am s...
Rettke asked 7/6, 2018 at 18:17
0
I am using Data Protection APIs from .NetCore, while unprotecting payload using DangerousUnprotect() from IPersistedDataProtector, I am getting said error message.
I have created a single instanc...
Crystacrystal asked 25/3, 2019 at 6:26
2
Solved
I am trying to understand how I can intercept and handle model binding errors in .net core.
I want to do this:
// POST api/values
[HttpPost]
public void Post([FromBody] Thing value)
{
if (!...
Arboreous asked 11/3, 2019 at 11:7
2
I'm working on a .net core 2.1 application and trying to incorporate log4net to write logs to files. I can get it to work but can't figure out how to write to different environments (i.e. test/prod...
Privily asked 28/1, 2019 at 20:49
1
Solved
I'm using .NET Core 2.1 and language standard 7.3. I wish to reference a fixed buffer without obtaining a pointer to it. Is it currently possible?
public unsafe struct InteropStruct
{
private fix...
Chalkstone asked 21/1, 2019 at 8:23
2
Solved
I'm trying to find a way to get a List of all of the entity models in my DbContext. For instance, if I have two models called Customer and Invoice defined in C# which through code-first I created E...
Llovera asked 14/1, 2019 at 19:20
1 Next >
© 2022 - 2024 — McMap. All rights reserved.