first of all, they're not devious. Previous versions of MVC also shipped with jQuery out of the box. What's handy now however is that you can use Nuget to update these files easily or, if you want to, uninstall them.
Nuget gets them from the online gallery by default. I directly like to update my packages to 1.5.2 by updating the jquery vsdoc package (which has a dependency on the jQuery package so that also gets updated).
Conclusion: it's not magic (well not completely ) but it's radical great and super handy stuff. Be sure to also check out the MvcScaffolding package.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
<div style="color: #000000; font: normal 12px verdana;">
@XIII
~~ Nuget gets them from the online gallery
I don't know what it means, but so be it.
At a time when I create a new Mvc 3 project, my machine is cut off from the Internet. How do NuGet-esque JavaScript files get into my Script folder? There are no such JavaScript files in the project template cache. There are no such JavaScript files on my
disk.
When I opened the MvcIntranetProjectTemplatev3.01.cshtml.zip template and took a look at the .vstemplate. In the <WizardData> template there are references to the script files. Using the super handy/free tool Everything I went looking for the nupkg files
for Modernizr. Under the following folder you can find the packages:
So I guess I got it mixed up initially. Nuget normally goes looking to the online gallery for updates when you want it to but installs the initial script files from local disk under that specific folder.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
If I wanted to get rid of the NuGet nuisance, is it enough to delete the <WizardData> element from the .vstemplate file?
That's what kickstarts the package loads so you can certainly give that an educated try. Personally I think Microsoft did a great thing making these packages so it's easier for me as a developer to update to the latest and greatest with all the dependencies
at once. But of course you're completely free to change your templates if you want/need that.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
A better approach might be to create your own project template:
1. Create a new project with the NuGet stuff.
2. Uninstall the JQuery NuGet packages.
3. Select File -> Export Template
There a plenty of good reasons why you might not want have the JQuery NuGet package included in your projects. Not the least of which is that you may be using Microsoft/Google CDN to serve up JQuery.
noname1
Member
8 Points
8 Posts
mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 06:52 AM|LINK
It seems that NuGet brings various and devious JavaScript files, e.g. jquery-1.5.1.js, into a project.
Where on my machine do these files reside? Where does NuGet suck out these files from?
</div>XIII
All-Star
182787 Points
23484 Posts
ASPInsiders
Moderator
MVP
Re: mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 07:15 AM|LINK
Hi,
first of all, they're not devious. Previous versions of MVC also shipped with jQuery out of the box. What's handy now however is that you can use Nuget to update these files easily or, if you want to, uninstall them.
Nuget gets them from the online gallery by default. I directly like to update my packages to 1.5.2 by updating the jquery vsdoc package (which has a dependency on the jQuery package so that also gets updated).
Conclusion: it's not magic (well not completely
) but it's radical great and super handy stuff. Be sure to also check out the MvcScaffolding package.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
noname1
Member
8 Points
8 Posts
Re: mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 07:31 AM|LINK
@XIII
~~ Nuget gets them from the online gallery
I don't know what it means, but so be it.
At a time when I create a new Mvc 3 project, my machine is cut off from the Internet. How do NuGet-esque JavaScript files get into my Script folder? There are no such JavaScript files in the project template cache. There are no such JavaScript files on my disk.
</div>XIII
All-Star
182787 Points
23484 Posts
ASPInsiders
Moderator
MVP
Re: mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 08:18 AM|LINK
Hi,
well I got curious
.
When I opened the MvcIntranetProjectTemplatev3.01.cshtml.zip template and took a look at the .vstemplate. In the <WizardData> template there are references to the script files. Using the super handy/free tool Everything I went looking for the nupkg files for Modernizr. Under the following folder you can find the packages:
C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 3\Packages
So I guess I got it mixed up initially. Nuget normally goes looking to the online gallery for updates when you want it to but installs the initial script files from local disk under that specific folder.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
tugberk_ugur...
Participant
1944 Points
1344 Posts
MVP
Re: mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 08:38 AM|LINK
I realized that too and tweeted about it couple of days ago. please see the below tweet from one of the nuget project programmers;
http://twitter.com/#!/anglicangeek/status/58199836259913729
tweets as @tourismgeek
noname1
Member
8 Points
8 Posts
Re: mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 08:48 AM|LINK
@XIII
I had looked into the folder, but being no expert on NuGet, I had no idea what was going on.
If I wanted to get rid of the NuGet nuisance, is it enough to delete the <WizardData> element from the .vstemplate file?
</div>XIII
All-Star
182787 Points
23484 Posts
ASPInsiders
Moderator
MVP
Re: mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 08:50 AM|LINK
That's what kickstarts the package loads so you can certainly give that an educated try. Personally I think Microsoft did a great thing making these packages so it's easier for me as a developer to update to the latest and greatest with all the dependencies at once. But of course you're completely free to change your templates if you want/need that.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
chohmann
Star
9385 Points
1644 Posts
Re: mvc 3 : jquery-1.5.1.js -- nuget -- javaScript files
Apr 20, 2011 05:44 PM|LINK
A better approach might be to create your own project template:
1. Create a new project with the NuGet stuff.
2. Uninstall the JQuery NuGet packages.
3. Select File -> Export Template
There a plenty of good reasons why you might not want have the JQuery NuGet package included in your projects. Not the least of which is that you may be using Microsoft/Google CDN to serve up JQuery.