Skip to content

Move Windows Native Components to a Sub-project or Separate Project #3014

Closed

Description

The WinRM plugin for PowerShell introduces the Visual Studio and Windows 10 SDK dependencies. These are heavyweight components that slow down the build time. Moving the native Windows components to a separate project or sub-project would decouple this dependency and improve build times, CI passes, etc.

Activity

  1. changed the title [-]Move Windows Native Components to a SubProject or Separate Project[/-] [+]Move Windows Native Components to a Sub-project or Separate Project[/+] on Jan 18, 2017
  2. added this to the milestone on Jan 18, 2017
  3. modified the milestones: 6.0.0-beta1, on Mar 16, 2017
  4. modified the milestones: , , on May 15, 2017
  5. iSazonov commented on Jun 11, 2017

    @iSazonov
    Collaborator

    What is Sub-project or Separate Project? New GitHub Repo? If so only maintainers can do this.

    /cc Steve Lee (@SteveL-MSFT)

  6. SteveL-MSFT commented on Jun 12, 2017

    @SteveL-MSFT
    Member

    Current plan is to just pull the native binaries from the last official release at build time. Since the native code hasn't changed much at all, no need for a separate repo for now.

  7. SteveL-MSFT commented on Jun 22, 2017

    @SteveL-MSFT
    Member

    Feedback from Dongbo Wang (@daxian-dbw) that makes sense to me:

    • I think we should by default continue to build native component for OSX and Linux. Unlike pwrshplugin.dll, libpsl is much more crucial to PSCore (it has important native implementations that PS engine needs to call in via P/inovke), and it changes far more frequently than the WinRM plugin dll -- for example, jeffbi made changes to it to fix the cyclic symbolic link detection issue in file system provider; Paul Higinbotham (@PaulHigin) made changes to it to create the SSH process for remoting.
    • For pwrshplugin.dll, pwrshplugin.pdb and Install-PowerShellRemoting.ps1, they should be made into a NuGet package and published to powershell-core feed. So we can depend on dotnet-cli to handle them and it's also more robust and cleaner. When we need to make changes to pwrshplugin.dll, we just publish a new version of the NuGet package.
  8. iSazonov commented on Jun 23, 2017

    @iSazonov
    Collaborator

    Native components don't seem so slow to build, I don't have a problem with that. Also we have some opened Issues for remoting and console and a Issue for refactoring native components.

  9. daxian-dbw commented on Jun 23, 2017

    @daxian-dbw
    Member

    Ilya (@iSazonov) yes, the building itself doesn't take much time, the problem here is Start-PSBootstrap for Windows -- building pwrshplugin.dll requires to install win10 SDK and Visual Studio, and that's too heavy. If we can move WinRM remoting components to NuGet package, then a regular user don't need to install them on bootstrap anymore.

  10. iSazonov commented on Jun 23, 2017

    @iSazonov
    Collaborator

    Locally we don't install SDK every time. For CI we could use a build cache.

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

Metadata

Metadata

Labels

Resolution-FixedWG-Maintainers-Build

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions