question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nuke doesn't work with GitVersion 5.1.3

See original GitHub issue

Description

Nuke 0.23.4 fails when trying to use GitVersion 5.1.3. Nuke specifies framework netcoreapp3.0 when launching the tool, but GitVersion uses netcoreapp3.1.

Steps to reproduce

  • Add GitVersionAttribute to a field in the Build class.
  • Run build

Relevant log output

Assertion failed: Package executable GitVersion.dll, or GitVersion.exe [GitVersion.Tool|GitVersion.CommandLine] requires a framework:
 - netcoreapp2.1
 - netcoreapp3.1
   at Nuke.Common.ControlFlow.Fail(String text)
   at Nuke.Common.ControlFlow.Assert(Boolean condition, String text)
   at Nuke.Common.Tooling.ToolPathResolver.GetPackageExecutable(String packageId, String packageExecutable, String version, String framework)
   at Nuke.Common.Tools.GitVersion.GitVersionTasks.GetToolPath(String framework)
   at Nuke.Common.Tools.GitVersion.GitVersionSettings.GetToolPath()
   at Nuke.Common.Tools.GitVersion.GitVersionSettings.get_ToolPath()
   at Nuke.Common.Tooling.ProcessTasks.StartProcess(ToolSettings toolSettings)
   at Nuke.Common.Tools.GitVersion.GitVersionTasks.GitVersion(GitVersionSettings toolSettings)
   at Nuke.Common.Tools.GitVersion.GitVersionTasks.GitVersion(Configure`1 configurator)
   at Nuke.Common.Tools.GitVersion.GitVersionAttribute.GetValue(MemberInfo member, Object instance)
   at Nuke.Common.Execution.InjectionUtility.InjectValuesInternal[T](T instance, IEnumerable`1 tuples)
   at Nuke.Common.Execution.InjectionUtility.InjectValues[T](T instance, Func`2 filter)
   at Nuke.Common.Execution.BuildManager.Execute[T](Expression`1[] defaultTargetExpressions)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisdmacraecommented, Feb 11, 2020

This can be resolved currently by giving a framework to the attribute:

    [GitVersion(Framework = "netcoreapp3.1")]
    protected readonly GitVersion GitVersion;
1reaction
matkochcommented, Jan 6, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Versioning Artifacts | NUKE
NUKE supports 4 different tools that help generating version numbers from your repository and its commits. Each of these tools comes with its ......
Read more >
Nuke.Common 0.5.0
Version Downloads Last updated 7.0.2 7,256 12 days ago 7.0.1 3,625 16 days ago 7.0.0 22,607 25 days ago
Read more >
Removing sensitive data from your Git history with BFG
Here's how to remove sensitive data, like certificate files or passwords in your files, from your git repo and history with BFG Repo-Cleaner ......
Read more >
git : give me the repo, nuke everything local, I don't care
git branch -D tempBranch. If that doesn't work, the "strategic nuke" option is to delete the repo and clone it again.
Read more >
2.5 Git Basics - Working with Remotes
To be able to collaborate on any Git project, you need to know how to manage your remote repositories. Remote repositories are versions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found