Some tweaks to .net platforms samples.