How to play a sound in NETCore?
I'm trying to play a sound inside a .Net Core console application and I can't figure this out. I am looking for something managed inside the .Net Core environment, maybe like regular .Net : ``` // N...
- Modified
- 16 Mar at 21:56
Using C# 7 features inside of a View in an ASP.NET MVC Core project
I've looked for other questions related to this, but none seem to be quite what I'm looking for. I have a website running on ASP.NET Core with the new project structure in VS2017. Code files using C#...
- Modified
- 15 Jul at 21:27
Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7
I installed the Kotlin plugin into my app (v. v1.1.1-release-Studio2.2-1) and then selected "Configure Kotlin in Project" I selected compiler and runtime version of 1.0.7. Kotlin updated my Gradle f...
- Modified
- 20 Jun at 09:12
Web Api HTTPPost not accepting int
I am trying to just pass in `body` a `int` and it does not work Why do I need to create a class with a property of type int ? (then it works) ``` [HttpPost] [Route("api/UpdateMainReversed")] publ...
- Modified
- 16 Mar at 19:5
ASP.NET Core Application (.NET Framework) for Windows x64 only error in project.assets.json
I want to simplify my configuration in my ASP.NET Core Web Application (.NET Framework) application using VS 2017. I already know that my website will be running under Windows/IIS in x64 environment ...
- Modified
- 21 Mar at 10:6
Add VSIX features to C# Class Library
I have an existing Single-File Generator (housed in a C# Class Library). How do you add the VSIX project-level features to this project? The end goal is to compile my class library project and get a V...
- Modified
- 2 May at 14:13
TCP support in Azure IoT Hub
Azure IoT Hub Supports AMQP, MQTT, HTTP protocols. In order to customize these protocols we have Azure IoT protocol gateway. I can find good samples on MQTT protocol customization. I need some sample ...
- Modified
- 6 Feb at 14:24
@ConfigurationProperties Spring Boot Configuration Annotation Processor not found in classpath
I try to make completion for custom properties in . I tried to create a simple project via : 1. Created a new Gradle project with Spring Boot Initializer (I haven't checked anything at all). 2. Creat...
- Modified
- 9 Sep at 15:5
Property value of "base" in debugger
I'm debugging the following code: ``` class A { public virtual string X => "A"; } class B : A { public bool OwnX { get; set; } = true; public override string X => OwnX ? "B" : b...
- Modified
- 16 Mar at 15:9
Convert class to dynamic and add properties
I have a class `MyClass`. I would like to convert this to a dynamic object so I can add a property. This is what I had hoped for: ``` dynamic dto = Factory.Create(id); dto.newProperty = "123"; ``` ...
- Modified
- 16 Mar at 14:29
Ansible: To use the 'ssh' connection type with passwords, you must install the sshpass program"
Recently I created new roles called spd in my existing project. While other script works fine in the setup. This newly created fails. Please point me to what is going wrong here ``` ansible/roles ...
- Modified
- 22 Nov at 13:27
Disable back button in react navigation
I'm using react native navigation (react-navigation) StackNavigator. it starts from the Login page throughout the whole lifecycle of the app. I don't want to have a back option, returning to the Logi...
- Modified
- 8 Oct at 07:13
ASP.NET Core - Download .exe returns 404 error
I have a ASP.NET core MVC application and in the wwwroot folder, I've added another folder called "Shaun" and in that folder I've dropped an exe to try and download: [](https://i.stack.imgur.com/MSj0...
- Modified
- 16 Mar at 10:37
No provider for Router?
Im getting this error: > EXCEPTION: Error in ./AppComponent class AppComponent - inline template:0:0 caused by: No provider for Router! This is my app component: ``` import {Component} from '@angular...
Visual Studio 2017 fails to install offline with "Unable to download installation files"
So I've created an offline installed of VS 2017 Community on my laptop using this command: > --layout "D:\Downloads\VS Community 2017" --lang en-US --add Microsoft.VisualStudio.Component.CoreEditor ...
- Modified
- 2 Jun at 13:57
How Request and Response will got process in service stack?
I am using service stack to build the create RESTful services, not have depth knowledge of it. This works as sending request and getting response back. I have scenario and my question is depends on it...
- Modified
- 16 Mar at 10:2
Unable to determine composite primary key ordering for type
> {"Unable to determine composite primary key ordering for type 'Conference_Project.Models.Login'. Use the ColumnAttribute (see [http://go.microsoft.com/fwlink/?LinkId=386388](http://go.microsoft....
- Modified
- 16 Mar at 03:33
Will System.Random always generate predictable numbers for a given seed across platforms?
I know that `Object.GetHashCode` can return different values for the same object (an identical string, for example) depending on the platform. I thus can't rely on this for a cross-platform simple has...
Fix all 'Naming rule violation' shown in VS2017 for all opened files at once
Is there any tool witch allows to apply fix for all VS2017 messages like ""? In VS2017 it has to be done manually one by one, it shouldn't be hard to add such feature in IDE since all elements are li...
- Modified
- 15 Dec at 10:27
ServiceStack NativeTypesFeature AddResponseStatus
I'm writing a backend using ServiceStack. our main front end client is an Angular 2 application using TypeScript. To that end, we are using the DTOs that are generated by the services when hitting /...
- Modified
- 15 Mar at 20:48
ServiceStack HttpUtils + Proxy Server
I am using ServiceStack HttpUtils to connect to a third-party REST API. How do I pass in Proxy Server and Proxy Port when making requests? Thanks rudrvij
- Modified
- 15 Mar at 19:11
How to make two plots side-by-side
I found the following example on matplotlib: ``` import numpy as np import matplotlib.pyplot as plt x1 = np.linspace(0.0, 5.0) x2 = np.linspace(0.0, 2.0) y1 = np.cos(2 * np.pi * x1) * np.exp(-x1) ...
- Modified
- 18 Aug at 03:38
Swagger API not refreshing the documentation
I am using the Swagger API for documenting my REST services. Earlier my controller method didn't have the informative comments, so Swagger API was not showing up the description, but now even after up...
- Modified
- 6 Dec at 00:21
Waiting for Target Device to Come Online
I recently updated to Android Studio 2.3, and now when I try to run the application, the emulator does not come online. It times out after 300 seconds. Additionally, The app has been experiencing a F...
In ASP.NET Core, how do I use a service that is setup in ConfigureServices() in Configure()?
I have a service I wrote that helps with configuration. The service is set up in the Startup class's ConfigureServices method as: ``` public void ConfigureServices(IServiceCollection services) { ...
- Modified
- 18 Nov at 06:34