[英]How can I add jQuery DateTimePicker to my project in visual studio
I have a requirement where I need the following control in my project.我有一个要求,我需要在我的项目中进行以下控制。 I am using MVC application in this project.
我在这个项目中使用 MVC 应用程序。
https://github.com/xdan/datetimepicker https://github.com/xdan/datetimepicker
But, I am totally unsure how I can use this control in my project, as I am doing this for the first time.但是,我完全不确定如何在我的项目中使用这个控件,因为我是第一次这样做。 I did followed the steps that they have given.
我确实按照他们给出的步骤进行了操作。 I installed those packages in one of my local folder.
我将这些软件包安装在我的一个本地文件夹中。 But this folder is different location and the project I am using is in different location.
但是这个文件夹在不同的位置,我正在使用的项目在不同的位置。 Should I install this package in the location of my project where I am using this?
我应该在我使用它的项目位置安装这个 package 吗? Please someone help me with this.
请有人帮我解决这个问题。
Step 1: To add the jQuery DateTimePicker package to a project:第 1 步:将jQuery DateTimePicker package 添加到项目中:
Tools ► NuGet Package Manager ► Manage NuGet Packages for Solution...
.Tools ► NuGet Package Manager ► Manage NuGet Packages for Solution...
Browse
tab.Browse
选项卡。 Type the jQuery-datetimepicker
package name and wait until the available packages list is populated.jQuery-datetimepicker
package 名称并等待可用包列表被填充。jQuery-datetimepicker
package, check project(s) the package to be installed and press Install button.jQuery-datetimepicker
package,检查要安装的项目 package 并按安装按钮。 Wait while the package is installing. Step 2: In case the available packages list does not updated do the following:第 2 步:如果可用包列表未更新,请执行以下操作:
Tools ► Options...
.Tools ► Options...
In the Options
dialog find out Package Sources
under NuGet Package Manager
and check that Package sources
is set to https://api.nuget.org/v3/index.json
.Options
对话框中找到Package Sources
under NuGet Package Manager
并检查Package sources
是否设置为https://api.nuget.org/v3/index.json
So the NuGet Package Manager will use this source to obtain list of available packages:For additional information see Install and manage packages in Visual Studio using the NuGet Package Manager
有关其他信息,请参阅使用 NuGet Package 管理器在 Visual Studio 中安装和管理包
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.