Razor & null propagation - not working under explicit C# 6 MVC 5 project

Current project: - - - - [CodeDOM Providers for .NET Compiler](https://www.nuget.org/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform/)- [compiler element](https://msdn.microsoft.com/en-us...

Remote Debugging .NET Core Linux Docker Container - "the current source is different from the version built into .dll"

- - - - I am receiving the following error: ``` "The breakpoint will not currently be hit. A copy of TokenController.cs was found in TSL.Security.Service.dll, but the current source code is differe...

7 Jun at 02:16

Read file from resources folder in Spring Boot

I'm using Spring Boot and `json-schema-validator`. I'm trying to read a file called `jsonschema.json` from the `resources` folder. I've tried a few different ways but I can't get it to work. This is m...

Bypassing SSL Certificate Validation on DotNet Core Service Stack

I know that `ServicePointManager.ServerCertificateValidationCallback` no longer exists in .Net Core and is instead replaced with: ``` using(var handler = new System.Net.Http.HttpClientHandler()) { ...

6 Jun at 20:25

Unit Testing a custom Web API AuthorizeAttribute

I am trying to unit test, with NUnit in C#, a custom Authorize Attribute. In particular that a particular http status code and message have been returned in the case of not being authorized. My attrib...

Is there a way to list all resources in AWS

Is there a way to list all resources in AWS? For all regions, all resources.. Such as list all EC2 instances, all VPCs, all APIs in API Gateway, etc... I would like to list all resources for my accou...

4 Sep at 22:55

Electron require() is not defined

I'm creating an Electron app for my own purpose. My problem is when I'm using node functions inside my HTML page it throws an error of: > 'require()' is not defined. Is there any way to use Node fun...

17 Apr at 14:57

Align the form to the center in Bootstrap 4

I am trying to align the form to the center and keep it responsive. I have tried several ways but no success. I am trying to center all the text and the form. I am using Bootstrap v4. I am not sure if...

Convert array to tuple?

Is it possible to convert array to tuple in C#? Something like this: ``` var ar = new int[2] {5, 7}; Tuple<int,int> t = Tuple.Create(ar); ```

6 Jun at 09:34

C# I/O Parallelism does increase performance with SSD?

I've read some answers ( for [example](https://stackoverflow.com/questions/10954340/will-threading-improve-performance)) here at SO where some say that parallelism is not going to increase performanc...

How do you perform wireless debugging in Xcode 9 with iOS 11, Apple TV 4K, etc?

Wireless debugging was recently added as a feature in Xcode 9, iOS 11, and tvOS 11. Apple TV 4K doesn't have a USB port, so it requires wireless debugging. How do you perform this wireless debugging i...

28 Mar at 12:27

How to enable CORS in ASP.net Core WebAPI

I have a backend ASP.Net Core Web API hosted on an Azure Free Plan (Source Code: [https://github.com/killerrin/Portfolio-Backend](https://github.com/killerrin/Portfolio-Backend)). I also have a Cl...

19 Jan at 16:28

Copy files to output directory using csproj dotnetcore

So my issue is pretty simple. I have some files that I want to be copied to the build output directory whether it is a debug build or a release publish. All of the information I can find is about the ...

26 Mar at 21:50

Web APi OData V4 Issue "The entity '' does not have a key defined

When I run the following sample it is throwing the following exception... > Additional information: The entity 'TestEntity' does not have a key defined. I have configured the key using code first en...

How do I add a service stack license to a .NET core project?

For my service stack license I am used to adding a web config entry `<add key="servicestack:license" ... />` How do I achieve a similar effect in ServiceStack.Core since there is no web config?

5 Jun at 14:25

Why interfaces for message contracts are strongly recommended in MassTransit?

MassTransit states that we should use interfaces for message contracts : > It is strongly suggested to use interfaces for message contracts, based on experience over several years with varying leve...

5 Jun at 12:13

ASP.NET application on local IIS express to authenticate users ussing active directory

I am trying to setup my local asp.net web application to use an LDAP connection string (active directory domain controller) for user authentication. LDAP connection string points to an active directo...

Server side rendering. Web API and Angular 2

I've developed a web application built using `ASP.NET Core Web API` and `Angular 4`. My module bundler is `Web Pack 2`. `url``http://myappl.com/#/hellopage``http://myappl.com/#/hellopage` I've see...

Typed query for INNER JOIN (SELECT DISTINCT)?

Is it possible to create a typed query that produces the following SQL? ``` SELECT A.* FROM schema1.Table1 A INNER JOIN (SELECT DISTINCT column1, column2 FROM schema1.Table2) B ON A.column1 = B.colum...

5 Jun at 10:24

How to open/run YML compose file?

How can I open/run a YML compose file on my computer? I've installed Docker for Windows and Docker tools but couldn't figure out how.

Tables with schema using SqliteDialect.Provider

In my test project I register a connection using ":memory" connection string and SqliteDialect.Provider as provider. When trying to run tests that execute arbitrary sql (I have a complex join statemen...

Is it ok to use "async" with a ThreadStart method?

I have a Windows Service that uses Thread and SemaphoreSlim to perform some "work" every 60 seconds. ``` class Daemon { private SemaphoreSlim _semaphore; private Thread _thread; public v...

5 Jun at 07:44

Find All Capital Letter in a String - Regular Expression C#

I need to find all in a `string`. For example : `Electronics and Communication Engineering` : `ECE`

5 Oct at 11:34

Grid control in SSMS

I notice in (SQL Server Management Studio 2016), the query results return within a blink of a second (above 10k+ rows). The result table/grid scroll perfectly smooth, and have an extremely low memory...

28 Oct at 04:28

Wait for a coroutine to finish before moving on with the function C# Unity

I was working on making a unit move through a grid in Unity2d. I got the movement to work without problems. I would want the function MovePlayer to wait until the coroutine is finished before moving o...

4 Jun at 22:3