You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In nbgv vv3.3.37+0989e8fe0c you could just run: nbgv set-version 1.2.3
Built against master, that now throws an exception (which was causing me to re-evaluate my unrelated code changes for #567):
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: 'projectDirectory' cannot be an empty string ("") or start with the null character.
Parameter name: projectDirectory
at Validation.Requires.NotNullOrEmpty(String value, String parameterName)
at Nerdbank.GitVersioning.VersionFile.SetVersion(String projectDirectory, VersionOptions version, Boolean includeSchemaProperty) in C:\src\Nerdbank.GitVersioning\src\NerdBank.GitVersioning\VersionFile.cs:line 77
at Nerdbank.GitVersioning.Tool.Program.OnSetVersionCommand(String projectPath, String version) in C:\src\Nerdbank.GitVersioning\src\nbgv\Program.cs:line 409
at Nerdbank.GitVersioning.Tool.Program.MainInner(String[] args) in C:\src\Nerdbank.GitVersioning\src\nbgv\Program.cs:line 169
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Nerdbank.GitVersioning.Tool.Program.Main(String[] args) in C:\src\Nerdbank.GitVersioning\src\nbgv\Program.cs:line 76
Debugging into this, it appear that the searchDirectory is never set to anything other than "" which defaults to the GitContext.RepoRelativeProjectDirectory. The version.json file is still found, but the directory in which it was found is no longer set for the out param, and a subsequent null-or-empty check throws.
The text was updated successfully, but these errors were encountered:
In nbgv vv3.3.37+0989e8fe0c you could just run:
nbgv set-version 1.2.3
Built against master, that now throws an exception (which was causing me to re-evaluate my unrelated code changes for #567):
Debugging into this, it appear that the
searchDirectory
is never set to anything other than "" which defaults to theGitContext.RepoRelativeProjectDirectory
. The version.json file is still found, but the directory in which it was found is no longer set for theout
param, and a subsequent null-or-empty check throws.The text was updated successfully, but these errors were encountered: