[csharp] fix cleaning
[csharp] fix package restore on mono