<p dir="auto">Any thoughts on what might be driving this error and causing the build to fail? I installed the latest version of Visual Studio Community and tried running it from the VS command prompt as well.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python script\build.py -c D

ninja: Entering directory `out\D'
[339/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\dso\openssl.dso_win32.obj
electron\vendor\node\deps\openssl\openssl\crypto\dso\dso_win32.c(289) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DSO_FUNC_TYPE'
[723/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\whrlpool\openssl.wp_block.obj
electron\vendor\node\deps\openssl\openssl\crypto\whrlpool\wp_block.c(87) : warning C4164: '_rotl64' : intrinsic function not declared
[918/1062] CXX obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj
FAILED: ninja -t msvc -e environment.x64 -- &quot;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe&quot; /nologo /showIncludes /FC @obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj.rsp /c ..\..\atom\common\crash_reporter\crash_reporter.cc /Foobj\atom\common\crash_reporter\electron_lib.crash_reporter.obj /Fdobj\electron_lib.cc.pdb
electron\atom\common\crash_reporter\crash_reporter.cc(49) : error C2440: '&lt;function-style-cast&gt;' : cannot convert from 'const std::string' to 'base::FilePath'
        No constructor could take the source type, or constructor overload resolution was ambiguous
[918/1062] CXX obj\atom\common\electron_lib.platform_util_win.obj
ninja: build stopped: subcommand failed."><pre class="notranslate"><code class="notranslate">python script\build.py -c D

ninja: Entering directory `out\D'
[339/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\dso\openssl.dso_win32.obj
electron\vendor\node\deps\openssl\openssl\crypto\dso\dso_win32.c(289) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DSO_FUNC_TYPE'
[723/1062] CC obj\vendor\node\deps\openssl\openssl\crypto\whrlpool\openssl.wp_block.obj
electron\vendor\node\deps\openssl\openssl\crypto\whrlpool\wp_block.c(87) : warning C4164: '_rotl64' : intrinsic function not declared
[918/1062] CXX obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\atom\common\crash_reporter\electron_lib.crash_reporter.obj.rsp /c ..\..\atom\common\crash_reporter\crash_reporter.cc /Foobj\atom\common\crash_reporter\electron_lib.crash_reporter.obj /Fdobj\electron_lib.cc.pdb
electron\atom\common\crash_reporter\crash_reporter.cc(49) : error C2440: '&lt;function-style-cast&gt;' : cannot convert from 'const std::string' to 'base::FilePath'
        No constructor could take the source type, or constructor overload resolution was ambiguous
[918/1062] CXX obj\atom\common\electron_lib.platform_util_win.obj
ninja: build stopped: subcommand failed.
</code></pre></div>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">12.x, 13.x, 14.x</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">11.x</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Printing with <code class="notranslate">silent: true</code> should allow us to select a printer though <code class="notranslate">deviceName</code>.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Prints using Windows default printer opposed to the one we assigned it to.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">This is technically a "duplicate" as it has been reported before. But since this now affects every supported version of Electron projects cannot move forward with an upgrade if they depend on this feature. In our case it's point of sale system software and our ability to easily maintain a wide range of receipt printers. We strive to make sure all dependencies are the latest with proper security fixes. This and since new versions of Electron will start to trigger the bot to mark the duplicates as outdated/closed I felt like this merited a new issue. Apologies if not the case.</p>