mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-11-22 23:38:34 +01:00
Fix creating test/nuget.config. (#6)
This commit is contained in:
parent
760ee53b54
commit
18ce5e5863
1 changed files with 3 additions and 2 deletions
|
@ -49,8 +49,9 @@ public static class Program {
|
||||||
var referencesVersions = config.References.ToDictionary(x => x, _ => (string) null, StringComparer.OrdinalIgnoreCase);
|
var referencesVersions = config.References.ToDictionary(x => x, _ => (string) null, StringComparer.OrdinalIgnoreCase);
|
||||||
if (config.References.Length > 0) {
|
if (config.References.Length > 0) {
|
||||||
if (args.Length > 1) {
|
if (args.Length > 1) {
|
||||||
Program.ExtractVersions(args[1], referencesVersions);
|
var csprojFullPath = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, args[1]));
|
||||||
var settings = Settings.LoadDefaultSettings(Path.GetDirectoryName(args[1]));
|
Program.ExtractVersions(csprojFullPath, referencesVersions);
|
||||||
|
var settings = Settings.LoadDefaultSettings(Path.GetDirectoryName(csprojFullPath));
|
||||||
packagesFolder = SettingsUtility.GetGlobalPackagesFolder(settings);
|
packagesFolder = SettingsUtility.GetGlobalPackagesFolder(settings);
|
||||||
} else {
|
} else {
|
||||||
Console.Error.WriteLine("The config file contains references, but no project file was specified. Please specify the location of the content file you want to use for gathering references as the second argument.");
|
Console.Error.WriteLine("The config file contains references, but no project file was specified. Please specify the location of the content file you want to use for gathering references as the second argument.");
|
||||||
|
|
Loading…
Reference in a new issue