Author |
Topic: Trouble Running bitbucket examples (5 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
MPhillips8718 Posts: 11 Joined: Feb 09, 2017 |
I have downloaded the basicexample and advancedexample code from bitbucket and I can not seem to get them to work.
I am using Visual Studio 2019 Running the code as is causes a popup saying "ConnectioError." If I use Nuget to update the packages, it throws an exception. Application.Run(new MainForm(runner.WithClient(GFApi.CreateClient()))); System.TypeLoadException: 'Method 'TryGetConstructor' in type 'GF.SimpleInjector.InternalConstructorResolutionBehavior' from assembly 'GF.SimpleInjector, Version=4.0.3.13, Culture=neutral, PublicKeyToken=b6b45f27e2749b17' does not have an implementation.' Am I doing something wrong? Are these examples supposed to work? |
||||
SPikalov Posts: 25 Joined: |
Please install the last stable GFAPI Nuget package (https://www.nuget.org/packages/GFAPI/4.0.3.44)
|
||||
MPhillips8718 Posts: 11 Joined: Feb 09, 2017 |
I already did - that is when the code started throwing exceptions.
|
||||
SPikalov Posts: 25 Joined: |
It’s strange
Maybe something wrong with your Nuget Installer Please check ‘basicexample\GF.BasicExample\packages.config’ It should contain: package id="GFAPI" version="4.0.3.44" targetFramework="net462" package id="Microsoft.CSharp" version="4.5.0" targetFramework="net462" package id="SimpleInjector" version="4.7.1" targetFramework="net462" package id="System.Reflection.Emit" version="4.3.0" targetFramework="net462" Also check ‘d:\projects\OEC\bitbucket\basicexample\packages’ This folder should contain: GFAPI.4.0.3.44, SimpleInjector.4.7.1, Microsoft.CSharp.4.5.0, System.Reflection.Emit.4.3.0
Edited by SPikalov on Nov 10, 2021 06:47 AM |
||||
MPhillips8718 Posts: 11 Joined: Feb 09, 2017 |
I got it working. The problem is if you let nuget update all the packages it thinks needs updating.
Downloaded straight from bitbucket it is: id="GFAPI" version="4.0.3.5" targetFramework="net462" id="Microsoft.CSharp" version="4.5.0" targetFramework="net462" id="System.Reflection.Emit" version="4.3.0" targetFramework="net462" After updating ONLY GFAPI you get this - which works: id="GFAPI" version="4.0.3.44" targetFramework="net462" id="Microsoft.CSharp" version="4.5.0" targetFramework="net462" id="SimpleInjector" version="4.7.1" targetFramework="net462" id="System.Reflection.Emit" version="4.3.0" targetFramework="net462" Updating to the latest versions of CSharp(4.7), Simple Injector(5.3.2) and Emit(4.7) breaks the code. Edited by MPhillips8718 on Nov 10, 2021 07:12 AM Edited by MPhillips8718 on Nov 10, 2021 07:12 AM |
||||