Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

WPF/netstandard: This functionality is not implemented in the portable version of this assembly. #119

Closed
gmwilhelm opened this issue Nov 17, 2017 · 10 comments

Comments

@gmwilhelm
Copy link

Hello,

i'm trying to use this plugin in a class library that targets net461 and netstandard 1.6. My class library then will be used in a wpf project and a netcore console application.

Referencing the plugin nuget works, but when use the plugin, i get this message:

This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.

Just adding the nuget also to the console app didn't work.

What do i have to do to get rid of this message?

Regards,
Dirk

@jamesmontemagno
Copy link
Owner

You need to include it in all projects. Ensure that the references that are included in the actual WPF app are from lib/net45 as there are 2 that get bundled.

@jamesmontemagno
Copy link
Owner

App.zip

Works just fine

@gmwilhelm
Copy link
Author

Thanks for that sample.

But this console app doesn't work:

ConsoleApp1.zip

@jamesmontemagno
Copy link
Owner

Correct, it does not support .net core apps currently. Just the main frameworks.

@jamesmontemagno
Copy link
Owner

you can try any of the new beta packages and they now have .net core support

@gmwilhelm
Copy link
Author

I tried the new 4.0.0-beta164 but i still get that error.

@jamesmontemagno
Copy link
Owner

Yeah I am working on the packaging, .NET Core works a bit weird

@gmwilhelm
Copy link
Author

4.0.0-beta167 works. Thank you very much.

@gmwilhelm
Copy link
Author

Sorry to bother you again with this, but maybe you can take a look at this console app again?

I'm getting this error with it:

Could not load file or assembly 'Plugin.Connectivity, Version=4.0.167.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

ConsoleApp1.zip

@jamesmontemagno
Copy link
Owner

Yup yup on it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants