gpt4 book ai didi

asp.net-core - Signalr.js 未找到

转载 作者:行者123 更新时间:2023-12-02 20:25:38 26 4
gpt4 key购买 nike

我刚刚按照“ASP.NET Core 上的 SignalR 入门”一文进行操作,打开浏览器时出现错误。错误是:GET https://localhost:5001/lib/signalr/signalr.js 404(未找到)

文章链接:https://learn.microsoft.com/en-us/aspnet/core/signalr/get-started?tabs=visual-studio-code&view=aspnetcore-2.1

当我尝试运行他们自己的示例时,会发生同样的错误:https://github.com/aspnet/Docs/tree/master/aspnetcore/signalr/get-started/sample

.NET Core SDK:dotnet-sdk-2.1.300-preview1-008174-win-x64

NPM版本:5.8.0

VSCode:1.22.2

请帮忙!?

最佳答案

instructions for Visual Studio 中所述:

  1. Copy the signalr.js file from node_modules\@aspnet\signalr\dist\browser to the lib folder in your project.

关于asp.net-core - Signalr.js 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50053462/

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