Fixing Publish errors and csproject