How to override/modify the Content property of Frame to accept multiple Views in Xamarin.Forms?
Here's the template code I have: ``` public class PopupFrame : Frame { public PopupFrame() { this.SetDynamicResource(BackgroundColorProperty, "PopUpBackgroundColor"); this.Set...
- Modified
- 24 Nov at 04:16
Can't run app because of permission in macOS v11 (Big Sur)
I installed [macOS v11](https://en.wikipedia.org/wiki/MacOS_Big_Sur) (Big Sur) yesterday and since then I am not able to run some old application. This is the message I get: > You do not have permissi...
- Modified
- 5 Sep at 20:10
string.IndexOf returns different value in .NET 5.0
When I run the following code in .NET Core 3.1, I get `6` as the return value. ``` // .NET Core 3.1 string s = "Hello\r\nworld!"; int idx = s.IndexOf("\n"); Console.WriteLine(idx); ``` ``` 6 ``` Bu...
Building .NET 5.0 project Azure DevOps pipeline
I'm trying to build a project in .NET 5.0 using Azure DevOps pipeline Build and I'm received this error [](https://i.stack.imgur.com/4i8ux.png) ``` 2020-11-14T01:59:45.8238544Z [command]"C:\Program Fi...
- Modified
- 7 Aug at 18:28
Blazor Two Way Binding Text Area inside component
I am trying to two-way bind a text area inside a child component in Blazor and I just can't figure it out. ### Parent ### Child When I update from the parent component, the child textarea updates, bu...
- Modified
- 6 May at 10:33
When to use record vs class vs struct
- Should I be using `Record` for all of my DTO classes that move data between controller and service layer?- Should I be using `Record` for all my request bindings since ideally I would want the reque...
- Modified
- 2 Jan at 02:43
Is there any way to fix package-lock.json lockfileVersion so npm uses a specific format?
If two different developers are using different versions of node (12/15) & npm (6/7) in a project that was originally created using a `package-lock.json` `"lockfileVersion": 1`, when the developer usi...
- Modified
- 13 Nov at 00:24
C# Blazor: Countdown Timer
I'm new to C# and trying to create a simple countdown timer using `System.Timer.Timers`. It didn't work as expected and I searched the internet for a solution but it didn't really fix my problem. What...
- Modified
- 2 May at 06:9
How to mock IConfiguration.GetValue
I tried in vain to mock a top-level (not part of any section) configuration value (.NET Core's IConfiguration). For example, neither of these will work (using NSubstitute, but it would be the same wi...
- Modified
- 13 Nov at 10:4
C# 9 records validation
With the new record type of C# 9, how is it possible to / null check/ etc during the construction of the object ? Something similar to this: ``` record Person(Guid Id, string FirstName, string LastNam...
- Modified
- 18 Jan at 16:53
Init + private set accessors on the same property?
Is it possible to use a public init accessor and a private setter on the same property? Currently I get error [CS1007](https://learn.microsoft.com/en-us/dotnet/csharp/misc/cs1007) "Property accessor a...
ServiceStack OAuth Issue with Github
I'm using the dotnet core 3.1, latest version of ServiceStack and I'm trying to use Google, Microsoft, and Github OAuth with it. So far with Google and Microsoft, I don't have any issues, however, wit...
- Modified
- 10 Nov at 03:46
"There was an error trying to log you in: '' " Blazor WebAssembly using IdentiyServer Authentication
I have a Blazor WebAssembly app using **IdentityServer** that comes with the template as my authentication service. I am having an issue where some users are seeing "There was an error trying to log y...
- Modified
- 7 May at 08:19
npm error - verify that the package.json has a valid "main" entry
Im playing around with a simple trading bot using binance and cctx when i run my script with `node index.js` i get this long error: ``` internal/modules/cjs/loader.js:323 throw err; ^ Err...
- Modified
- 9 Nov at 16:32
Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported
I have been having this issues while testing the new features of C# 9.0 with Visual Studio 2019 Preview. I was testing the init setter, but the compiler shows error with the message: Error CS0518 Pred...
- Modified
- 17 Feb at 06:18
In C#9, how do init-only properties differ from read-only properties?
I keep reading up on init-only properties in C#9 but I thought we already had that with read-only properties which can only be set in a constructor. After that, it’s immutable. For instance, in the cl...
Typescript - Cannot find module ... or its corresponding type declarations
I created a new project using create-react-app and yarn 2 in vs code. The editor throws errors while importing every installed library like this: > Cannot find module 'react' or its corresponding type...
- Modified
- 21 Dec at 10:52
Unable to resolve dependency tree Reactjs
I am trying to install react-tinder-card in my current project.So i am tring to install the react-tinder-card but after i use the command npm install --save react-tinder-card All i can see in my conso...
- Modified
- 6 Nov at 16:50
Accessing non-existent property 'padLevels' of module exports inside circular dependency
I just `> npm i -g phonegap@9.0.0` and `> phonegap --version`. It says not only `9.0.0` but also: ``` (node:18392) Warning: Accessing non-existent property 'padLevels' of module exports inside circula...
ServiceStack PocoDynamo C# Query on Nested object property
Below is my dynamodb row object structure. Status, Calls are 1st level columns and Inside Calls, i have nested data. ``` Record ->Status : 0 ->Calls -[0]:CapIndex : 5 ...
- Modified
- 5 Nov at 12:9
Entity Framework Core - No design-time services were found
I have a pretty basic migration file. I'm executing `dotnet ef database update --verbose` in the Package Manager Console window and nothing is getting generated in SQL Server. The final lines of outpu...
- Modified
- 4 Nov at 22:30
Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found
I'm facing an error in my file given below: ``` Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found ``` Below is my pom.xml : ``` <?xml version="1.0" encoding="UTF-8"?> <project xm...
- Modified
- 8 Feb at 11:0
404 not found error using ServiceStack ServerEventsClient with Pipedream SSE API
I'm using [Pipedream](https://pipedream.com/) as a data source which provides event data via an SSE API. As per the instructions [here](https://docs.servicestack.net/csharp-server-events-client), I'm ...
- Modified
- 1 Nov at 05:43