# \[Visual Studio\] Error: Unable to deploy local file 'C:\\....\\x64\\Release\\ZERO\_CHECK'

**URL:** https://discourse.cmake.org/t/visual-studio-error-unable-to-deploy-local-file-c-x64-release-zero-check/2072
**Category:** Usage
**Tags:** os:windows, gen:vs
**Created:** [October 27, 2020, 3:06pm UTC](https://discourse.cmake.org/t/visual-studio-error-unable-to-deploy-local-file-c-x64-release-zero-check/2072 "2020-10-27T15:06:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ymba9g8j9cjp0wloqf5y/32/1244_2.png) [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)
#### Post date: [October 27, 2020, 3:06pm UTC](https://discourse.cmake.org/t/visual-studio-error-unable-to-deploy-local-file-c-x64-release-zero-check/2072/1 "2020-10-27T15:06:18Z")

</div>

I’m trying to deploy my code onto my testing machine.

Here is a windows guide on how to do this:

> **[Remote Debug a C++ Project - Visual Studio](https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging-cpp?view=vs-2019#remote_cplusplus)**

However I’m running into a really annoying issue with the workflow.

 ![image](https://discourse.cmake.org/uploads/default/original/1X/cb07bb8c931177174bf43d969b3d2829216f4545.png)

The visual studio solution tries to deploy zero check as well.

Is there a way to use remote deployment with a visual studio solution generated by cmake?

The only workaround I have found is to remove the ZERO\_CHECK project temporarily and just reconfigure the project later…

---

<div class="post-metadata">

### Author: ![McMartin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mcmartin/32/150_2.png) [@McMartin](https://discourse.cmake.org/u/McMartin)
#### Post date: [October 28, 2020, 7:24pm UTC](https://discourse.cmake.org/t/visual-studio-error-unable-to-deploy-local-file-c-x64-release-zero-check/2072/2 "2020-10-28T19:24:43Z")

</div>

You can set `CMAKE_SUPPRESS_REGENERATION` to `ON` so CMake doesn’t generate the ZERO\_CHECK target (see [https://cmake.org/cmake/help/latest/variable/CMAKE\_SUPPRESS\_REGENERATION.HTML](https://cmake.org/cmake/help/latest/variable/CMAKE_SUPPRESS_REGENERATION.HTML))

---

<div class="post-metadata">

### Author: ![YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ymba9g8j9cjp0wloqf5y/32/1244_2.png) [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)
#### Post date: [January 15, 2021, 5:42pm UTC](https://discourse.cmake.org/t/visual-studio-error-unable-to-deploy-local-file-c-x64-release-zero-check/2072/3 "2021-01-15T17:42:34Z")

</div>

This solution works around the problem fine for now.

Ideally this could be fixed in the future. But I’m not sure how to fix the problem at all yet.

I don’t know why visual studio is trying to deploy this custom target.

But for now my workflow is to use the terminal inside visual studio:

![image](https://discourse.cmake.org/uploads/default/original/2X/a/a44062859b36c49ba23b44a7ce7e5e1bd7a77581.png)

And then quickly execute the necessary CMake command line to turn off ZERO\_CHECK.

The problem with that workflow is it’s not very friendly to people who don’t know CMake. Regardlless thank you for showing me this.
