.net-core-3.0

.NET Core 3.0 Publish for ARM64

╄→гoц情女王★ 提交于 2020-05-12 02:46:00
问题 Does anyone know how to publish a .NET Core 3.0 application for ARM64? I can only select "linux-arm" but no "linux-arm64". Setting linux-arm in combination with x64 also doesnt work. It says the settings are not compatible. As stated here it should already be supported: https://github.com/dotnet/core/blob/master/release-notes/3.0/3.0-supported-os.md 回答1: The linked article points to the supported OSs, not the list of runtime identifiers. An explanation of an RID and a list of common ones can

Janusgraph using Gremlin query in .net core 3.0

孤者浪人 提交于 2020-04-29 03:28:46
问题 We currently use gremlin.net library in a net core 3.0 application to connect to Janusgraph db. We need to execute below query in janusgraph g.V('12345').outE('myedge').has('datetime',lt(1581922847)).order().by('datetime', incr).limit(100).valueMap().as('time').inV().as('user').select('time','user') The query runs fine as long as we dont have inV() part. If we have inV() , we are facing below error, ScriptEvaluationError: java.util.LinkedHashMap cannot be cast to org.apache.tinkerpop.gremlin

Janusgraph using Gremlin query in .net core 3.0

懵懂的女人 提交于 2020-04-29 03:28:17
问题 We currently use gremlin.net library in a net core 3.0 application to connect to Janusgraph db. We need to execute below query in janusgraph g.V('12345').outE('myedge').has('datetime',lt(1581922847)).order().by('datetime', incr).limit(100).valueMap().as('time').inV().as('user').select('time','user') The query runs fine as long as we dont have inV() part. If we have inV() , we are facing below error, ScriptEvaluationError: java.util.LinkedHashMap cannot be cast to org.apache.tinkerpop.gremlin

Nullable reference type information not exposed from FirstOrDefault

让人想犯罪 __ 提交于 2020-04-27 05:59:42
问题 I wanted to test out the new nullable reference types feature in C# 8.0. I started a new project targeting .NET Core 3.0, enabled nullable reference types in the .csproj file, and started coding. I created a simple list that takes a string[] and returns the string in that array that equals abc . Now, because I am not certain that abc actually exists in the array, I use FirstOrDefault() , which should default to null if a match is not found. using System; using System.Linq; public string

JsonPatchDocument is null after migration to .Net Core 3

让人想犯罪 __ 提交于 2020-04-18 06:48:27
问题 I have a AspNetCore-WebApi-Project with several patch-operations, which worked fine with Core 2.2. After migration to Core 3 the [FromBody] JsonPatchDocument<T> is null. My Get/Post-Methods are still functioning as expected. This is one part of my Startup: services.AddDbContext<MyContext>(options => options .UseLazyLoadingProxies() .UseNpgsql(Configuration.GetConnectionString("MyConnectionString"), opt => opt.UseNodaTime())); services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo {

.NET Core 3.0 and IIS: HTTP Error 500.30 - ANCM In-Process Start Failure: failed to load coreclr

不问归期 提交于 2020-04-17 20:23:21
问题 My application runs fine within IIS Express on my development workstation, but I am having trouble deploying it to IIS. I receive the following error when I browse to the application: HTTP Error 500.30 - ANCM In-Process Start Failure There's not much in the Windows Event Log: Application '/LM/W3SVC/2/ROOT' with physical root 'c:\inetpub\cashflow\' failed to load coreclr. Exception message: Error occured when initializing inprocess application, Return code: 0x80008083 As far as I can see, the

Entity Framework 3.0 Contains cannot be translated in SQL as it was in EF Core 2.2

旧城冷巷雨未停 提交于 2020-04-10 14:04:07
问题 I am trying to migrate a Web API from .NET Core 2.2 to .NET Core 3.0 and I have stumbled across the following: public Dictionary<int, Tag> GetTagMap(IList<int> tagIds = null) { var tags = context.Tag.AsNoTracking(); if (tagIds != null) tags = tags.Where(t => tagIds.Contains(t.TagId)); return tags .ToList() // explicit client evaluation in 3.0 .ToDictionary(t => t.TagId, t => t); } This used to generate a SQL statement similar to this one: SELECT TagId, Name FROM Tag WHERE TagId IN (1, 2, 3)

Entity Framework 3.0 Contains cannot be translated in SQL as it was in EF Core 2.2

被刻印的时光 ゝ 提交于 2020-04-10 14:03:18
问题 I am trying to migrate a Web API from .NET Core 2.2 to .NET Core 3.0 and I have stumbled across the following: public Dictionary<int, Tag> GetTagMap(IList<int> tagIds = null) { var tags = context.Tag.AsNoTracking(); if (tagIds != null) tags = tags.Where(t => tagIds.Contains(t.TagId)); return tags .ToList() // explicit client evaluation in 3.0 .ToDictionary(t => t.TagId, t => t); } This used to generate a SQL statement similar to this one: SELECT TagId, Name FROM Tag WHERE TagId IN (1, 2, 3)

Entity Framework 3.0 Contains cannot be translated in SQL as it was in EF Core 2.2

半腔热情 提交于 2020-04-10 14:02:06
问题 I am trying to migrate a Web API from .NET Core 2.2 to .NET Core 3.0 and I have stumbled across the following: public Dictionary<int, Tag> GetTagMap(IList<int> tagIds = null) { var tags = context.Tag.AsNoTracking(); if (tagIds != null) tags = tags.Where(t => tagIds.Contains(t.TagId)); return tags .ToList() // explicit client evaluation in 3.0 .ToDictionary(t => t.TagId, t => t); } This used to generate a SQL statement similar to this one: SELECT TagId, Name FROM Tag WHERE TagId IN (1, 2, 3)

HTTP Error 500.31 - ANCM Failed to Find Native Dependencies in IIS

限于喜欢 提交于 2020-04-10 07:50:46
问题 I try to run a Blazor application. Web.Server runs .NET Core 3.0 Web.Client runs .NET Standard 2.0 Web.Shared runs .NET Standard 2.0 After publishing and uploading the application to IIS i get this error: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Event Viewer contains this error message: HTTP Error 500.31 - ANCM Failed to Find Native Dependencies When I