Questions tagged as '.net-core'

1
answer

Problem installing image docker

I am installing an image of the container: microsoft / windowsservercore I'm using the following command to download and install the image: docker pull microsoft/windowsservercore However, it does not finish the installation. After a few...
asked by 05.07.2018 / 19:14
1
answer

Creating folder of ASP.NET Core files

Hello, I am generating a file folder via code, but it does not appear as if it were actually inside the project / solution, like this: Iwouldliketocreate(viacode)thearchivefoldersothatitisactuallywithintheproject/solution.Likethis: Than...
asked by 17.08.2018 / 02:37
0
answers

Error using dictionary in an IQueryable.Select () method to design chosen columns at runtime

The code fragment below is intended to use the Select () method to perform generic column projections on a query, according to a list of given column names. The program works fine if all the columns are of type 'string', but triggers the excepti...
asked by 16.06.2017 / 21:32
0
answers

Error running DotNet on Mac [closed]

Good evening, I installed the .Net Core as per instructions: link I created the project directory and when will I execute (via terminal), as command: dotnet new I get the error below:    Unhandled Exception: System.TypeInitializatio...
asked by 02.10.2016 / 23:57
1
answer

Projects with synchronous and asynchronous APIs

I'm developing a small project and I have two entities for now: Product and Customer The product API is asynchronous (with Task and async) and the client API is synchronous. I wonder if there is any problem in using these two approaches...
asked by 07.08.2018 / 13:46
1
answer

Problems when referencing a classlibrary of .net framework core - C #

I need to reference a .NET class library in my WPF layer which is a .NET Framework layer. But it bursts a compilation error saying that it can not be referenced. The error message is:    The project "ProjectName.csproj" is destined 'ne...
asked by 10.01.2018 / 09:45
1
answer

Ignore files at the time of sending to repository

I have a .net core project on bitbucket and I use visual studio 2017 to do the operations next to the repository. The problem is that even though I have not made any changes to the project, when I give rebuild it identifies 90 files on th...
asked by 28.12.2018 / 12:22
1
answer

"JsonResult" does not contain a constructor that accepts 0 arguments

I'm trying to return a JsonResult for my View, but it's returning the following error.    "JsonResult" does not contain a constructor that accepts 0 arguments Would you help me out? [HttpGet] public async Task<IActionResult> GetAl...
asked by 16.10.2018 / 19:07
1
answer

Use ILogger with .Net Core 2

I am studying .Net Core 2 and I have a question. I am trying to get error in my Repository layer and only saw example in Controller. Any specific reason for this? Here are my codes: appsettings.json { "ConnectionStrings": { "Defaul...
asked by 27.05.2018 / 02:02
1
answer

Migration with possible data loss

When generating an update of db that results in possible loss of data efcore shows alert:    An operation was scaffolded that may result in the loss of data.   Please review the migration for accuracy. (In this specific cas...
asked by 11.01.2017 / 02:43