cake-build/cake

Error: Error getting value from 'CurrentUser' on 'Cake.Core.IO.WindowsRegistry'.

Open

#3,829 opened on Feb 28, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (3,742 stars) (738 forks)batch import
BugHelp wantedUp-for-grabs

Description

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

Cake runner

Cake Frosting

Cake version

2.1.0.0

Operating system

Linux

Operating system architecture

N/A

CI Server

No response

What are you seeing?

I am logging the Build Context in the Setup, it works on the Windows and fails on the Ubuntu.

context.Information(context.ToJson(Formatting.Indented))

What is expected?

Please find the expected Output from Windows, I should get similar in Ubuntu

----------------------------------------
Setup
----------------------------------------
Cake Context Start
{
  "SharedSettings": {},
  "FileSystem": {},
  "Environment": {
    "WorkingDirectory": "D:/Repos/FleetHub/Build/cake-frosting/CakeBuild/bin/Debug/net5.0",
    "ApplicationRoot": "D:/Repos/FleetHub/Build/cake-frosting/CakeBuild/bin/Debug/net5.0",
    "Platform": {
      "Family": "windows",
      "Is64Bit": true
    },
    "Runtime": {
      "BuiltFramework": {
        "Identifier": ".NETCoreApp",
        "Version": "5.0",
        "Profile": "",
        "FullName": ".NETCoreApp,Version=v5.0"
      },
      "Runtime": "coreClr",
      "CakeVersion": "2.1.0.0",
      "IsCoreClr": true
    }
  },
  "Globber": {},
  "Log": {
    "Verbosity": "normal"
  },
  "Arguments": {},
  "ProcessRunner": {},
  "Registry": {
    "CurrentUser": {},
    "LocalMachine": {},
    "ClassesRoot": {},
    "Users": {},
    "PerformanceData": {},
    "CurrentConfig": {}
  },
  "Tools": {},
  "Data": {},
  "Configuration": {}
}

Steps to Reproduce

Log the Build Context in the Setup

context.Information(context.ToJson(Formatting.Indented))

Output log

No response

Contributor guide

Error: Error getting value from 'CurrentUser' on 'Cake.Core.IO.WindowsRegistry'. · cake-build/cake#3829 | Good First Issue