Build error while transitioning between branches: Your project is not referencing the ".NETFramework,Version=v4.7.2" framework
We're using Git and we have a solution which is targeting the full net framework. A couple of days ago, I've started migrating the solution to .net core. Unfortunately, something comes up which made m...
Options for controlling Destructuring of request object
I've run into a problem that I'm struggling to find a clean solution for, and Googling has not made me any wiser. (1) We have our own assembly for setting up and adding a Serilog logger to any of o...
- Modified
- 26 Jul at 14:31
XUnit InlineData with Objects?
Recently we have been trying Unit Testing in a new project, now that we want to pass a Object to our test method with `[InlineData]`, so we can utilize the same test method multiple times with multipl...
- Modified
- 26 Jul at 13:32
Web Api OWIN - How to validate token on each request
I have two applications 1. Client application build on ASP.NET MVC 2. Authentication server build on Web API + OWIN Have planned authentication as follow 1. For user login client app will make ...
- Modified
- 26 Jul at 10:32
Angular 6: saving data to local storage
I have a data table which display data from external API, I want the number of items /element on the table page should be saved in local storage Here is what I have tried so far: ``` ngOnInit() { ...
- Modified
- 31 Oct at 15:41
How to change package name in flutter?
Is there any way to change Package Name of Flutter project? I want to change package name and application name in flutter project.
- Modified
- 26 Dec at 09:26
Entity Framework Core 2.1, rename table using code-first migrations without dropping and creating new table
I'm using netcoreapp 2.1 with EF Core 2.1 and updating my database with data migrations and have come into a problem with renaming tables. My main issue here is a table (and later potentially columns)...
- Modified
- 26 Jul at 09:46
Typescript: Check "typeof" against custom type
I have a custom type, let's say ``` export type Fruit = "apple" | "banana" | "grape"; ``` I would like to determine if a string is part of the Fruit type. How can I accomplish this? The following...
- Modified
- 25 Jul at 22:57
Nginx: Failed to start A high performance web server and a reverse proxy server
I try to start this service but i can´t, the error below occur: ``` root@zabbix:/home/appliance# systemctl status nginx.service nginx.service - A high performance web server and a reverse proxy serv...
- Modified
- 25 Jul at 21:15
How do I assign a global initialized event?
I've got this code in my App.xaml.cs: ``` protected override void OnStartup(StartupEventArgs e) { EventManager.RegisterClassHandler(typeof(TextBox), TextBox.TextChangedEvent, new RoutedEventHandl...
How to do Rounded Corners Image in Flutter
I am using Flutter to make a list of information about movies. Now I want the cover image on the left to be a rounded corners picture. I did the following, but it didn’t work. Thanks! ``` getItem(var...
- Modified
- 26 Dec at 09:37
Best way to "push" into C# array
Good day all So I know that this is a fairly widely discussed issue, but I can't seem to find a definitive answer. I know that you can do what I am asking for using a List, but that won't solve my is...
How to make Login page as a default route in ASP .NET Core 2.1?
I am beginner in ASP .NET Core 2.1 and working on project which is using ASP .NET Core 2.1 with individual authentication. I want to make my login page as my default route instead of Home/Index: ```...
- Modified
- 24 Jul at 19:43
Integration testing C# WebAPI asp.NET Framework 4.6.1
I am trying to write integration tests in C# for my C# asp.NET Framework 4.6.1 WebAPI which contains simple CRUD functionalities. I have found little to no documentation on making automated integrati...
- Modified
- 24 Jul at 18:53
ServiceStack WebApi File Download From Another Service (Pass-Through)
Summary: I have an application service/API and a reporting service/API; mutually exclusive of each other (on different servers/environments; app service does not have access to reporting service file ...
- Modified
- 24 Jul at 18:22
Npgsql 4.0 Parameters and Null Values
Passing a null value using Npgsql looks something like this: ``` using (NpgsqlCommand cmd = new NpgsqlCommand("insert into foo values (:TEST)", conn)) { cmd.Parameters.Add(new NpgsqlParameter("TE...
- Modified
- 24 Jul at 15:1
ServiceStack.OrmLite: Implementing custom StringConverter affects column type of complex BLOB fields
In a previous [SO question](https://stackoverflow.com/questions/51494824/servicestack-ormlite-stringlengthattribute-maxtext-produces-longtext-how-ca) I asked how I change the MySql column type when I ...
- Modified
- 5 Jan at 23:0
ServiceStack.OrmLite: StringLengthAttribute.MaxText produces "LONGTEXT" - how can I set to "TEXT"?
Using ServiceStack's OrmLite and decorating a Property with the following attribute, creates a column of type LONGTEXT, instead o TEXT as noted in the docs: [](https://i.stack.imgur.com/l3yst.png) But...
- Modified
- 7 Mar at 12:42
How to use mouseover and mouseout in Angular 6
I have this older Angular code which works but not in the latest version of Angular 6. ``` <div ng-mouseover="changeText=true" ng-mouseleave="changeText=false" ng-init="changeText=false"> <span ng-...
- Modified
- 24 Jul at 05:43
How to Unit Test with ActionResult<T>?
I have a xUnit test like: ``` [Fact] public async void GetLocationsCountAsync_WhenCalled_ReturnsLocationsCount() { _locationsService.Setup(s => s.GetLocationsCountAsync("123")).ReturnsAsync(10); ...
- Modified
- 17 Jan at 14:25
How to tell if code is written for regular .NET or .NET Core?
I work with a code base that contains some code in regular .NET and some code in .NET Core. When I open an individual .cs file, I'm not always sure whether the file was meant to be compiled with regul...
How to pass build properties to dotnet?
In my C# and .net core program, I want to dynamically select dependency by using properties in the .csproj file. I learned from online that I can supply those properties while using the msbuild comman...
ServiceStack.OrmLite: Table collision when class name appears in different namespaces
When having two classes that has the same name, but in different namespaces, ServiceStacks OrmLite is unable to distinguish between the two. For example: ``` Type type = typeof(FirstNameSpace.BaseMod...
- Modified
- 23 Jul at 16:16
Why is F# so much slower than C#? (prime number benchmark)
I thought that F# was meant to be faster than C#, I made a probably bad benchmark tool and C# got 16239ms while F# did way worse at 49583ms. Could somebody explain why this is? I'm considering leaving...
- Modified
- 23 Jul at 15:25
IHttpActionResult vs IActionResult
I'm creating an API using .NET Core 2 to provide data for many applications developed in different technologies. I'm currently returning `IActionresult` from my methods. I've been studying what the be...
- Modified
- 23 Jul at 15:12