{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/633","labels_url":"https://api.github.com/repos/dotnet/cli/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/633/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/633/events","html_url":"https://github.com/dotnet/cli/issues/633","id":123242926,"number":633,"title":"Native compilation failed","user":{"login":"SirusDoma","id":9136829,"avatar_url":"https://avatars.githubusercontent.com/u/9136829?v=3","gravatar_id":"","url":"https://api.github.com/users/SirusDoma","html_url":"https://github.com/SirusDoma","followers_url":"https://api.github.com/users/SirusDoma/followers","following_url":"https://api.github.com/users/SirusDoma/following{/other_user}","gists_url":"https://api.github.com/users/SirusDoma/gists{/gist_id}","starred_url":"https://api.github.com/users/SirusDoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirusDoma/subscriptions","organizations_url":"https://api.github.com/users/SirusDoma/orgs","repos_url":"https://api.github.com/users/SirusDoma/repos","events_url":"https://api.github.com/users/SirusDoma/events{/privacy}","received_events_url":"https://api.github.com/users/SirusDoma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-21T09:44:48Z","updated_at":"2015-12-22T19:26:09Z","closed_at":null,"body":"I'm trying to compile the project with native compilation\r\nHowever I got an error, here the console messages:\r\n\r\n```\r\ndotnet compile --native --cpp\r\nCompiling ConsoleApp1 for DNX,Version=v4.5.1\r\n\r\nCompilation succeeded.\r\n    0 Warning(s)\r\n    0 Error(s)\r\n\r\nTime elapsed 00:00:02.3418293\r\n\r\nInput Assembly: D:\\Projects\\ConsoleApp1\\src\\ConsoleApp1\\bin\\Debug\\dnxcore50\\ConsoleApp1.dll\r\nConsoleApp1.cpp\r\nc:\\program files\\dotnet\\bin\\appdepsdk\\cppsdk\\win7\\common.h(14): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory\r\nCompilation of intermediate files failed.\r\nCompiling ConsoleApp1 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:01.9426304\r\n```\r\n\r\nIt's seems the compiler cannot find the header file (`stdint.h`) that included under the cppsdk...\r\nWhile the application code itself is only a simple hello world:\r\n\r\n```\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\n\r\nnamespace ConsoleApp1\r\n{\r\n    public class Program\r\n    {\r\n        public static void Main(string[] args)\r\n        {\r\n            Console.WriteLine(\"Hello World\");\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nany ideas?"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/166708949","html_url":"https://github.com/dotnet/cli/issues/633#issuecomment-166708949","issue_url":"https://api.github.com/repos/dotnet/cli/issues/633","id":166708949,"user":{"login":"gkhanna79","id":9451457,"avatar_url":"https://avatars.githubusercontent.com/u/9451457?v=3","gravatar_id":"","url":"https://api.github.com/users/gkhanna79","html_url":"https://github.com/gkhanna79","followers_url":"https://api.github.com/users/gkhanna79/followers","following_url":"https://api.github.com/users/gkhanna79/following{/other_user}","gists_url":"https://api.github.com/users/gkhanna79/gists{/gist_id}","starred_url":"https://api.github.com/users/gkhanna79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkhanna79/subscriptions","organizations_url":"https://api.github.com/users/gkhanna79/orgs","repos_url":"https://api.github.com/users/gkhanna79/repos","events_url":"https://api.github.com/users/gkhanna79/events{/privacy}","received_events_url":"https://api.github.com/users/gkhanna79/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T19:26:09Z","updated_at":"2015-12-22T19:26:09Z","body":"> But only works with VS 2015 X64 Native Tools command prompt\r\n\r\nThis is by design since that gets us access to the native compilation tools (cl and link).\r\n\r\n>  I use Visual Studio project template to create that project using Console Application (Package), it says it able to target .NET Framework or .NET Core\r\n\r\nCLI based projects start with \"dotnet new\". @richlander Are you aware of VS project system implying compatibility with .NET Core/CLI?\r\n\r\nThe native binary will live under HW1\\bin\\Debug\\dnxcore50\\native. I think you are looking at contents of HW1\\bin\\Debug\\dnxcore50\\."}}