简体   繁体   English

如何将 jQuery DateTimePicker 添加到我在 visual studio 中的项目

[英]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 添加到项目中:

  1. In the Visual Studio go to Tools ► NuGet Package Manager ► Manage NuGet Packages for Solution... .Visual Studio go 中, Tools ► NuGet Package Manager ► Manage NuGet Packages for Solution...
  2. Click on the Browse tab.单击Browse选项卡。 Type the jQuery-datetimepicker package name and wait until the available packages list is populated.键入jQuery-datetimepicker package 名称并等待可用包列表被填充。
  3. Then select the jQuery-datetimepicker package, check project(s) the package to be installed and press Install button.然后 select jQuery-datetimepicker package,检查要安装的项目 package 并按安装按钮。 Wait while the package is installing.等待 package 正在安装。

Step 2: In case the available packages list does not updated do the following:第 2 步:如果可用包列表未更新,请执行以下操作:

  1. In the Visual Studio go to Tools ► Options... .在 Visual Studio go 到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:因此 NuGet Package 管理器将使用此源来获取可用包的列表:

在此处输入图像描述

  1. Perform Step 1) .执行步骤 1)

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.

相关问题 如何在我的 C# Visual Studio 项目中添加 VC++ DLL 作为参考? - How can I add a VC++ DLL as a reference in my C# Visual Studio project? 如何在Visual Studio网站项目类型中添加引用? - How can I add a reference in a Visual Studio website project type? 如何通过Visual Studio加载项跟踪项目项的属性更改 - How can I track property changes of a project item through visual studio Add-In 如何将Lucene.Net依赖项添加到Visual Studio项目 - How can I add a Lucene.Net dependency to a Visual Studio project 如何在不破坏 Visual Studio 的情况下恢复项目的 Git 存储库? - How can I revert my project's Git repo without breaking Visual Studio? 如何将WSDL添加到Visual Studio 2005项目? - How do I add a WSDL to a Visual Studio 2005 project? 如何将程序集添加到Visual Studio项目并引用它? - How do I add an assembly to a Visual Studio project and reference it? 无法添加对项目的引用,Visual Studio - Can't add reference to project, Visual studio 无法在 Visual Studio 中添加项目引用 - Can't add a Project Reference in Visual Studio 我如何在没有Visual Studio访问权限的情况下在我的bin中添加对.dll的引用 - how can i add a reference to a .dll in my bin without having visual studio access
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM