If you're trying to publish a ClickOnce project and you get the error
SignTool failed with error: 'XmlResolver can only be set by trusted code'
or something similar, then delete your .sln file and then resave your project. This fixed it for me.
(Technorati tag: )