Skip to content
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

Loading the assembly fails with PowerShell Core 7 #45

Open
InspiringCode opened this issue Aug 13, 2020 · 4 comments
Open

Loading the assembly fails with PowerShell Core 7 #45

InspiringCode opened this issue Aug 13, 2020 · 4 comments

Comments

@InspiringCode
Copy link

Whenever I try to call
Add-Type -Path "D:\Test\Namotion.Reflection.dll"
in a PowerShell session it fails with
Could not load file or assembly 'Namotion.Reflection, Version=1.0.12.0, Culture=neutral, PublicKeyToken=c2f9c3bdfae56102'.

The loading of a big .NET Core Project even with Entity Framework Core succeeds. Just the Namation.Reflection assembly cannot be loaded. Do you have any ideas what the issue could be? Any special dependencies or such? Some ideas that I could try?

@InspiringCode
Copy link
Author

Strange, it works in the classic none-core powershell 5, but not in pwsh...

@InspiringCode
Copy link
Author

Ok, this is really strange. I tried to build & publish the lib myself, same error. When I just change the Version in the csproj to 1.0.11 instead of 1.0.12 it works perfectly. Changing it pack to 1.0.12 -> same error. What the hell????

@InspiringCode
Copy link
Author

Oooh. PowerShell 7.0.3 seems to also use Namotion.Reflection... At least on my machine there is a "C:\Program Files\PowerShell\7\Namotion.Reflection.dll"... And it is version 1.0.11 :( Is there anything I can do about it?

@RicoSuter
Copy link
Owner

PowerShell 7.0.3 seems to also use Namotion.Reflection

Its part of the ps core installation!?!

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

No branches or pull requests

2 participants