Sunday, 26 February 2012

Nuget & TFS

The Nuget package manager lets you easy reference "external" assemblies like moq or ninject in Visual Studio. But when you upload the Visual Studio project with the nugetted references into TFS the actual assemblies are not uploaded into the source control.

Typically they are located in special folder. By default this is called "packages". This means when you get the sources from TFS on another folder and/or machine , you can not build the solution properly. You're missing dependencies.

So upload the package folder as well in TFS via the team Explorer you might say. That's is a valid solution indeed.

Another approach I found on a blog post (...) is to execute the nuget command-line executable to retrieve the dependencies.

  1. Navigate to folder <mySolutionFolder>
  2. ...nuget.exe install <myProjectFolder>\packages.config -o Packages

This will look for a file called packages.config, check the dependencies and download them if necessary into a folder called packages. This folder should be located on the same hierarchy when initiated. Usually beneath the <mySolutionFolder>

Maybe there are other (better) solutions when working with nuget? Let me know...


best regards,

38 comments:

ILMinator said...

I've blogged a PowerShell one-liner to do this to the whole Visual Studio solution. I thought you might find it useful.

ILMinator said...

[And with the correct link, this time] I've blogged a PowerShell one-liner to do this to the whole solution. I thought you might find it useful.

sabyasachi singh said...

Thanks for the information.

SyonIndia is a Software Development, Website development and SEO company in Bhubaneswar. We offer professional software development services in Bhubaneswar India. Our developers are highly skilled, advance and expert to execute things up to the mark and are efficient enough to cope up with new platforms. We are the leading software development company in Bhubaneswar.
http://syonindia.com

Seo Company Bhubaneswar said...

Thanks....Very Useful one..

Scorpio Technologies is a Professional web development bhubaneswar Company.We are the Experts in the web development World and fullfils our Customers requirements in a Strategic Way.We offers wide range of web application development services such as CMS, E-commerce and ERP development to customers and strive hard to mark their inevitable presence in the World Wide Web.

Web Development Bhubaneswar

Techno Tips said...

Nice post.Thank you for sharing..
software company in india

Cado Magenge said...

Nice post! that is good information, it is useful to me thanks.
Magento Development Cmopany Melbourne

Raj Solanki said...

The information shared on this blog was very informative. Thanks for sharing the useful article with us.
Software Development Company in Indore

Sonia Danial said...

Thanks for such a nice post. Requirement of any type of Application Software, Website Design & Development, SEO, SMO Service, Ad Posting Service at c. Send an Enquiry at Technotips is a leading software company among Software Companies in Bhubaneswar. SEO & Website Starts from 100$ onwards.

Sonia Danial said...

Thanks for such a nice post. Requirement of any type of Application Software, Website Design & Development, SEO, SMO Service, Ad Posting Service at c. Send an Enquiry at Technotips is a leading software company among Software Companies in Bhubaneswar. SEO & Website Starts from 100$ onwards.

Khuntia Digital Marketing Pvt Ltd. said...

This blog is really helpful for new commerce. Find your best SEO Company in Delhi, SEO Company in Noida, SEO Company in Gurgaon, SEO Company in India.

Gadget Bytes said...

Thanks for sharing as it is an excellent post would love to read your future post for more knowledge- I was in search of such blog who explore my knowledge in the industry.for more knowledge. software development company India

Bangalore Web Genius said...

Thanks for the very informative blog and I extremely grateful that you perform this piece of writing very simply, I mean to say that it's quite simple to read and understand. Website Design Company Bangalore | Web Development Services in Bangalore

Techno Tips said...

Nice Post, Thank you for such a post. Technotips is the Best Web Design Company in Bhubaneswar, which provides Domain Registration, Web Hosting, Web Design & Development Service. Visit us & choose your Design.

Zinavo Bangalore said...

very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.Website Development Bangalore | Web Design Company Bangalore

Surajj Kumar said...

Very exciting to study this content.I would like to thank you for the initiatives you had created for composing this amazing content.
New Year in Manali

Bangalore Web Guru said...

The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up..Website Design Bangalore | Website Development Bangalore

MARY MANJUSHA KULLU said...

Amazing Blog And Very Interesting Post Thanks For Share.It is Really Good Way to Learn The Application Development.

Shopweb said...

web development is the process for making a website with an expressive looks.........!!!
This is very valuable to understand the web-development process,looking forward to more blogs like this....&.....Thnx 4 shearing this..<)>)
Web Development Company Bhubaneswar

Shopweb said...

Its very nice blog and it has very effective information.thanks.

How Website Design Company Can Help You In Bhubaneswar ?

Kumar V said...

You have good information about application development

Web Design Company in Bhubaneswar

Quresha Roul said...

Thanks for sharing this post is very nice and used full post.
web development company bhubaneswar

paulrobert932 said...

You don't need to store the packages from NuGet in version control. Web Design Bangalore

Anil Gupta said...

Fabulous canvas..and thanks a lot for sharing these tips ,they are really helpful.It is very informative on subject or topic.
Web Designing Company in Bangalore, Web Development Company Bangalore

Quresha Roul said...

This is very wonderful article on website designing, its shows the valuable details on it. We at shopweb providing the best web designing service with great quality of work along with our expertise.
web hosting company bhubaneswar

Prasanth said...

The blog is absolutely truly incredible. Lots of large information and inspiration, both of which we all need.
UI Design Company Bangalore, Web Application Development Services in Bangalore

iWEB TECHNOLOGIES said...

Thankful for such wonderful blog yours...!
Web Development Services

flymedia technology said...

Thank you so much for sharing this wonderful information with us.
Flymedia Technology is a professional website design company based in Punjab, India. We are specialized in designing and developing websites as per client requirement.. Our designers put all their efforts to make a remarkable product.
Web Designing in Punjab

Ashika Samreen said...

Nice post thanks for sharing .
Best Web Design Company in Bangalore

Ram Niwas said...

Nice blog. Thank you for Providing such a great information. web designing company in bangalore

naveen chauhan said...

Expert Web Solutions a top leading website designing company in tilak nagar, delhi. we are providing cheapest web designing service company in delhi and all over india. Website designing company in janakpuri. VIEW MORE :- Website designing company Delhi

Top Branding Agencies in Mumbai said...

Thank you for sharing such a great information.

Web Spread said...

Thanks for your great info, the article are quiet interesting.I will be waiting for your next post....! Magento Development Company in Noida India

kishankapoor said...

Nice post! I thank you for sharing this nice blog with us. Likewise, I would like to say something that Happy Heap Marketing is also one of the SMO Services in India

Omkarsoft Bangalore said...

Nice article . Thanks for sharing it
Web Designing Company

Gurjeet Singh said...

That was an extremely interesting blog. Information of your blogs provide is excellence. Thanks for sharing your thoughts with us. Website Designing Company Delhi

Ashish Khadpe said...

Mobile application is a must thing for today for a business to grow. If you are looking to build your android or iOS mobile application, get in touch with :
Parsys Media | WordPress | Magento | Joomla | Android | iOS | Drupal

KATE TECHNOLOGIES said...

Thank you so much for sharing such an awesome blog...
best web designing companies in india

Mohd Islam said...

Wow, now this is what we call an information rich blog. You have definitely covered a lot of things on Website design company. Keep it up!
Website Designing Company In Phoenix Arizona Az | Website Development Company In Arizona