在我的 .NET Core 项目上执行 docker build 时,我在所有 NuGet 上都收到以下错误:
80.19 /app/GradingTool.Tests/GradingTool.Tests.csproj:错误 NU3028:来自源“https://api.nuget.org/v3/index.json”的包“Microsoft.EntityFrameworkCore 5.0.0”:作者主要签名时间戳发现链构建问题:UntrustedRoot:证书链中的自签名证书[/app/GradingTool.sln]
#12 80.20 /app/GradingTool.Tests/GradingTool.Tests.csproj:错误 NU3037:来自“https://api.nuget.org/v3/index.json”的包“Microsoft.EntityFrameworkCore 5.0.0”:作者主签名有效期已过。[/app/GradingTool.sln]
#12 80.20 /app/GradingTool.Tests/GradingTool.Tests.csproj:错误 NU3028:来自源“https://api.nuget.org/v3/index.json”的包“Microsoft.EntityFrameworkCore 5.0.0”:存储库会签的时间戳发现链构建问题:UntrustedRoot:证书链中的自签名证书 [/app/GradingTool.sln]
我以前从未遇到过这个错误,有人可以帮我找出问题所在吗?
Dockerfile:
FROM mcr.microsoft.com/dotnet/sdk:latest AS build-env
WORKDIR /app
RUN apt-get update -yq \
&& apt-get install curl gnupg -yq \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash \
&& apt-get install nodejs -yq
# Copy csproj and restore as distinct layers
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
# Build runtime …Run Code Online (Sandbox Code Playgroud) brew install当我使用或安装后运行软件时,我总是收到错误消息 \xe2\x80\x9cApple 无法检查恶意软件\xe2\x80\x9d brew cask install,所以我的问题是,是否有解决方案让我的 Mac 信任Homebrew 的安装?我知道我可以使用\n xattr -d com.apple.quarantine <folder of app>,但一直这样做有点烦人......
先谢谢您的帮助!
\n我正在创建一个 saml 策略,并创建了一个包含我的密钥的 certs 文件夹。问题是,当我构建项目时,我收到此错误:
[Nest] 14078 - 04/22/2020, 4:33:34 PM [ExceptionHandler] ENOENT: no such file or directory, open '/Users/wilsonsilva/Desktop/EduTec/formations-tool/dist/server-app/src/auth/certs/key.pem' +115ms
Run Code Online (Sandbox Code Playgroud)
因此,当我转到指定的路径(dist 文件夹)时,文件夹certs文件夹确实丢失了。有人可以帮我找到解决方案吗?
我正在使用 Angular 8 和 Ng Universal (NestJS)
我在我的 AuthGuard.ts 中使用 NGX Cookie 服务来检查用户是否使用 cookie 登录。问题是当我尝试获取 cookie 用户的原始值时,该函数get总是返回一个空字符串。
但是我仍然可以创建一个 cookie 并且工作正常。
我确实将 cookie 作为提供者放在我的应用程序模块和我的子模块中。
我在 Angular Universal 中使用 angular 8。
任何想法如何修复这个奇怪的错误?
提前致谢