Skip to content

Missing System.Runtime, Version=9.0.0.0 #1521

Open
@ghost

Description

Usage Information

9.0.4

Description

I get the following problem running NUKE. It's a warning,.

███╗   ██╗██╗   ██╗██╗  ██╗███████╗
████╗  ██║██║   ██║██║ ██╔╝██╔════╝
██╔██╗ ██║██║   ██║█████╔╝ █████╗  
██║╚██╗██║██║   ██║██╔═██╗ ██╔══╝  
██║ ╚████║╚██████╔╝██║  ██╗███████╗
╚═╝  ╚═══╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝

NUKE Execution Engine version 9.0.4 (Windows,.NETCoreApp,Version=v8.0)

16:06:32 [WRN] Attempting second-chance registration of MSBuild after RegisterDefaults failed
16:06:32 [WRN] Could not register MSBuild: Could not load file or assembly 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Systemet finner ikke angitt fil.
16:06:32 [WRN] Exception was suppressed
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Systemet finner ikke angitt fil.
File name: 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Nuke.Common.Execution.Telemetry.CheckAwareness()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Reproduction Steps

class Build : NukeBuild
{
public static int Main()
=> Execute(x => x.Compile);

[Parameter("Configuration to build : 'Default' or 'Release'")]
readonly string Configuration;

[Parameter("Configuration suffix : '-rc' (Release Candidate) or -beta (Beta)")]
readonly string ConfigurationSuffix;

// register the t4 template converter
[LocalPath("C:/Users/rhh/.dotnet/tools/t4.exe")]
readonly Tool T4;

Target Compile => _ => _
    .Executes(() =>
    {
        // run the T4 template converter tool
        T4?.Invoke("GlobalAssemblyInfo.tt -p:Configuration=" + Configuration + " -p:ConfigurationSuffix=" + ConfigurationSuffix, "C:/TDS/VER/.NET Core/");
    });

}

t4 is the global tool dotnet-t4

Expected Behavior

No warning about missing System.Runtime, Version=9.0.0.0

Actual Behavior

Missing System.Runtime, Version=9.0.0.0 warning

Regression?

No response

Known Workarounds

No response

Could you help with a pull-request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions