To me it sounds like there are old references lingering in your .csproj file, can you check your project file to see which versions of the references it states? Also verify that you project targets the 4.5.2 .NET framework.
The QlikSense SDK should only requires Autofac >= 3.5.2 and Newtonsoft >= 6.0.8, and if they are not already present in a project they will automatically be installed.
I have not given all information actually (because for to me this has nothing to do with visual studio)
The situation is a little bit more complex :
I have NOT Visual studio.
I expected to be able to drive Qlik via Powershell only.
I wanted to basically create a powershell script that refresh a (local for now) qvf file
So I execute a Powershell script that :
- load dynamically the Qlik/autofac/Json dlls with instruction [Reflection.Assembly]::LoadFile
- drive Qlikview by powershell.
Following instructions are correctly executed :
$local = [Qlik.Engine.Location]::FromUri([System.Uri]"ws://127.0.0.1:4848")
But, crash at this instruction:
Impossible de charger le fichier ou l'assembly 'System.Core, Version=18.104.22.168, Culture=neutral,
PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' ou une de ses dépendances. Le fichier spécifié est introuvable.»
So , I'm stuck.
How could I load or install the dll of Qlik/autofac/json ?
Loaded them dynamically seems not a good practice in this case ?
Am I obliged to develop the tool (C# lib) under Visual Studio ?
Any advice would be appreciated.
NB: There would be 2 other possible options:
- Create a c# file that do the reolad, and execute this .cs via Powershell.
But it is not working, because dlls (qlik,autofac, json) are not installed/not found. Not sure how I could load them.
- Use Visual Studio, with the standard way, and create an executable with 1 parameter (the file to be reloaded). But I have not VS currently, and I expected to be able to drive Qlik via powershell