mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-11-27 17:28:35 +01:00
Check arguments count.
This commit is contained in:
parent
4e316065c0
commit
a080844ddf
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ public static class Program {
|
||||||
var referencesVersions = config.References.ToDictionary(x => x, x => (string)null, StringComparer.OrdinalIgnoreCase);
|
var referencesVersions = config.References.ToDictionary(x => x, x => (string)null, StringComparer.OrdinalIgnoreCase);
|
||||||
if (config.References.Length > 0)
|
if (config.References.Length > 0)
|
||||||
{
|
{
|
||||||
|
if (args.Length < 2) {
|
||||||
|
Console.WriteLine("Please specify the full path of project file, you want to use");
|
||||||
|
return;
|
||||||
|
}
|
||||||
var csprojPath = args[1];
|
var csprojPath = args[1];
|
||||||
Console.WriteLine($"Using project file {csprojPath}");
|
Console.WriteLine($"Using project file {csprojPath}");
|
||||||
var projectRootElement = ProjectRootElement.Open(csprojPath);
|
var projectRootElement = ProjectRootElement.Open(csprojPath);
|
||||||
|
|
Loading…
Reference in a new issue