Hi,
I want to add one my variable set to my octopus project with octopus.client
Here is my code block ;
LibraryVariableSetResource _Library = repo.LibraryVariableSets.FindByName(“Deneme”);
ProjectResource _project = repo.Projects.FindByName("@Ty.DevOps");
repo.LibraryVariableSets.Get(_Library.Id);
_project.IncludedLibraryVariableSetIds.Add(_Library.VariableSetId);
repo.Projects.Modify(_project);
But I got this error (Attached File) Please Help.
Hi,
Thanks for getting in touch! I ran this past one of our developers who pointed out that the following line:
_project.IncludedLibraryVariableSetIds.Add(_Library.VariableSetId);
Should be changed to:
_project.IncludedLibraryVariableSetIds.Add(_Library.Id);
Whilst changing that line seemed to work for us, we were not able to replicate the same error as you attached in your screen shot. So if the above does not help you fix this issue, would you be able to send through the rest of the your code for this?
Looking forward to hearing from you. 
Best regards,
Daniel