Is Microsoft Sync Framework alive?

According to the MS documentation Sync Framework Toolkit ([https://code.msdn.microsoft.com/Sync-Framework-Toolkit-4dc10f0e](https://code.msdn.microsoft.com/Sync-Framework-Toolkit-4dc10f0e)) is a legac...

How do I validate the DI container in ASP.NET Core?

In my `Startup` class I use the `ConfigureServices(IServiceCollection services)` method to set up my service container, using the built-in DI container from `Microsoft.Extensions.DependencyInjection`....

ServiceStack Razor MinifyHtml

Use the RazorFormat plugin in .netframework, which has a MinifyHtml property. Why does not the .netcore use this plug-in without the MinifyHtml property? in .netframework ``` Plugins.Add(new RazorFo...

7 Mar at 09:50

Add-Migration Value cannot be null. Parameter name: language

I am trying to create a new migration but I get an System.ArgumentNullException saying: ``` System.ArgumentNullException: Value cannot be null. Parameter name: language at Microsoft.EntityFramewo...

Executing a T4 text template in Visual Studio Code

I created a T4 text template (`.tt`) file in Visual Studio Code, but unlike Visual Studio 2017 (or 2015 ,...) it won't generate the output file after saving the `.tt` file. How can I generate the outp...

What is "random-state" in sklearn.model_selection.train_test_split example?

Can someone explain me what `random_state` means in below example? ``` import numpy as np from sklearn.model_selection import train_test_split X, y = np.arange(10).reshape((5, 2)), range(5) X_train,...

Moving from EF6 to EF Core 2.0

I just started moving my MVC5 project with EF6x to MVC Core and EF Core but have a big problem with my entities configuration's. How you can migrate a EF6 Fluent configure to EF core? I need a guide ...

How to remove whitespace from a string in typescript?

In my angular 5 project, with typescript I am using the .trim() function on a string like this, But it is not removing the whitespace and also not giving any error. ``` this.maintabinfo = this.inner...

7 Mar at 11:6

Difference between HttpClient PostAsync and SendAsync

Working on a project where a WPF front end, and trying to get a handle on async calls to `HttpClient` and I've been going around and around trying to get `PostAsync` to work, but it routinely appears ...

22 Aug at 22:6

testing in .net framework

I have created a unit test project targetting .NET Framework 4.6.1. The tests appear in Test Explorer and run fine in Visual Studio 2017. I want to set up a build process, so I want to run the tests ...

VSCode format curly brackets on the same line c#

When using the Format Document command I'd like to change how the code formats. I'm completely new to VSCode and I'm still having trouble navigating the settings, so easy to understand replies would b...

6 Mar at 16:48

How to implement interface with additional parameters/info per implementation

My MVC webapp allows users to add and delete images. The UI calls `ImageService.SaveImage(...)` in my business layer which internally uses a flag that tells the method to save to either Azure or the f...

6 Mar at 15:24

ASP.NET Core 2.0 ngrok 502 Bad Gateway Error

I have been using ngrok with ASP.NET 4.X without encountering any problems. Unfortunately, when I try to forward app build in ASP.NET Core 2 I run into a problem that I can't solve. I tried following ...

Making ServiceStack RedisSentinel use a RedisManagerPool instead of a PooledRedisClientManager

Using ServiceStack version 4.0.40. I am trying get RedisSentinel to use the RedisManagerPool instead of the PooledRedisClientManager so it will allow clients above the client pool size. I see this...

6 Mar at 14:25

ASP.NET Core include timestamp in all log entries

I have a ASP.NET Core 2.0 application with built-in console logging enabled. Here is the WebHost creation: ``` var webHost = WebHost.CreateDefaultBuilder(args) .UseUrls("http://localhost:...

Removing Conda environment

I want to remove a certain environment created with conda. How can I achieve that? Let's say I have an active `testenv` environment. I tried, by following documentation, with: ``` $ conda env remove ...

24 Feb at 18:42

How to upload images and file to a server in Flutter?

I use a web service for image processing , it works well in Postman: [](https://i.stack.imgur.com/UAHqI.png) Now I want to make http request in flutter with Dart: ``` import 'package:http/htt...

19 Jun at 06:18

Uwp app crash immediately after compiled with .net native toolchain

I'm creating an uwp app. My app works well in debug mode. But when compiled with .net native toolchain, which is essential to publish app to the Store, it crash immediately. I was trying to enable all...

31 May at 15:15

Simple way to keep Front-end Angular 5 and back-end Web API code separate?

I have developed an Angular 5 app with plenty of moving parts (Services, Bootstrap, Angular Material, internal+external JS scripts, etc). Now I want to add database connectivity to this app as well (M...

'DbContextOptionsBuilder' does not contain a definition for UseNpgsql()

I am facing an issue while giving the connectionstring to get it connect to PostgreSQL through the `AddDbContext()` method in ConfigureServices method of Startup.cs I'm getting this error while calli...

Creating an IReadOnlyList<string>

How do I create an `IReadOnlyList<string>` with some values in it? I found an example of `ReadOnlyCollection` which seems to convert an existing collection to an `ReadOnlyCollection` but that approac...

5 Mar at 16:28

Combining Flutter frontend with .NET Core backend for Android and iOS

Currently working for a company that use .NET (not Core) but want to switch to .NET Core and thought to do so by creating an app with a Flutter.io frontend and .NET Core backend. The app w/ backend is...

5 Mar at 15:45

Container runtime network not ready: cni config uninitialized

I'm installing kubernetes(kubeadm) on centos VM running inside `Virtualbox`, so with yum I installed `kubeadm, kubelet` and `docker`. Now while trying to setup cluster with `kubeadm init --pod-netwo...

20 Feb at 06:10

Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior

I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added as a dependency in build.gradle : I am using Android Studio 3.2 Canary 4. >...

Where does the ASP.NET Core logging API as default store logs?

In the ASP.NET Core 2.0, I use the [default logging API](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?tabs=aspnetcore2x). My app is hosted as an Azure Web App. (I don't need ...