.net-core-3.1

GraphQL Documentation Explorer not showing in browser .net core 3.1

女生的网名这么多〃 提交于 2021-01-24 09:36:32
问题 i am new to GraphQL, i have build a sample project using GraphQL which is working fine, but 'Documentation Explore' (my custom schema) not loaded in Browser .net core 3.1 also attached StartUp.cs . note : Which was works in .net core 2.0. here is startup.cs using GraphiQl; using GraphQL; using GraphQL.Server; using GraphQL.Types; { public class Startup { public void ConfigureServices(IServiceCollection services) { services.Configure<IISServerOptions>(options => { options.AllowSynchronousIO =

.NET Core 3.1 - Could not load file or assembly System.Runtime, Version=4.2.2.0

旧城冷巷雨未停 提交于 2021-01-21 20:36:52
问题 .NET Core 3.1 console app generates error during build - System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. But it works on .NET Core 3.0 version. I'm using Microsoft.Orleans. This is csproj - <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> </PropertyGroup> <ItemGroup>

.NET Core 3.1 - Could not load file or assembly System.Runtime, Version=4.2.2.0

余生长醉 提交于 2021-01-21 20:36:31
问题 .NET Core 3.1 console app generates error during build - System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. But it works on .NET Core 3.0 version. I'm using Microsoft.Orleans. This is csproj - <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> </PropertyGroup> <ItemGroup>

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

北城以北 提交于 2021-01-16 04:03:21
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

馋奶兔 提交于 2021-01-16 04:02:38
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

余生颓废 提交于 2021-01-16 04:00:38
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

How to access the Dispatcher from a .net Core 3.1 dll (WPF)

走远了吗. 提交于 2021-01-16 03:55:50
问题 I read: .NET Dispatcher, for .NET Core? I'm not able to apply both solution. Solution of JBSnorro: Unable to find how to switch to "Microsoft.NET.Sdk.WindowsDesktop". Solution of codevision: I use .net Core 3.1 instead of .net Core 3.0 and a .dll instead of .exe. The result is Any idea how to access the Dispatcher from .net-core 3.1? IMPORTANT Clemens solution works great. Also, by reloading the project directly from Visual Studio has the advantage to tell you more about the problem hidden in

How to fix NuGet package Razor runtime compilation Error?

主宰稳场 提交于 2021-01-06 03:50:44
问题 After reading through several answers (.NET Core 3.0 - Preview 2 - Razor views don't automatically recompile on change) that recomend installing Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation NuGet package to get back runtime compilation, I tried the suggested solutions but the project gets the following error message simply by installing the package without even using AddRazorRuntimeCompilation(): The project "project name" must provide a value for configuration double clicking in the

How to fix NuGet package Razor runtime compilation Error?

倖福魔咒の 提交于 2021-01-06 03:44:36
问题 After reading through several answers (.NET Core 3.0 - Preview 2 - Razor views don't automatically recompile on change) that recomend installing Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation NuGet package to get back runtime compilation, I tried the suggested solutions but the project gets the following error message simply by installing the package without even using AddRazorRuntimeCompilation(): The project "project name" must provide a value for configuration double clicking in the

Using RunImpersonated for an HttpClient call fails for a NUnit test, but works in Console

让人想犯罪 __ 提交于 2021-01-05 08:53:45
问题 I need to have my tests run as a testing account. To accomplish that I setup to the following code to create a handle into my testing account: SafeAccessTokenHandle testAccountHandle; bool returnValue = LogonUser("TestAccount", "myDom.net", "pass", 2, 0, out testAccountHandle); I can then make a call to load a URL: HttpResponseMessage response = null; await WindowsIdentity.RunImpersonated<Task>(testAccountHandle, async () => { var url = "https://accounts.google.com/.well-known/openid