<p dir="auto">Hi,</p>
<p dir="auto">I followed the new instructions for the <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/cmake/README.md">CMake build on Windows</a>.<br>
The C++ example program <code class="notranslate">tf_tutorials_example_trainer.exe</code> build and run successfully.<br>
But the build of the PIP package exited with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ld_pip_package.vcxproj&quot; (Standardziel) (1) -&gt;
&quot;C:\Users\jonas\projects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensor flow.vcxproj&quot; (Standardziel) (3) -&gt;
(ClCompile Ziel) -&gt;
C:\Users\jonas\projects\tensorflow\tensorflow\python\lib\core\py_func.cc(165): 
error C2466: cannot allocate an array of constant size 0 [C:\Users\jonas\projec ts\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj]

    2398 Warnung(en)
    1 Fehler"><pre class="notranslate"><code class="notranslate">ld_pip_package.vcxproj" (Standardziel) (1) -&gt;
"C:\Users\jonas\projects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensor flow.vcxproj" (Standardziel) (3) -&gt;
(ClCompile Ziel) -&gt;
C:\Users\jonas\projects\tensorflow\tensorflow\python\lib\core\py_func.cc(165): 
error C2466: cannot allocate an array of constant size 0 [C:\Users\jonas\projec ts\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj]

    2398 Warnung(en)
    1 Fehler
</code></pre></div>
<p dir="auto">(Copied from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/laudney/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/laudney">@laudney</a>'s comment on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115925964" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/17" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/17/hovercard" href="https://github.com/tensorflow/tensorflow/issues/17">#17</a>)</p>
<blockquote>
<p dir="auto">I've tried to follow your instructions. All seem to work flawlessly (for about 45min) until it failed with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The target &quot;BeforeGenerateProjectPriFile&quot; listed in a BeforeTargets attribute at &quot;C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)&quot; does not exist in the project, and will be ignored.
Done Building Project &quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj&quot; (default targets) -- FAILED.

&quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj&quot; (default target) (1) -&gt;
&quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj&quot; (default target) (3) -&gt;
&quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_cpu.vcxproj&quot; (default target) (4) -&gt;
&quot;H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj&quot; (default target) (5) -&gt;
(CustomBuild target) -&gt;
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: &quot;cmd.exe&quot; exited with code 1. [H:\PycharmProjects\t
ensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj]

    30 Warning(s)
    1 Error(s)"><pre class="notranslate"><code class="notranslate">The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Done Building Project "H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default targets) -- FAILED.

"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default target) (1) -&gt;
"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow.vcxproj" (default target) (3) -&gt;
"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_cpu.vcxproj" (default target) (4) -&gt;
"H:\PycharmProjects\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj" (default target) (5) -&gt;
(CustomBuild target) -&gt;
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [H:\PycharmProjects\t
ensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj]

    30 Warning(s)
    1 Error(s)
</code></pre></div>
</blockquote>