Skip to content

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