I am trying to incorporate F# SQLProvider into my project. And for now I can successfully access the Postgresql database. But there is something called resolution path. That I need to give. Now, the question is path will be different for deployed application and application I am developing on my local machine. So, how can I give relative path to my dll.
Right now I am using below path
[<LiteralAttribute>]
let resolutionFolder = @"D:\<myprojectdirectory>\<projectname>\packages\Npgsql.2.2.2\lib\net45"
So, is it possible to convert to something like
[<LiteralAttribute>]
let resolutionFolder = @"..\sqlprovider\packages\Npgsql.2.2.2\lib\net45"
Now, in Azure site I don't which path it will be. So, above path is not fix. But if I can give relative path that will be better solution I guess.
Let me know if any further details are required.
It would seem like you could use conditional preprocessor directives to help you here.