Most voted ".net-core" questions
. NET Core is a general-purpose open source development platform maintained by Microsoft and the. NET community on Github. It is a cross-platform (compatible with Windows, macOS, and Linux) that can be used in device development, cloud, and Iot applications.
Learn more…160 questions
Sort by count of
-
68
votes2
answers16758
views -
29
votes1
answer916
viewsWhy was . NET Core created?
I already know what it is and how to use it, but wanted to understand the goal of Microsoft for its creation. I know I had problems in the . NET Framework, but I don’t really understand why they…
-
23
votes1
answer1547
viewsIs the . NET Framework dead?
In a small discussion with Maniero, in this answer, he said about the . NET Framework infrastructure: We’ll start talking about . NET or even BCL because the . NET Framework died. Why is . NET…
-
17
votes2
answers1493
viewsWhat can I do in . NET Framework and . NET Core not? And vice versa
I grew my eye on . NET Core (ASP.NET Core), I started with C#, but I left it by going sideways "open-source", now with this opportunity I decided to "return". I intend to use . NET Core (ASP.NET…
-
14
votes1
answer678
viewsIs . NET Core stable enough for production?
The . NET Core is already stable and reliable to the point of being used in production environments for commercial websites?
-
8
votes1
answer497
viewsWhat is DNX really?
A long time ago I asked here what is the Runtime Environment, especially on the .NET. platform. It turns out that now . NET has DNX which is ". NET Execution Enviroment". In practice we use DNX to…
-
8
votes3
answers19310
viewsAlternatives for developing in C# on Linux?
My notebook has installed the Ubuntu 14 operating system. I have great desire to enter the development in the language Csharp. But I wonder if there is a good alternative in OS like Linux, since it…
-
8
votes1
answer521
viewsWhat are the differences in ". NET"?
I took a look at this reply, but did not answer my question. As far as I know, there is .NET Framework, . NET Core, ASP.NET, . NET Standart and Mono but I don’t know the difference between them and…
.net terminology .net-core cross-platform portabilityasked 6 years, 9 months ago CypherPotato 9,292 -
7
votes2
answers6139
viewsHow to install . NET Core packages from Nuget using VS Code?
I am using VS Code to develop a . NET Core project and would like to know how to install packages in Nuget on it. In Visual Studio, there is a specific terminal for this, the Package Manager…
-
7
votes1
answer116
viewsAre the new self-contained . NET executables really native?
In that question here, was discussed about whether there is a need to install . NET 5 (or .NET Core 3) on the machine to run compiled executables, and the answer is: No, the . NET 5 is not…
-
7
votes1
answer113
viewsIs there a difference between using discard or ignoring the value returned by a method?
I have a method similar to the below: public bool FazerAlgoERetornarSeSucesso() => true; And at some point, I need to call this method, but I don’t care about the result. Normally I would do…
-
6
votes1
answer326
viewsHow to create a monolithic application executable. NET?
I wouldn’t want to do the deploy from the full DLL application, wanted something simple, no installer, wanted to generate only one executable file, but the . NET is all DLL-based. You can generate a…
-
6
votes3
answers519
viewsHow does C# run on other platforms?
As a complement to this question, run C# on a system where . NET Framework is native, it is default to run the application executable. As far as I know, C# depends on the . NET Framework to be…
-
5
votes1
answer246
viewsCompatibility between . NET Core 2.0 and . NET Framework 4.7
I am creating general purpose libraries (Dlls), to reuse them in projects . Net Core 2.0 and . Net Framework 4.7. I wish to have projects. Net Core on Linux and projects . Net Framework 4.7 for…
-
5
votes1
answer1032
viewsDependency Injection in . NET Core
I am migrating a Webapi project with . NET Framework 4.6 to . NET Core. In this my project I use Unity to do Dependency Injection: var container = new UnityContainer(); DependencyResolver = new…
-
5
votes1
answer122
viewsHow does Windows manage installation frameworks?
Today you were asking me how the management of frameworks on Windows. The new version is coming out .NET 5, that means I will have to install this version to install programs made with this version…
-
4
votes2
answers331
viewsReading HTML pages with . NET Core
Next, I have a code that performs reading of a particular web page: private string GetCodePage() { WebRequest request = WebRequest.Create(URL); WebResponse response = request.GetResponse();…
-
4
votes1
answer593
viewsReturn message together with Unauthorizedresult
I am using . NET Core 2 to create a dependency that will be injected into an API. The idea is to create a middleware to control incoming requests and act according to a number of business rules. It…
-
4
votes1
answer619
viewsHow to get a Mac-Address from a local network IP using . NET Core on Linux?
I already have tools that can identify the Mac-Address of my network devices, since the 'server' or the application is running on Windows and . NET Framework. I’ve been using the following: using…
-
4
votes1
answer113
viewsIs it possible to add icone to a program by creating in NET.core (Windows)?
I’ve only used the line commands dotnet, both to generate projects and to generate solutions (.sln), however I do not know if it is possible to use resource.rc directly with dotnet with something…
-
4
votes1
answer180
viewsCustom Data Annotations for validation
I want to create a Data Annotation to be able to check in ALL pages of my application if the user who is logging in already has 1 Condomínio registered, if there is no registered condominium it…
-
4
votes1
answer420
viewsHow to translate "Errormessage" from a "Custom Attribute"
I created a Custom Attribute which is valid only if a property CPF is a valid CPF, but when locating the application I noticed that my Custom Attribute were not having their messages located by the…
-
4
votes2
answers884
viewsProblem with currency percentage and rounding
How to maintain monetary values with only 2 decimal places when performing percentage operations? Example: Total value: R$ 377,17 Percentage divisions: 33%, 33% and 34% Problem: the sum of the value…
-
3
votes0
answers57
viewsError when using dictionary in a Iqueryable.Select() method to project columns chosen at runtime
The code fragment below aims to use the Select() method to perform generic column projections in a query, according to a list of column names provided. The program works fine if all columns are…
-
3
votes1
answer423
viewsHow to print accent on a Console Application project . NET Core
using System; namespace MediaDoisNumeros { class Program { static void Main(string[] args) { Int16 numero1, numero2; Double media; Console.Write("Digite o numero 1 : "); numero1 =…
-
3
votes1
answer780
viewsWhere can I use GUI with . NET Core?
I’ve seen some questions about GUI as one in C and others similar, and I was curious about using a GUI with . NET Core on the various platforms. I know you accept UWP on Windows, but not WPF or…
-
3
votes1
answer274
viewsUse of async with . NET Core and nhibernate
No. NET Core I know we have the async and await for request async. So far so good, but many frameworks in the market are creating methods with the signature MetodoAsync() and has the method without…
-
3
votes1
answer565
viewsInjection of dependency Generics<T>
Good morning friends. I hit a rough patch and I’m not getting past it. I have 2 projects, a webapi and a standard class, both in dot net core. In my standard design, I am working with Repository to…
mongodb generic dependency-injection .net-core asp.net-coreasked 7 years, 1 month ago Guilherme Dietrich 31 -
3
votes1
answer80
viewsIs it possible to include the necessary . NET to run a standalone application?
The title may be confusing, but the goal is to make an application written with . NET run without the . NET Framework. In practice this is almost impossible because the application depends on the .…
-
3
votes1
answer431
views -
3
votes1
answer269
viewsWhat kind of . NET library should I choose in C#project?
I’m thinking of creating a new project in c# I saw three types of libraries that caught my attention and I couldn’t distinguish exactly what would be the best applicability in each project. .NET…
-
3
votes1
answer108
viewsError when calculating decimal value
I need to calculate the interest value, this is the code: public async Task<decimal> CalculatesInterestAsync(decimal valorInicial, int meses, decimal juros) { var valorFinal =…
-
3
votes1
answer248
viewsRecord Email and Phone Array in Database with Entity
I need to save an html array of telefones and Emails, in the database, but I’m not sure how to receive such data. Phone and email number can be 0 ou N, as in the image below, one can add as many…
c# asp.net-mvc-5 asp.net-core entity-framework-core .net-coreasked 5 years, 7 months ago Matheus 616 -
3
votes1
answer94
viewsGrouping of values
I have an application that generates the following results: I would like to know how I can arrange the object in only 1 line, say have only one date, and within the date have the schedules, to have…
-
3
votes1
answer102
viewsCORS blocking . netCore 3
Good morning, I created an API on. netCore 3 and I did all the tests enabling CORS and with POSTMAN I had no problems, but when trying to access API from another computer, I am being blocked by…
-
2
votes0
answers84
viewsDotnet running error on Mac
Good evening, I did the installation of . Net Core as per instructions: https://www.microsoft.com/net/core#macos I created the project directory and when I will run (via terminal), as per command:…
-
2
votes2
answers313
views.NET Core auto executable
After creating my first console application with . NET Core on Windows 10 with Visual Studio 2017 copied to my server Linux - Ubuntu 16.04.3 LTS (already with . NET Core installed). I successfully…
-
2
votes1
answer111
viewsFilehelpers . NET CORE 2.0
I’m migrating an application to. NET CORE 2.0 and the application used the Filehelpers library, I entered the library’s github and found that it has not yet been migrated to . NET CORE ... I wonder…
-
2
votes1
answer1117
viewsProjects with synchronous and asynchronous Apis
I am developing a small project and have, for now, two entities: Product and Customer Product API is asynchronous (with Task and async) and client API is synchronous. I would like to know if there…
-
2
votes1
answer282
viewsCreating ASP.NET Core File Folder
Hello I am generating a file folder via code, but it n appears as if in fact it is inside the project/solution, like this: I would like to create (via code) the file folder so that it is actually…
-
2
votes2
answers1783
viewsX.PagedList.Mvc with Core and Bootstrap 4.0
How to use the X.PagedList.Mvc with Core and Bootstrap 4.0, and thus create a full automatic pagination.
-
2
votes1
answer406
views.NET Core + Visual Studio Code - Structure organization
I have here with me some questions about developing applications in . NET Core using Visual Studio Code: How a base project is created, such as a "Blank Solution", as in Visual Studio? How is the…
-
2
votes4
answers60
viewsRemove null fields from a model that receives a list
I need to remove all null fields, which comes from a list of Phones, I tried to do it this way, but unfortunately it didn’t work: model.Phones = model.Phones.Where(x => x.Phone != null &&…
-
2
votes1
answer231
viewsProblem installing Docker image
I’m installing a container image: microsoft/windowsservercore I am using the following command to download and install the image: docker pull microsoft/windowsservercore But it does not finish the…
-
2
votes1
answer278
views.NET Core and Mono: application development for Linux
Currently I have needed to develop applications (desktop) for Linux, and one of the requirements is that it would have to be using C#. And researching/testing, I got two options: .NET Core or Mono.…
-
2
votes1
answer116
viewsSave Phone Array to Database
I created a table of Clientes and two from customers who are ClientesTelefone and ClientesEmail in my form I am generating email fields and phone dynamically, so I would like to know how I can…
-
2
votes1
answer772
viewsPaging library for . Net Core
I’ve worked on some frameworks like Spring and Nestjs, and there I worked with a library that listed a query page. Here at . Net Core, I have to create a method to work with it. For example: public…
-
2
votes2
answers79
viewsDetecting if a Setter of a property has been called
Hello I wonder if there is a way to find out if the value of a property has changed. Example public partial class MinhaClasseExemplo { public int Id { get; set; } public String Nome { get; set; }…
-
2
votes1
answer135
viewsError while using Middleware
I’m trying to use Middleware, so that every time a user logs into the system it is being redirected to condominium registration screen, he can not use the system until you register at least 1…
-
2
votes0
answers111
viewsContainer Docker cannot access LDAP server
I have an application that needs to access an LDAP (Active Directory) server and running the application locally is working normally, however when running the application inside a Docker container…