Edit

Share via


MSB3075: The command 'name' exited with code 'error-code'. Please verify that you have sufficient rights to run this command

This error occurs when MSBuild isn't running with sufficient privileges to run a particular command.

You might be tempted to run MSBuild or Visual Studio as Administrator to resolve the issue, but that isn't usually necessary.

Check the executable listed in the error message and make sure it allows execute permissions.

The error can occur in projects that write to the registry, which usually requires elevated privileges. If you are building a C++ project, enabling Per-user Redirection in the Linker settings might solve the issue.