add nuget.config to dotnet-new template
This commit is contained in:
parent
64946cf7d7
commit
4c0458233d
2 changed files with 12 additions and 1 deletions
|
@ -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>();
|
||||
|
|
9
src/Microsoft.DotNet.Tools.New/Template/NuGet.Config
Normal file
9
src/Microsoft.DotNet.Tools.New/Template/NuGet.Config
Normal 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>
|
Loading…
Add table
Reference in a new issue