Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to find type [EnvironmentVariableTarget] #317

Closed
kentcb opened this issue Dec 4, 2016 · 1 comment
Closed

Unable to find type [EnvironmentVariableTarget] #317

kentcb opened this issue Dec 4, 2016 · 1 comment

Comments

@kentcb
Copy link

kentcb commented Dec 4, 2016

Running posh-git against PS 6.0.0-alpha gives me the following every time a PS session is started:

Unable to find type [EnvironmentVariableTarget].
At C:\Users\Kent\Repository\THIRD_PARTY\posh-git\GitUtils.ps1:234 char:67
+ ... EnvironmentVariable($key, $value, [EnvironmentVariableTarget]::Proces ...
+                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (EnvironmentVariableTarget:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Unable to find type [EnvironmentVariableTarget].
At C:\Users\Kent\Repository\THIRD_PARTY\posh-git\GitUtils.ps1:234 char:67
+ ... EnvironmentVariable($key, $value, [EnvironmentVariableTarget]::Proces ...
+                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (EnvironmentVariableTarget:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Despite this, posh-git appears to work OK.

@rkeithhill
Copy link
Collaborator

@kentcb Thanks for the report. I have one PR I need to approve to fix another .NET Core portability issue. I'll see if I can get this fixed as well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants