diff --git a/Contentless/Program.cs b/Contentless/Program.cs index e53b8ee..14f757a 100644 --- a/Contentless/Program.cs +++ b/Contentless/Program.cs @@ -47,6 +47,10 @@ public static class Program { var referencesVersions = config.References.ToDictionary(x => x, x => (string)null, StringComparer.OrdinalIgnoreCase); 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]; Console.WriteLine($"Using project file {csprojPath}"); var projectRootElement = ProjectRootElement.Open(csprojPath);