gpt4 book ai didi

c# - 在重新启动 dotnet 错误之前等待文件更改

转载 作者:太空宇宙 更新时间:2023-11-03 15:09:16 25 4
gpt4 key购买 nike

我正在使用 asp.net core、razor 引擎和 Entity Framework 。当我尝试使用 dotnet watch run 在 VS 代码中运行我的代码时出现此错误。这是完整的错误。

Project c-login (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
A JSON parsing exception occurred in [/Users/aaronmk2/Desktop/CodingDojo/c#/asp.net/entity/c-
login/bin/Debug/netcoreapp1.0/c-login.deps.json]: * Line 1, Column 2 Syntax error: Malformed
token
Error initializing the dependency resolver: An error occurred while parsing /Users/aaronmk2/D
esktop/CodingDojo/c#/asp.net/entity/c-login/bin/Debug/netcoreapp1.0/c-login.deps.json
[DotNetWatcher] fail: dotnet exit code: 139
[DotNetWatcher] info: Waiting for a file to change before restarting dotnet...

有没有人见过这个错误?解决方法是什么?

最佳答案

我遇到了同样的错误,在尝试了所有方法后我发现这是因为证书损坏。由于某种原因,我的证书已损坏,因此我不得不删除旧证书并生成新证书。生成:

dotnet dev-certs https

信任:

dotnet dev-certs https --trust

关于c# - 在重新启动 dotnet 错误之前等待文件更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41902501/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com