Open ghidosoft opened 7 years ago
Getting same results from nugget.
I had this problem and worked around it by editing SharpFont.Dependencies.props -- the Include line references an x86 folder, and you can change it to x64 to get the right DLL. This has worked so far in development, anyway.
same problem.... 😞
I found a code to solve the problem.
<ItemGroup>
<PackageReference Include="SharpFont.Dependencies" Version="2.6.0" GeneratePathProperty="true" />
</ItemGroup>
<ItemGroup>
<Content Update="$(PkgSharpFont_Dependencies)\bin\msvc10\x86\freetype6.dll">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
<Content Include="$(PkgSharpFont_Dependencies)\bin\msvc10\x64\freetype6.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
The test environment is dotnet core 3.1.
I installed SharpFont using the nuget package but the deployed
freetype6.dll
is always 32bit. When I switch the platform of my solution tox64
I get this exception:Am I missing something? Thanks.