add nuget.config to dotnet-new template

This commit is contained in:
Krzysztof Wicher 2015-12-18 12:27:17 -08:00
parent 64946cf7d7
commit 4c0458233d
2 changed files with 12 additions and 1 deletions

View file

@ -28,7 +28,9 @@ namespace Microsoft.DotNet.Tools.New
{
var thisAssembly = typeof(Program).GetTypeInfo().Assembly;
var resources = from resourceName in thisAssembly.GetManifestResourceNames()
where resourceName.ToLowerInvariant().EndsWith(".cs") || resourceName.ToLowerInvariant().EndsWith(".json")
where resourceName.ToLowerInvariant().EndsWith(".cs")
|| resourceName.ToLowerInvariant().EndsWith(".json")
|| resourceName.ToLowerInvariant().EndsWith(".config")
select resourceName;
var resourceNameToFileName = new Dictionary<string, string>();

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="dotnet-core" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>