Skip to content

Target framework "netstandard2.0" does not build with error The name 'Registry' does not exist in the current context #1779

Open
@o-l-a-v

Description

@o-l-a-v

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

  • Clone repo
  • & '.\build.ps1' -BuildConfiguration 'Debug' -BuildFramework 'netstandard2.0' -Build -Clean

Results in:

error CS0103: The name 'Registry' does not exist in the current context [D:\Git\personal\PowerShell--PSResourceGet\src\code\Microsoft.PowerShell.PSResourceGet.csproj::TargetFramework=netstandard2.0]

Expected behavior

Should build

Actual behavior

Does not build

Error details

Environment data

Windows 11 24H2 x64
PowerShell v7.4.6

Visuals

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions