TinCan.NET icon indicating copy to clipboard operation
TinCan.NET copied to clipboard

Sample code returns errors

Open ProfessorHoover opened this issue 7 years ago • 2 comments

The sample code under Basic Usage (http://rusticisoftware.github.io/TinCan.NET/) will not compile. The first issue is that the code is not contained in a function.

The second is that the line: ``activity.id = new Uri ("http://rusticisoftware.github.io/TinCan.NET"); gives the error "Cannot implicitly convert type "system.Uri" to string. Oddly, the previous section following this format does not give this error.

ProfessorHoover avatar Mar 26 '18 16:03 ProfessorHoover

Created my own fork to experiment and look for a solution, any guidance will be appreciated.

ProfessorHoover avatar Mar 26 '18 17:03 ProfessorHoover

While Activity IDs are URIs, they are now being handled as a string. #20 . You can do the following: activity.id = "http://rusticisoftware.github.io/TinCan.NET";

valdeezzee avatar Sep 11 '20 20:09 valdeezzee