Merge pull request #617 from krwq/nugetconfig

Add nuget.config to dotnet-new template
This commit is contained in:
Bryan Thornbury 2015-12-18 14:45:45 -08:00
commit 6bd2da6b05
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>