Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How can I tell to Asp.Net Core to save nuget packages on a specific folder?

$
0
0

On Asp.Net MVC4 when you create a project and download the nuget dependencies, it created a package.json with all the id and values for all dependencies you have installed. At the same time, a package folder was created at the root of your applications saving all your nuget packages. But this was customizable, you can choose to write a Nuget.config file to point all your nugets to a specific folder. The structure of that one looks like this.

<?xml version="1.0" encoding="utf-8"?><configuration><config><add key="repositoryPath" value="$\..\MyFolderRepository\Packages"/></config></configuration>

With Asp.net core I don't have any clue of where those packages are saved. On the obj folder you can find the project.assets.json with all the configuration for your dependencies, but even with that, I can't figure out where are they stored. For example, bellow is the Automapper dependency configuration, but where is stored that magic lib folder? and how I can change the repository folder for my dependencies?

"version":3,"targets":{".NETCoreApp,Version=v2.0":{"AutoMapper/6.2.1":{"type":"package","dependencies":{"Microsoft.CSharp":"4.3.0","NETStandard.Library":"1.6.1","System.Collections.Concurrent":"4.3.0","System.Collections.Specialized":"4.3.0","System.ComponentModel.TypeConverter":"4.3.0","System.Dynamic.Runtime":"4.3.0","System.Linq.Queryable":"4.3.0","System.Reflection.Emit":"4.3.0","System.Resources.ResourceManager":"4.3.0","System.Runtime.Serialization.Primitives":"4.3.0","System.Text.RegularExpressions":"4.3.0"},"compile":{"lib/netstandard1.3/AutoMapper.dll":{}},"runtime":{"lib/netstandard1.3/AutoMapper.dll":{}}},

Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>