LANDIS-II-Foundation / Extension-Biomass-Succession

Biomass-based succession extension for LANDIS-II
https://sites.google.com/site/landismodel/extensions/biomass-succession
Apache License 2.0
4 stars 9 forks source link

No overload for 'AddNewCohort' matches delegate 'Reproduction.Delegates.AddNewCohort' #30

Closed glaroc closed 4 years ago

glaroc commented 4 years ago

Hi, when I try to build this extension on Linux with "dotnet build", I get:

PlugIn.cs(105,41): error CS0123: No overload for 'AddNewCohort' matches delegate 'Reproduction.Delegates.AddNewCohort'

I can succesfully build other extensions and I think I am modifying the .csproj file properly and I'm directing to the proper libraries files.

@rmscheller ?

rmscheller commented 4 years ago

Guillaume,

The latest releases uses a new version of the succession library (v8) that changes that interface. Are you using that version?

glaroc commented 4 years ago

The .csproj file mentions v8 but links to Landis.Library.Succession-v7.dll here
https://github.com/LANDIS-II-Foundation/Extension-Biomass-Succession/blob/88f4f6f5dfbe45827dcf322044d19adef138110e/src/biomass-succession.csproj#L58

I've changed it to Landis.Library.Succession-v8.dll and now it works! Thank you