Skip to content

Type name conflicts in PowerShell after moving to .Net 6.0 Preview7 #57017

Closed
@iSazonov

Description

@iSazonov

Description

See PowerShell/PowerShell#15886 It is very amazing to see such name conflicts.

  1. System.Management.Automation.ExecutionContext vs System.Threading.ExecutionContext

Proposal is to rename System.Threading.ExecutionContext to System.Threading.ThreadExecutionContext

"ExecutionContext" is such a common pattern that there will be conflicts in many projects.

  1. System.Management.Automation.DriveNotFoundException vs System.IO.DriveNotFoundException

I haven't exact proposal. If we renamed System.Management.Automation.DriveNotFoundException to System.Management.Automation.PSDriveNotFoundException in PowerShell repository this would be a breaking change. I feel it is not accessible /cc @SteveL-MSFT @adityapatwardhan

I hope .Net can find alternative name for System.IO.DriveNotFoundException (maybe IODriveNotFoundException?)

Regression?

Regression in PowerShell after moving to .Net Core 6.0 Preview.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tracking-external-issueThe issue is caused by external problem (e.g. OS) - nothing we can do to fix it directlyuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions