fslaborg / flips

Fsharp LInear Programming System
https://flipslibrary.com/#/
MIT License
252 stars 32 forks source link

Cannot get the package into a project via the Nuget package manager #43

Closed ItPutsTheLotionInTheBasket closed 4 years ago

ItPutsTheLotionInTheBasket commented 4 years ago

When I attempt to add this as a project, I get the following error:

_Could not install package 'Flips 1.2.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', 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.__

I also try to download the zip directly and build. When I do this, I can run the console test, however when I try to run the script flips-master\Flips\Scratchpad.fsx , I get the following errors:

error FS0229: Error opening binary file '..\flipsmaster\Flips.Examples\bin\x64\Release\netcoreapp3.1\google-ortools-native.dll': C:\Users\thrallL\Downloads\flips-master\Flips.Examples\bin\x64\Release\netcoreapp3.1\google-ortools-native.dll: bad cli header, rva 0 and

error FS3160: Problem reading assembly 'flips-master\Flips.Examples\bin\x64\Release\netcoreapp3.1\google-ortools-native.dll': Processing of a script fragment has stopped because an exception has been raised

matthewcrews commented 4 years ago

It sounds like the project you are trying to add Flips to is targeting the .NET Framework, not .NET Core. Could you try having it target .NET Core and run the project as an x64 app?

ItPutsTheLotionInTheBasket commented 4 years ago

That was it. Thank you.