我正在写一个蛋糕GIT插件,将在GitVersion的帮助下计算一个SemVer。我使用的是提供GitVersionCore.dll的GitVersion NuGet包。
谁能给我一些如何使用Core.dll的提示?它似乎并没有真正的文档记录。
或者,推荐的方式是通过Process.Start调用GitVersion.exe并获取输出?
thx
发布于 2019-09-30 01:58:57
如果你仍然想使用这个Nuget,你应该检查GitVersion.ExecuteCore.ExecuteGitVersion方法。检查ExecuteCore.cs行28中的源代码
签名是:public VersionVariables ExecuteGitVersion(string targetUrl, string dynamicRepositoryLocation, Authentication authentication, string targetBranch, bool noFetch, string workingDirectory, string commitId, Config overrideConfig = null, bool noCache = false, bool noNormalize = false)
https://stackoverflow.com/questions/58157412
复制相似问题