Skip to content

add back options for STA #7216

Closed
Closed

Description

Add command line option to specify apartment state and ability to create runspace with apartment state

Activity

  1. added
    Issue-Enhancementthe issue is more of a feature request than a bug
    WG-Enginecore PowerShell engine, interpreter, and runtime
    on Jul 3, 2018
  2. iSazonov commented on Jul 3, 2018

    @iSazonov
    Collaborator

    Related #4995

  3. bergmeister commented on Jun 14, 2019

    @bergmeister
    Contributor

    What are the plans here in terms of timeline/expectations as this could be important for WPF? Add STA for PS 7.0? Or is it too much involved and will come only in 7.1? Steve Lee (@SteveL-MSFT)

  4. SteveL-MSFT commented on Jun 14, 2019

    @SteveL-MSFT
    Member

    Christoph Bergmeister (@bergmeister) agree that this is probably needed for WPF to work with 7, so we should do this for 7.0.

  5. iSazonov commented on Jun 14, 2019

    @iSazonov
    Collaborator

    We preserved all apartment code. Only .Net Core has probably deviations from .Net Framework.

  6. bergmeister commented on Jun 14, 2019

    @bergmeister
    Contributor

    Ilya (@iSazonov) Except for the -Sta and -Mta switches on the pwsh binary that were removed in #4995

  7. iSazonov commented on Jun 14, 2019

    @iSazonov
    Collaborator

    Has MSFT team tests for the code area?

  8. SteveL-MSFT commented on Jun 20, 2019

    @SteveL-MSFT
    Member

    Ilya (@iSazonov) I searched the old tests and they don't seem comprehensive. All it really does is use -STA with powershell.exe and validates that the apartmentstate is set correctly. Ideally, we should include a specific test like using a COM object that requires STA or even WPF (not getting an exception). Also manually run all tests with -STA to see if anything fails unexpectedly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions