小编Jan*_*ník的帖子

Docker nuget connection timeout

Trying to utilize official jetbrains\teamcity-agent image on Kubernetes. I've managed to run Docker in Docker there but trying to build an ASP.NET Core image with docker build command failes on dotnet restore with

The HTTP request to 'GET https://api.nuget.org/v3/index.json' has timed out after 100000ms.

When I connect to the pod itself and try curling the URL it's super fast. So I assume network is not an issue. Thank for any advice.

Update

Trying to run a simple dotnet …

routing timeout kubernetes

12
推荐指数
3
解决办法
5200
查看次数

在UI线程上调用异步方法

我正在尝试使用IdentityServer身份验证创建WPF客户端。我正在使用他们OidcClient进行登录。当我的应用程序同步时,它是完全异步的,如果不付出巨大的努力就无法进行重构。呼唤

var result = await _oidcClient.LoginAsync();
Run Code Online (Sandbox Code Playgroud)

不等待结果。调用Wait().Result导致死锁。将其包装给其他用户Task.Run则抱怨该方法未在UI线程上运行(它将打开带有登录对话框的浏览器)。

您有什么想法,如何解决呢?我需要编写自定义同步OidcClient吗?

c# async-await .net-4.7

4
推荐指数
1
解决办法
1470
查看次数

在VS 2017中编译SCSS时包含node_modules

我在中有一个带有样式文件的项目wwwroot/css/site.scss。我已经安装了Web编译器扩展来创建css文件。直到我引用某个模块,该模块才起作用。@import "@material/button/mdc-button";错误是找不到导入文件或不可读

是否有可能包括wwwroot/node_modules/compilerconfig.json?还有其他方法可以完成工作吗?

sass visual-studio-2017

1
推荐指数
1
解决办法
252
查看次数