Okay, so help me understand something here. I've got a new MVC solution and want to use NuGet to keep Modernizr up to date.
The problem is, NuGet puts the Modernizr scripts under ~/Scripts. This won't work--we've decided to put our JS in ~/js.
How do I modify the configuration of this package to tell NuGet that the Modernizr package should go in ~/Scripts or ~/Scripts/global instead?
I don't think you can do this - I don't think this is functionality of NuGet, but rather the location of the scripts inside the NuGet package. This could vary from one package to another :-(
This is currently not a feature of NuGet, but it was mentioned in discussion on the a NuGet forums including members of the NuGet team. I don't see any work item that has officially been created for this yet, unfortunately. I performed a quick search of the NuGet issues list for the word "location" and didn't see one out there for this. You might want to request it as a feature.
Related
How do I find out what references what with the DLLs from 3rd party (and MS)?
I have an AspnetMvc 4 project and see a DLLs named *Oauth* and DotnetOpenAuth*.
Now I'd like to get rid of unnecessary load and my project is anonymous so I thought it would be a good idea to delete said DLLs and references.
So I delete through Nuget
UnInstall-Package Microsoft.AspNet.WebPages.OAuth
But to no avail. I delete the files and update packages.config to realise something needs them. But how do I find out what? My stuff is not the culprit afaik.
Here you can follow this tutorial step by step to create a webform ( same you can do in MVC ) also codes are available in GitHub. Here is the link :
It looks like you pulled in the security portion of the mvc4 application. If you do not use the library(s) then you can discard them.
The main packages for MVC are
Microsoft.AspNet.Mvc
Microsoft.AspNet.Razor
Microsoft.AspNet.WebPages
Microsoft.Web.Infrastructure
I don't think the above packages will pull in the oauth portions.
Related to: Package an ASP.NET MVC application with Nuget
I'm trying to get a mode where I can edit an MVC project and package it easily.
As often suggested it is wise to replace a namespace using NuGet pre-processor functionality.
This would mean that I would have to edit my source files and add the pp extensions to each pre-processed source file.
Are there any tips and tricks to make this less labourious?
There is such a tool, that did almost exactly what I wanted. It's on Codeplex so I could participate in the development, yay!
https://nugetpackager.codeplex.com/
It has a common-line interface too, so I can script my updates.
Following the documentation described in this link, I'm trying to install the Breeze with NHibernate support.
But the Breeze.Server.ContextProvider.NH does not exist, what should I do? What are the steps to use Breeze with NHibernate?
The Breeze.ContextProvider.NH source and dll is available on GitHub, but we are still in testing on it, so we haven't created a nuget package for it yet.
The nuget package is now available, and the NorthBreeze sample
is now updated to use Breeze 1.4.8 and WebApi 2
I updated the sample by removing all the existing references, then installing the nuget package Breeze.WebApi2.NH
Except for some using statements, and one redundant line of the Web.config, I didn't need to change any code.
I have added few packages from NUGETin visual studio 2012. I see nuget.exe in the project. I have not come across this before as I have not yet seen nuget.exe in my other web applications. I searched in GOOGLE about this but have not found good answer. Why is nuget.exe added? Is there any reason I might need it? Any help would be apperciated!
I think you might have installed "NuGet.CommandLine" package or some other packages related to it.
Using "nuget.exe", you can installing NuGet packages directly from the command line.
The good things about "nuget.exe" , is if you just want NuGet to download the assemblies for you,
it'll leave the rest to you. It saves you time by letting you easily download the pieces
and their dependencies, it doesn’t force you into a development model you don't want.
If you don't need it, you also can use NuGet to uninstall it.
I am working with nuget and find it excellent with my MVC4 project. I use it for all my external dependencies.
I have run in to one small problem with it. For example, installing the jQuery package, it places the jQuery files in to the Scripts folder. My preference is that it places the javascript files in to a libraries folder within scripts. So instead of
Scripts/jquery-1.8.3.js
I want to place it in
Scripts/libraries/jquery-1.8.3.js
Yes I can manually move it but then I lose the features of nuget. Any way that I can direct where a package places the files like this?
This is not supported yet
dupe of
NuGet scripts to different directory
, nuget codeplex issue is here http://nuget.codeplex.com/workitem/1914