Skip to content

Win7 loading issue - #4463

Merged
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:releasefrom
adityapatwardhan:Win7LoadingIssue
Aug 2, 2017
Merged

Win7 loading issue#4463
Dongbo Wang (daxian-dbw) merged 2 commits into
PowerShell:releasefrom
adityapatwardhan:Win7LoadingIssue

Conversation

@adityapatwardhan

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) commented Aug 2, 2017

Copy link
Copy Markdown
Member

Since .Net Core 2.0, the api sets were moved to a nuget package. Adding a package reference for "Microsoft.NETCore.Windows.ApiSets" gets the required binaries for the Win7 package.

Opening this PR for release branch. Original PR #4438

Updated by iSazonov:
Fix #3747.

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit 0e4f160 into PowerShell:release Aug 2, 2017
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) deleted the Win7LoadingIssue branch August 17, 2017 00:01
Alan Mason (2Shirt) added a commit to 2Shirt/WizardKit that referenced this pull request Nov 27, 2017
Start-Process "" -Wait doesn't wait preventing proper extraction of tools.
See these issues:
* PowerShell/PowerShell#2091  (Main issue)
* PowerShell/PowerShell#3747
* PowerShell/PowerShell#4463
@Zetanova

Copy link
Copy Markdown

I am still getting the startup error in win7
checked the redist files and the Microsoft.NETCore.Windows.ApiSets packet
both are there.

System.TypeInitializationException: The type initializer for 'System.Management.
Automation.Runspaces.RunspaceFactory' threw an exception. ---> System.DllNotFoun
dException: Unable to load DLL 'api-ms-win-eventing-provider-l1-1-0.dll': The sp
ecified module could not be found. (Exception from HRESULT: 0x8007007E)
at System.Management.Automation.Tracing.EtwActivity.UnsafeNativeMethods.Event
ActivityIdControl(ActivityControlCode controlCode, Guid& activityId)
at System.Management.Automation.Tracing.EtwActivity.GetActivityId()
at System.Management.Automation.Runspaces.RunspaceFactory..cctor()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(PSHo
st host, InitialSessionState initialSessionState)

@Zetanova

Copy link
Copy Markdown

dotnet is trying to resolve the vcredist dll everywhere beside the nuget package location
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\Microsoft.NETCore.Windows.ApiSets-x64\1.0.0\runtimes\win7-x64\native

After i added the package runtime.win7-x64.Microsoft.NETCore.Windows.ApiSets explicitly to
the main project, the issue was resolved.

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Added package reference for 'Microsoft.NETCore.Windows.ApiSets'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants