secana / Native-FSharp-Library

Create a DLL in F# that can be called by native C++
Apache License 2.0
4 stars 3 forks source link

nuget package issue #1

Closed ChrisTruncer closed 3 years ago

ChrisTruncer commented 3 years ago

Hey,

This is probably a dumb question, still very much a newbie when it comes to C++. But I'm trying to import this solution into VS2019 and I'm basically being told that it can't find the nuget package (Microsoft.DotNet.ILCompiler). Is there an easy fix that I am likely missing?

Thanks for your help on this project!

secana commented 3 years ago

Hi @ChrisTruncer,

the ILCompiler is not on NuGet but on the Dotnet Respo. The file https://github.com/secana/Native-FSharp-Library/blob/master/src/NativeLib/nuget.config contains the source for the ILCompiler. If this file is right beside your *.fsproj, you can run a ´dotnet restore´ and the ILCompiler package will be downloaded.

Hope that helps!