Most voted "dotnet-cli" questions
19 questions
Sort by count of
-
4
votes2
answers489
viewsASP.NET Core Isdevelopment
When creating a project with the dotnet cli dotnet new Razor -o Razorpagescontacts How do I change the environment variable to developer mode when running the application using dotnet run. Since in…
-
3
votes2
answers900
viewsError while trying to add session to startup
I have a problem, always when I will compile the solution this giving error: System.Invalidoperationexception: 'Unable to resolve service for type 'Microsoft.AspNetCore.Session.Isessionstore' while…
-
1
votes1
answer400
viewsHow to convert this Json to Objects in C#
How to convert this JSON to a C object#? { "Maquinas":{ "Maquina1":[ { "comando":"Get", "enderecoip":"192.168.254.221", "port":"3000", "usuario":"teste", "Senha":"123456" }, {…
-
1
votes1
answer936
viewsImport data from an excel spreadsheet into the Epplus-database
Gentlemen, I have the following problem: I created the code below, I made some changes, however I cannot import my file. My application is in .NET, and the database is the Oracle Sql, and adapted…
-
1
votes0
answers16
viewsImplementing dummy to windows form
i’m in a project trying to find the best way to implement an Interactive dummy to a windows form software. I think the tools on visual studio aren’t good enough to do so. Any suggestions of…
-
1
votes1
answer150
viewsdotnet error : Unable to obtain lock file access on '/tmp/Nugetscratch/lock/
Steps to play dotnet build or dotnet run Expected behaviour Run or Build app Current behavior Getting ready... The template "ASP.NET Core with Angular" was created successfully. Processing…
dotnet-cliasked 5 years ago Limup 11 -
1
votes1
answer39
viewsRelationship Problems Entity Framework Core 3,
I’ll expose the code first, then explain the problem. Pupil.Cs using System.Collections.Generic; namespace SalaDeAula.Models { public class Aluno { public int AlunoId { get; set; } public string…
-
0
votes1
answer195
viewsCreate a list and insert the sheet data into the database when importing
I have a method protected void importar_Click(object sender, EventArgs e) and inside it I check if the file was selected, and validate the file extension. This system is a file import system of a…
-
0
votes0
answers285
viewsDocker - Access the container by IP in windows
I have Docker installed in windows 10. When running Nginx I can access the address http://localhost:8080/. However, when using the command below: docker inspect -f '{{range…
-
0
votes0
answers17
viewsaspnet-codegenerator does not find the Generator 'controller'
when I try to turn the command: dotnet aspnet-codegenerator controller -h I have the following return: Selected Code Generator: controller No code generator found with the name 'controller'. No code…
-
0
votes0
answers61
viewsCommunication between micro services
Hello I am developing an architecture in micro services dotnet a software in the retail area (retail, for who is en). I have three micro services: Client, Catalog and Command. Customer: all customer…
-
0
votes0
answers25
viewsWhat is the operation behind the environment variables?
Hi, I’m new to programming, I downloaded the SDK from. NET 5 to learn about, but I came across his command line in English, I don’t really know what defines the language, but I researched and found…
-
-1
votes1
answer1380
viewsError No service for type 'Microsoft.AspNetCore.Http.Ihttpcontextaccessor' has been Registered
To help those who are going through the same problem (ANSWER BELOW). Scenario: I am developing an ASP.NET CORE MVC application where I am working with Httpcontextaccessor and the error occurs below.…
-
-1
votes1
answer114
viewsMicrosoft.AspNetCore.Spaservices.Extensions. Does not exist
I just installed VS2019 into my new machine. And to test, I created a simple project. I noticed you no longer have the . net 3.1 but the 5. But my projects are in version 3 and I need them to…
-
-1
votes1
answer160
viewsBuild failed. - error creating migration
Good afternoon. I am starting a web project that is generating an error using the command: "dotnet Ef database drop" I used at the end of the -v command to generate a complete message. Error…
-
-1
votes1
answer34
viewsSending an E-mail c#
Guys, I need help. I have the following email sending controller, where I send an email for password retrieval. this email will be sent from a simple html I have in the templates folder. My doubt is…
-
-1
votes0
answers19
viewsHow does the "Using" directive find Nuget packages?
Hello, I’m beginner in programming, I’m using. NET and after installing a package by Nuget did not understand how the Using directive finds the package I want, as well as its classes. I don’t know…
-
-2
votes1
answer819
viewsBoletos.Net com . NET Core(v2.0) C#
I am trying to use Boletosnet to generate a boleto and later a PDF of it, but when I try to use any method of the library, an error is shown "Reference to type "Control" declares that it is set in…
-
-2
votes1
answer33
viewsI’m in trouble, Nuget packages are all up to date and I have no idea how to fix
Unfortunately I can’t share the code on account of a contract with the company, but if you want the written error: Server Error in Application '/'. Could not load file or Assembly…