- Create an empty MVC 3 Web Project
- Open the Package Manager Console (Tools->Library Package Manager->Package Manager Console)
- Type this Command: install-package signalr
Install-Package : Conflict occurred. 'jQuery 1.5.1' referenced but requested 'j
Query 1.6.4'. 'jQuery.vsdoc 1.5.1, jQuery.Validation 1.8.0,
It looks like our project is set to use jQuey 1.5.1, but the package has a dependency on jQuery 1.6.4. We need to look at how our project is configured. Look at the packages.config file in the project.
This file is a NuGet configuration file which is used to track the packages and version. This file is used when we attempt to configure a project using the NuGet commands. It looks at the file, and it checks to make sure that what you want to do does not cause any possible conflicts. In our case, we can see that the project is set to use jQuery 1.5.1. We need to update this setting to be able to import this package in our project. We also need to make sure that the new jQuery reference is added. Remove the reference to jQuery (first two lines) from the file.
Save the file and on the Package console run the command again. install-package signalr. You should now see messages indicating that the file was correctly installed. If you check the file again, you will see that the file is now upgraded with the new jQuery and the signalr files.
You should also look at the Script folder, and you will see that the jquery-1.6.4 files as well as the jquery.signalR js files have been added.
You know just need to make sure to remove the old jquery (1.5) files, and you should be ready to continue.
I hope this helps.
0 comments :
New comments are not allowed.