Skip to content

Win7 loading issue #4463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 2, 2017
Merged

Conversation

adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Aug 2, 2017

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 daxian-dbw merged commit 0e4f160 into PowerShell:release Aug 2, 2017
@adityapatwardhan adityapatwardhan deleted the Win7LoadingIssue branch August 17, 2017 00:01
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

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

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.

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