如何在.net Core Projet中安装jquery? [英] How to instal jquery in .net core projet?
问题描述
在VS2019中,我创建了一个.net core 3.0项目,并从工具> NuGet软件包管理器>管理NuGet软件包....在我的项目中安装了jQuery 3.4.1.
In VS2019 I created a .net core 3.0 project and from Tools>NuGet Package Manager>Manage NuGet Package.... installed jQuery 3.4.1 on my project.
搜索并成功安装它,但是它不会在我的lib或我的解决方案上复制任何文件,只是在.csproj文件上添加了下面的一行.
Search and install it successfully but it doesn't copy any file on my lib or on my solution just added bellow line on .csproj file.
<PackageReference Include="jQuery" Version="3.4.1" />
我该如何处理?
推荐答案
对于Jquery是一个客户端库,我建议您可以使用LibMan.这是您可以遵循的步骤:
For Jquery is a client-side library,I suggest that you could use LibMan.Here is the steps you could follow:
-
创建文件夹
wwwroot/lib
;
在解决方案资源管理器中,右键单击应在其中添加文件的项目文件夹.选择添加">客户端库".
In Solution Explorer, right-click the project folder in which the files should be added. Choose Add > Client-Side Library.
搜索 jquery@3.4.1
如下:
单击安装"按钮以下载文件.
Click the Install button to download the files.
参考: 查看全文