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

Could not install package 'SharpFont.Dependencies 2.5.5'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. #111

Open
Meai1 opened this issue May 7, 2017 · 8 comments

Comments

@Meai1
Copy link

Meai1 commented May 7, 2017

Could not install package 'SharpFont.Dependencies 2.5.5'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

What's the problem? From reading some other issues apparently 4.x is supposed to work?
This message pops up even when I try to only install SharpFont 4.0.1

I'm on linux

@Meai1
Copy link
Author

Meai1 commented May 7, 2017

tried building myself on linux, had to do tons of workarounds to make it build and then it still throws dllnotfoudnexceptions with missingmethod crap

@HinTak
Copy link
Contributor

HinTak commented May 7, 2017

Yes, building with mono on linux is broken very badly. Head is only about 20 commits from my last successful build, but I have tried 3 ugly hacks already and it is still not building. The most recent successful linux build is v4.0.1+fixes branch on mine, which is only 20 commits or so behind, if that helps.

Yes, there are a lot of disagreeable changes among that 20. I am still staying at 3.x. But that's because net2 is a must for me. (v4 dropped net2 compatibility, then it got worse and worse)

@HinTak
Copy link
Contributor

HinTak commented May 7, 2017

FWIW, v4.0.1 still builds with mono 4.8.0 - except note
#93

@ghidosoft
Copy link

I have the same issue but I'm using Windows and Visual Studio 2017.
I tried also with previous .NET frameworks (4, 4.5, 4.5.1, 4.5.2) but I got the same error. I even tried both nuget versions 3.1.0/4.0.1 but without success.

@ghidosoft
Copy link

I "solved" it by first installing the SharpFont.Dependencies nuget package 2.6.0, then I installed the nuget package SharpFont 4.0.1 and it worked flawlessy.

@HinTak
Copy link
Contributor

HinTak commented May 10, 2017

Yes, things after 4.0.1 got very seriously broken. I have given up trying to build from git (3 ugly hacks and still not building is a bit much), and just keeping and maintaining my own heavily patched v3.1.0 and v4.0.1 branches.

I have updated my heavily patched v4.0.1 branch, and merged the net2 change and the file streaming change, so at least that's usable for me for my purpose now.

@Meai1
Copy link
Author

Meai1 commented May 11, 2017

What kind of freetype native library version is required for it to work anyway? The weird name "freetype6.dll" is very confusing, that is nothing like the output I get when I compile freetype myself, I get someething like: freetype.so.2.6.1 or something like that, I dont remember. Doesnt even have the right .dll extension, but on linux I cant use .dll right? Yet I see no .so in the git checkout

@HinTak
Copy link
Contributor

HinTak commented May 11, 2017

You not familiar with mono? Mapping to native libraries from windows dll names are in *.dll.config. SharpFont ships one , note #93 with it from v4.0 onwards. On the typical linux box, there are plenty of examples from various *-sharp projects (nearly 40 in mine, at least):

$ find /usr/lib/mono* -type f -name '*.dll.config' | wc -l
37

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

3 participants