The specified framework 'Microsoft.NETCore.App', version '2.1' was not found
I am developing an Angular 6 application in dotNet Core 2.1. Everything is working flawlessly, until I got to setting up EFCore. All my models are defined and context created. Running `dotnet ef migra...
- Modified
- 18 Nov at 10:33
Incorrect syntax near 'OFFSET'. Invalid usage of the option NEXT in the FETCH statement "in Entity Framework core"
Here's my code: ``` var result = dbContext.Specialty.OrderByDescending(u => u.IdS) .Skip(20) .Take(10) .AsEnumerable(); ``` : >
- Modified
- 17 Nov at 11:19
Python3 Determine if two dictionaries are equal
This seems trivial, but I cannot find a built-in or simple way to determine if two dictionaries are equal. What I want is: ``` a = {'foo': 1, 'bar': 2} b = {'foo': 1, 'bar': 2} c = {'bar': 2, 'foo':...
- Modified
- 17 Mar at 12:20
How can I run a foreach loop in the immediate window of visual studio?
I am trying to write values to a file using the `Immediate Window` in Visual Studio 2017. I've got a variable called `_myItems` which is of type `Dictionary<int, Dictionary<int, List<int>>>`. I did ...
- Modified
- 21 Nov at 08:51
Does ServiceStack Cache Internal Requests?
If I use the .ToOptimizedResult (documented [here](https://docs.servicestack.net/caching)) from a "bare" request like so: ``` var svc = new MyService(); var svcResul = svc.Any(new requestDTO() {..});...
- Modified
- 16 Nov at 11:35
ServiceStack trying to bind private fields classes generated via service reference instead of public properties
There is a remote service which I'm trying to get to send me messages via http POST requests using SOAP. I generated the service DTOs using the integrated in visual studio option "Add service referenc...
- Modified
- 16 Nov at 10:44
.NET Core X509Certificate2 usage (under Windows/IIS, Docker, Linux)
I am really trying a long time to use certificates in .NET Core API. Basically where I need to use them is in a .NET Core web api running on IIS and docker. Certificates I need to use are for: [Mic...
- Modified
- 30 Nov at 07:7
React Hook Warnings for async function in useEffect: useEffect function must return a cleanup function or nothing
I was trying the `useEffect` example something like below: ``` useEffect(async () => { try { const response = await fetch(`https://www.reddit.com/r/${subreddit}.json`); const json ...
- Modified
- 30 Sep at 23:5
Blazor, ASP.NET Core Hosted vs Server Side in ASP.NET Core
I am trying my hands on blazor.Net which is an experimental framework. I already developed a small project in this Framework and its awesome. But after recent update in Blazor Language Service on 14 N...
- Modified
- 23 Feb at 05:41
This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer
This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer. but my android studio version is 3.2.1 and there is no new update from Google
- Modified
- 16 Nov at 04:28
ValueTuple naming conventions
When naming a ValueTuple element, should they be capitalized or not? ``` (string Name, int Index) rec; ``` or ``` (string name, int index) rec; ``` It seems the convention is PascalCase See: [htt...
- Modified
- 5 Feb at 22:38
.NET Core 2.2 Can't be Selected In Visual Studio Build Framework
Previously, I was able to select the .NET Core 2.2 Framework in the properties section of the .NET Core project, but after the latest visual studio updates I haven't been able to. [](https://i.stack...
- Modified
- 15 Nov at 23:27
How to change size of mat-icon on Angular Material?
mat-icon tag of Angular Material always has default size is 24px. So how to change it ...??? ``` .mat-icon { background-repeat: no-repeat; display: inline-block; fill: currentColor; height: 24px; wid...
- Modified
- 15 Nov at 04:54
Lottie.Forms - Load from EmbeddedResources
I've got a `AnimationView` defined in AirBnb's `Lottie` Framework which should load a file placed inside my Resource folder inside my Xamarin.Forms Project (the portable one) ``` <forms:AnimationView...
- Modified
- 14 Nov at 19:14
Has been blocked by CORS policy: Response to preflight request doesn’t pass access control check
I have created trip server. It works fine and we are able to make `POST` request by Insomnia but when we make `POST` request by axios on our front-end, it sends an error: ``` has been blocked by CORS...
- Modified
- 5 Jul at 10:46
Is there a way to add claims in an ASP.NET Core middleware after Authentication?
I have this in my startup: ``` public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else ...
- Modified
- 14 Nov at 08:20
ASP.NET Core web service does not load appsettings.json into configuration
I have an ASP.NET Core 2.1 Web Application with Razor Pages which has AAD authentication information defined in the `appsettings.json` file (courtesy of the default application template - see below on...
- Modified
- 14 Nov at 16:18
ServiceStack: AppHost does not support accessing the current Request via a Singleton
I'm encountering the following exception when trying using `this.SessionAs<T>` within one of my services: > "AppHost does not support accessing the current Request via a Singleton" The offending c...
- Modified
- 14 Nov at 16:52
Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code
``` Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks Showin...
- Modified
- 31 Dec at 13:44
Why is ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ the native name of the U.S.?
When I use this code: ``` var ri = new RegionInfo("us"); var nativeName = ri.NativeName; // ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ ``` why is `nativeName` then the string `"ᏌᏊ ᎢᏳᎾᎵᏍᏔᏅ ᏍᎦᏚᎩ"` (in [Cherokee](https://en.w...
- Modified
- 13 Nov at 21:10
java.lang.IllegalStateException: Failed to introspect Class
I am trying to add Elasticsearch to my project. I have addded the necessary dependencies to my pom.xml file. When I run the server I am getting this error: > ``` java.lang.IllegalStateException: Fail...
- Modified
- 14 Nov at 07:25
SwaggerUI not display enum summary description, C# .net core?
I used [https://learn.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-2.1&tabs=visual-studio#xml-comments](https://learn.microsoft.com/en-us/aspnet/core/tuto...
- Modified
- 14 Nov at 05:3
Do C# 8 default interface implementations allow for multiple inheritance
According to [https://blogs.msdn.microsoft.com/dotnet/2018/11/12/building-c-8-0/](https://blogs.msdn.microsoft.com/dotnet/2018/11/12/building-c-8-0/), one of the new features coming in C# 8 is the def...
- Modified
- 9 Sep at 14:42
how to apply common configuration to all entities in ef core
I have entities derived from a base entity in my application which uses ef core code-first approach. ``` public abstract class BaseEntity<T> : IEntity<T> { [Key] [DatabaseGenerated(Database...
- Modified
- 13 Nov at 07:5
Is ArrayPool<T>.Rent(Int32) Method thread-safe?
I just found out about ArrayPool existence, but it's documentation is somewhat lacking. I'd like to know if [Rent(.)](https://learn.microsoft.com/en-us/dotnet/api/system.buffers.arraypool-1.rent?view...
- Modified
- 13 Nov at 04:55