Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample code returns errors #38

Open
ProfessorHoover opened this issue Mar 26, 2018 · 2 comments
Open

Sample code returns errors #38

ProfessorHoover opened this issue Mar 26, 2018 · 2 comments

Comments

@ProfessorHoover
Copy link

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
Copy link
Author

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

@valdeezzee
Copy link

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";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants