You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move Windows Native Components to a Sub-project or Separate Project #3014
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.
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
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.
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.
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.
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.
Activity
[-]Move Windows Native Components to a SubProject or Separate Project[/-][+]Move Windows Native Components to a Sub-project or Separate Project[/+]iSazonov commentedon Jun 11, 2017
What is Sub-project or Separate Project? New GitHub Repo? If so only maintainers can do this.
/cc Steve Lee (@SteveL-MSFT)
SteveL-MSFT commentedon Jun 12, 2017
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.
SteveL-MSFT commentedon Jun 22, 2017
Feedback from Dongbo Wang (@daxian-dbw) that makes sense to me:
iSazonov commentedon Jun 23, 2017
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.
daxian-dbw commentedon Jun 23, 2017
Ilya (@iSazonov) yes, the building itself doesn't take much time, the problem here is
Start-PSBootstrapfor Windows -- buildingpwrshplugin.dllrequires 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.iSazonov commentedon Jun 23, 2017
Locally we don't install SDK every time. For CI we could use a build cache.