1

I'm trying to build the OsmSharp latest download from their GIT repo. https://osmsharp.codeplex.com/

The problem is that I try and build and get a load of errors. The main one seems to be

"Error 296 Cannot define a new extension method because the compiler required type 'System.Runtime.CompilerServices.ExtensionAttribute' cannot be found. Are you missing a reference to System.Core.dll?"

This is a Portable Class Library and so I try to add the reference by right-clicking on the project and choosing "Add Reference", choosing .NET and I have nothing to add!

Anyone any ideas on how to get a list of .NET references to add?

enter image description here

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
AdamantUK
  • 93
  • 1
  • 7

1 Answers1

0

I had this problem because there weren't any Target Frameworks set in the Library section of the project properties. Adding a couple fixed the issue.

dmet
  • 1