// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.IO;
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public static class NuGetConfig
{
public static void Write(string directory)
{
var contents = @"
";
var path = Path.Combine(directory, "NuGet.config");
File.WriteAllText(path, contents);
}
public static void Write(string directory, string configname, string localFeedPath)
{
const string template = @"
";
var path = Path.Combine(directory, configname);
File.WriteAllText(path, string.Format(template, localFeedPath));
}
}
}