.net-core Questions
2
When building my windows dockerfile (.net core nano)...
docker build -f *** -t ***:*** --build-arg ARG1=foo --build-arg ARG2=bar .
I'm getting an error during the build that occurs in response to m...
Franglais asked 23/6, 2023 at 17:37
2
Solved
I have implemented an approach for tracing SQL queries from EF Core according to this article: https://learn.microsoft.com/en-us/ef/core/miscellaneous/logging. And have problems with tracing query ...
Ferrochromium asked 26/5, 2017 at 13:9
2
I am trying to build a dotnet docker image for linux/amd64 architecture on my Apple Silicon. It works for other architectures but it get stuck at "RUN dotnet restore" when building for li...
4
Solved
I'm working on an ASP.NET API project where I have multiple controllers, and I want to prepend a common prefix to all the URLs before the controller route. For example, I want all my API endpoints ...
Stroke asked 29/6, 2023 at 14:8
5
I need to automatically add api/ prefix to every end point in my asp .net core web API. How to do that?
Flats asked 17/8, 2022 at 11:23
3
I'm porting to .NET core and the existing app has hooked the win32 call SetConsoleCtrlHandler to capture application close so that it can cleanly close off open database files and other orderly shu...
Roop asked 4/2, 2017 at 20:43
5
Solved
If you try to run from the command line in the top directory of a solution made with visual studio:
dotnet build
My solution is architectured like that:
MySolution.sln
> src
> MyProject...
Mastery asked 22/6, 2016 at 7:47
10
I got an error
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
while building my solution. Package manager can't restore my 2 projects:
Unable t...
Guerrilla asked 19/9, 2018 at 7:47
3
Solved
I have an anchor which should replace a grid with a partial view .
<a class="btn btn-primary"
data-ajax="true"
data-ajax-method="GET"
data-ajax-mode="replace"
data-ajax-update="content"
...
Lorenalorene asked 30/1, 2018 at 2:25
2
Solved
I am trying to use autofac in my dotnet core 3.1 project, but I am unable to run project after writing ConfigureContainer inside the startup.cs file.
public void ConfigureContainer(ContainerBuild...
7
Solved
I have the following problem, I created an application to add game categories and the games themselves to the database. I created a relationship and unfortunately when I add to the database I get a...
Avera asked 17/1, 2019 at 13:33
9
Solved
I'm trying to install the dotnet-ef tool via the dotnet-cli.
The command that I enter: dotnet tool install --global dotnet-ef
I gives me the following error:
The tool package could not be restor...
Arctogaea asked 8/11, 2019 at 10:1
5
Solved
I have a .Net core client application using amazon Textract with S3,SNS and SQS as per the AWS Document , Detecting and Analyzing Text in Multipage Documents(https://docs.aws.amazon.com/textract/la...
Egyptian asked 30/11, 2019 at 5:52
5
Solved
I have a project based on the Blazor sample with a .Client, .Server and .Shared projects. I have a textfile data.txt on the server that I want to be able to read/write using standard StreamReader /...
Pop asked 28/3, 2019 at 22:38
4
Solved
I am looking for an alternative to Microsoft Fakes in .NET Core. I know it is no longer supported in .NET Core. I just do not understand why not, I think it was a good solution in certain situation...
Donnell asked 25/9, 2018 at 11:44
4
Solved
I am starting with dotnet maui and documentation is very poor at this point.
I have existing project that targets older Android API level and have the Environment ready for this. When I try to buil...
10
Solved
I have this json
{"id":"48e86841-f62c-42c9-ae20-b54ba8c35d6d"}
How do I get the 48e86841-f62c-42c9-ae20-b54ba8c35d6d out of it? All examples I can find show to do something like
var o = System....
Serpentiform asked 28/8, 2019 at 22:14
3
Solved
As the subject suggests, even if publishing with "--self-contained true" (and with a specific -r option), the runtime still asks for missing .net installation.
I've now studied the subjec...
2
Solved
I am about to start development of a software project that should run on Linux and Windows if possible. As I already have some experience with C# I am eager to use it for this project. I assumed th...
Ivar asked 26/9, 2019 at 13:2
6
Solved
I am trying to debug from WSL2 using my VS 2022 IDE in Windows, but I get the following error:
The cwd value does indeed look wrong, but how do I fix it?
I am using .netcore 6.0.101, Ubuntu 20.04....
Adim asked 6/4, 2022 at 12:58
5
Solved
I have a project that has a
[TestFixture, Category("Oracle")]
and a
[TestFixture, Category("OracleOdbc")]
with a couple of tests which I would like to execute separately using dotnet test.
H...
Suave asked 10/1, 2018 at 20:51
6
If I have a docker file that has multiple stages (such as base and build), is there a way to change the docker command that visual studio uses when debugging the container - it seems to use the fir...
Radiometer asked 27/12, 2017 at 22:50
8
Solved
I'm setting up various windows servers to host asp.net core apps, and I need to be able to determine if they have the asp.net hosting bundle installed.
https://docs.asp.net/en/latest/publishing/ii...
Mic asked 25/7, 2016 at 12:28
4
Solved
Running dotnet ef migrations add XYZ will result in a Migrations directory being created in the project. Should this directory be committed to version control (Git, etc)?
Factory asked 23/8, 2020 at 5:30
4
Solved
I have a .NET Core 2.0 application in which I successfully use Serilog for logging. Now, I would like to log some database performance statistics to a separate sink (they are not for debugging, whi...
Screenplay asked 1/10, 2017 at 19:59
© 2022 - 2025 — McMap. All rights reserved.