{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/1040","labels_url":"https://api.github.com/repos/dotnet/cli/issues/1040/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/1040/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/1040/events","html_url":"https://github.com/dotnet/cli/issues/1040","id":128865515,"number":1040,"title":"`dotnet build -n` fails with LNK1112 on x64 machine","user":{"login":"AArnott","id":3548,"avatar_url":"https://avatars.githubusercontent.com/u/3548?v=3","gravatar_id":"","url":"https://api.github.com/users/AArnott","html_url":"https://github.com/AArnott","followers_url":"https://api.github.com/users/AArnott/followers","following_url":"https://api.github.com/users/AArnott/following{/other_user}","gists_url":"https://api.github.com/users/AArnott/gists{/gist_id}","starred_url":"https://api.github.com/users/AArnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AArnott/subscriptions","organizations_url":"https://api.github.com/users/AArnott/orgs","repos_url":"https://api.github.com/users/AArnott/repos","events_url":"https://api.github.com/users/AArnott/events{/privacy}","received_events_url":"https://api.github.com/users/AArnott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-26T16:08:04Z","updated_at":"2016-01-26T22:40:37Z","closed_at":null,"body":"On 64-bit Windows 10, with VS 2015 U1 installed and \".NET Command Line Tools (1.0.0)\":\r\n\r\n```\r\ndotnet new\r\ndotnet restore\r\ndotnet build -n\r\n```\r\n\r\nThe last command fails with this output:\r\n\r\n```\r\nProject test2 will be compiled because expected outputs are missing.\r\n\r\nCompiling test2 for DNXCore,Version=v5.0\r\n\r\nCompilation succeeded.\r\n    0 Warning(s)\r\n    0 Error(s)\r\n\r\nTime elapsed 00:00:02.4449956\r\nInput Assembly: C:\\temp\\test2\\bin\\Debug\\dnxcore50\\test2.dll\r\nMicrosoft (R) Incremental Linker Version 14.00.23506.0\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\nLINK : warning LNK4044: unrecognized option '/NOLOGO /ERRORREPORT:PROMPT /MANIFEST /MANIFESTUAC:\"level='asInvoker' uiAccess='false'\" /manifest:embed /Debug /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT'; ignored\r\nLinking of intermediate files failed.\r\nmsvcrt.lib(std_nothrow.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/175273790","html_url":"https://github.com/dotnet/cli/issues/1040#issuecomment-175273790","issue_url":"https://api.github.com/repos/dotnet/cli/issues/1040","id":175273790,"user":{"login":"AArnott","id":3548,"avatar_url":"https://avatars.githubusercontent.com/u/3548?v=3","gravatar_id":"","url":"https://api.github.com/users/AArnott","html_url":"https://github.com/AArnott","followers_url":"https://api.github.com/users/AArnott/followers","following_url":"https://api.github.com/users/AArnott/following{/other_user}","gists_url":"https://api.github.com/users/AArnott/gists{/gist_id}","starred_url":"https://api.github.com/users/AArnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AArnott/subscriptions","organizations_url":"https://api.github.com/users/AArnott/orgs","repos_url":"https://api.github.com/users/AArnott/repos","events_url":"https://api.github.com/users/AArnott/events{/privacy}","received_events_url":"https://api.github.com/users/AArnott/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T22:40:37Z","updated_at":"2016-01-26T22:40:37Z","body":"I was not using that window. After 3 attempts at picking the right window (I first found VS2012 x64 Cross Tools command Prompt, then found VS2015 x64 x86 Cross Tools Command Prompt), I finally got a successful run. Note that it still produces a build warning, as shown below.\r\n\r\nI had no interest in compiling 32-bit or 64-bit in particular. I just wanted to create a native binary. The fact that I'm on a 64-bit OS making it fail with the VS command prompt that I normally use seems unfortunate. An error that helps me understand what I need to do to solve the problem would be far preferable.\r\n\r\n```\r\nMicrosoft (R) Incremental Linker Version 14.00.23506.0\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\nLINK : warning LNK4044: unrecognized option '/NOLOGO /ERRORREPORT:PROMPT /MANIFEST /MANIFESTUAC:\"level='asInvoker' uiAccess='false'\" /manifest:embed /Debug /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT'; ignored\r\n```\r\n"}}