Questions tagged as '.net-core'

0
answers

Error while running Asp Net Core Application

I'm getting the following error:    An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.       One or more comp...
asked by 29.11.2018 / 17:34
0
answers

"Could not parse expression '...: The given arguments did not match the expected arguments" [closed]

I am using the CompiledQueries feature of the framewok core 2.0 entity but even though it does not syntax error, when the program is running, I get this exception:    Could not parse expression 'value   (Microsoft.EntityFrameworkCore.Query.In...
asked by 08.09.2018 / 09:26
0
answers

Entity mapping with .Net Core 2

I have the following entities: public class Transacao : IEntity { [Key] public int Id { get; private set; } public int LojaId { get; set; } public virtual Loja Loja { get; set; } public int Adquir...
asked by 02.06.2018 / 00:26
2
answers

Return of a List From View to the Controller - Asp.Net Core

I have a viewmodel called Profile, in this viewmodel there is a ListProperties property and a string - title. public class PerfilViewModel { [Key] [DisplayName("Código")] public int Id { get; set; } [Required(ErrorMessage = "O...
asked by 27.03.2018 / 22:50
0
answers

How to change the default folder of an ASP .NET Core application?

I'm trying to set up an ASP .NET Core Web site to host an AngularJS application. The structure that my "index" page is using is: /wwwroot/app/index.html I tried some settings in the Startup.cs file, like this: app.UseStaticFiles(ne...
asked by 02.08.2017 / 18:23
0
answers

Problem in System.Data.SqlClient when upgrading to 5 core aspnet

I updated all my project to aspnet 5 core because I was using the dnx vnext and apparently it worked everything right, but by conducting tests I noticed that some values did not come correct and to debug I realized that the parameter array SqlPa...
asked by 09.08.2016 / 16:16
1
answer

Where can I use GUI with .NET Core?

I've seen some questions about GUI like one in C and the like, and I was curious about the use of a GUI with .NET Core on various platforms. I know it accepts UWP in Windows but not WPF or Windows Forms. And on the other desktop and mobile pla...
asked by 04.08.2017 / 15:06
2
answers

System.Configuration Reference

I'm trying to use the System.Configuration reference to finish integrating the instances of my code with a .txt block. However, I noticed that unlike Visual Studios on YouTube videos, mine does not have the References tab below the Dependencies...
asked by 31.07.2017 / 19:47
1
answer

How to generate Microsoft Excel spreadsheets in .NET Core?

I need to generate Microsoft Excel spreadsheets through .NET Core , is there any library that does this? In my searches I could only find Microsoft's own Open XML SDK , but support for .NET Core is still under development.     
asked by 26.11.2016 / 23:11
2
answers

Is it wrong to return null in a Task?

I have the following implementation of MemoryCache : public Task<News[]> GetCandidateNewsAsync(string candidate) { return _cache.GetOrCreateAsync(candidate, async factory =>// _cache é um IMemoryCache { var candi...
asked by 02.08.2018 / 23:33