Stop a build in progress

Can anyone tell me how you stop a build in progress?
Trying to close VS but keep getting an error message

“you must stop the build in process to close the solution”