{"id":297589,"date":"2020-01-23T21:00:11","date_gmt":"2020-01-23T21:00:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=297589"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=297589","title":{"rendered":"\u0415\u0441\u043b\u0438 .NET \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0435\u0437\u0434\u0435, \u0442\u043e \u043d\u0430 Windows 3.11 \u0438 DOS \u0442\u043e\u0436\u0435"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/485268\/\">\u042f \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e, \u0447\u0442\u043e .NET Core \u2014 \u044d\u0442\u043e \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441 \u0438 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00ab\u0432\u0435\u0437\u0434\u0435\u00bb. MonoGame, Unity, Apple Watch, Raspberry Pi \u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b, \u0434\u044e\u0436\u0438\u043d\u0430 \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0432, Windows \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u0423\u0436\u0435 \u043d\u0435\u043c\u0430\u043b\u043e.<\/p>\n<p>  \u041d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043c\u0430\u043b\u043e. <a href=\"https:\/\/medium.com\/@MStrehovsky?source=post_page-----74c3cf60ea04----------------------\" rel=\"nofollow\">\u041c\u0438\u0445\u0430\u043b \u0421\u0442\u0440\u0435\u0445\u043e\u0432\u0441\u043a\u0438<\/a> \u0445\u043e\u0447\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c C# \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e <i>\u0432\u0435\u0437\u0434\u0435<\/i>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a16\/bfc\/532\/a16bfc53266ec828bd93f6d8ec96ef3f.png\"><br \/>  <i><font color=\"gray\">C# \u0432 Windows 3.11<\/font><\/i><\/p>\n<p>  \u041e\u043d \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043a\u043e\u0434 C# \u0432 \u0434\u0432\u0443\u0445 \u00ab\u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445\u00bb \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u043d\u0430\u0448\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u00ab\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0435\u0437\u0434\u0435\u00bb. \u0425\u043e\u0442\u044f \u044d\u0442\u043e \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b (\u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435 \u0438\u0445 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0435), \u043e\u043d\u0438 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u044e\u0442 \u043a\u0430\u043a \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u041c\u0438\u0445\u0430\u043b\u0430, \u0442\u0430\u043a \u0438 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>\u0417\u0430\u043f\u0443\u0441\u043a C# \u043f\u043e\u0434 Windows 3.11<\/h1>\n<p>  \u0412 <a href=\"https:\/\/twitter.com\/MStrehovsky\/status\/1215331352352034818\" rel=\"nofollow\">\u0441\u0435\u043c\u0438 \u0442\u0432\u0438\u0442\u0430\u0445<\/a> \u041c\u0438\u0445\u0430\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u0435\u043c\u0443 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0434 C# \u043f\u043e\u0434 Windows 3.11. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u0437\u0434\u0435\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/api\/winuser\/nf-winuser-messageboxa?WT.mc_id=-blog-scottha\" rel=\"nofollow\">MessageBoxA<\/a> \u0441 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043e\u043a\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 Windows \u0441 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u043d\u0435\u0439. \u0414\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/api\/system.windows.messageboxresult?view=netframework-4.8&amp;WT.mc_id=-blog-scottha\" rel=\"nofollow\">\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430<\/a> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f DllImport\/PInvoke.<\/p>\n<p>  \u042f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u044d\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Windows 3.11, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u043e \u043a\u043b\u0430\u0441\u0441\u043d\u043e\u0435. \u041d\u043e \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0430\u0432\u0442\u043e\u0440 \u043d\u0430\u0447\u0430\u043b \u0441 \u0442\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f \u0435\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442 \u0441 DOS. \u041e\u043d \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434 C#, \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 Win16, \u0430 \u043d\u0435 Win32. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 1992 \u0433\u043e\u0434\u0443 (\u0434\u0430, \u044f \u0442\u043e\u0433\u0434\u0430 \u0436\u0438\u043b \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b, \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u044d\u0442\u043e \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445!) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u043e\u0441\u0442 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/en.wikipedia.org\/wiki\/Win32s\" rel=\"nofollow\">Win32s<\/a>: \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e API \u0438\u0437 Windows NT, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 Windows 3.11. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c 32-\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0438\u0437 Win16 \u043a Win32.<\/p>\n<p>  \u041c\u0438\u0445\u0430\u043b \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 AOT-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c CoreRT \u0432 2020 \u0433\u043e\u0434\u0443, \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u043e\u043c \u0438\u0437 Visual C++ 2.0 \u043e\u0431\u0440\u0430\u0437\u0446\u0430 1994 \u0433\u043e\u0434\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u0441\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c\u0438 Win32s, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c\u0438 \u0432 16-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0439 Windows 3.11. \u041c\u0430\u0433\u0438\u044f. \u0420\u0435\u0441\u043f\u0435\u043a\u0442 \u041c\u0438\u0445\u0430\u043b\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/342\/543\/565\/3425435658b7a8ff087b7de75760560d.png\"><br \/>  <i><font color=\"gray\">\u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Hello World C#<\/font><\/i><\/p>\n<h1>\u0417\u0430\u043f\u0443\u0441\u043a C# \u0432 8 \u041a\u0411 \u043f\u043e\u0434 DOS<\/h1>\n<p>  \u042f \u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u043b \u043e\u0431 <a href=\"https:\/\/www.hanselman.com\/blog\/MakingATinyNETCore30EntirelySelfcontainedSingleExecutable.aspx\" rel=\"nofollow\">\u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 .NET Core 3.x<\/a>, \u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0444\u0430\u043d\u0430\u0442 \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430. \u041c\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0443\u0436\u0430\u043b\u043e\u0441\u044c \u0434\u043e 28 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u042d\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u043e\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0441\u0440\u0435\u0434\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f .NET \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0443\u0434\u0438\u0442\u044c \u043e VM\/\u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043d\u043e \u041c\u0438\u0445\u0430\u043b <a href=\"https:\/\/medium.com\/@MStrehovsky\/building-a-self-contained-game-in-c-under-8-kilobytes-74c3cf60ea04\" rel=\"nofollow\">\u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/a>, \u0434\u043e \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0439\u0442\u0438\u00a0\u2014 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0446\u0435\u043b\u044c 8000 \u0431\u0430\u0439\u0442!<\/p>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 <a href=\"https:\/\/www.hanselman.com\/blog\/OpportunityWindowsIsCompletelyMissingTheTextModeBoat.aspx\" rel=\"nofollow\">\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u0447\u0442\u043e, \u043f\u043e-\u043c\u043e\u0435\u043c\u0443, \u0437\u0434\u043e\u0440\u043e\u0432\u043e<\/a>. \u041e\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432 \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0435 \u043c\u0443\u0441\u043e\u0440\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0437\u0434\u0435\u0441\u044c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0438\u0433\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <i>new<\/i>. \u041d\u0435\u0442 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.<\/p>\n<p>  \u0414\u043b\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u043e\u043b\u044f <code>fixed char []<\/code>: \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0436\u0438\u0442\u044c \u0432 \u0441\u0442\u0435\u043a\u0435, \u0430 \u0441\u0442\u0435\u043a \u0443 \u043d\u0430\u0441 <i>\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439<\/i>.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u0448\u043d\u0438\u043a .NET, \u0442\u043e \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0444\u0430\u0439\u043b 65 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0441\u0440\u0435\u0434\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<p>  <code>dotnet publish -r win-x64 -c Release<\/code> <\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c <a href=\"https:\/\/www.hanselman.com\/blog\/BrainstormingCreatingASmallSingleSelfcontainedExecutableOutOfANETCoreApplication.aspx\" rel=\"nofollow\">ILLinker<\/a> \u0438 PublishedTrimmed \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 Tree Trimming \u0438\u0437 .NET Core 3.\u0445, \u043d\u043e \u0442\u0430\u043a \u0432\u044b \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u043b\u0438\u0448\u044c \u0434\u043e 25 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442.<\/p>\n<p>  \u041e\u043d \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Mono \u0438 mkbundle, \u0434\u043e\u0432\u0435\u0434\u044f \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u043e 18,2 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442, \u043d\u043e \u0437\u0430\u0442\u0435\u043c \u0441\u043b\u043e\u0432\u0438\u043b \u043e\u0448\u0438\u0431\u043a\u0443. \u0418 \u0441\u0440\u0435\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0434\u0435\u043b\u0430\u0441\u044c.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u043e\u043c \u043e\u0441\u0442\u0430\u043b\u0441\u044f CoreRT, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>  <code>dotnet publish -r win-x64 -c Release \/p:Mode=CoreRT<\/code> <\/p>\n<p>  \u0422\u0430\u043a \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u043b 4,7 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430, \u043d\u043e \u044d\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e. \u0421 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0439\u0442\u0438 \u0434\u043e 3 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0442\u044f\u043d\u0443\u0442\u044c \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e \u0438 \u0434\u043e\u0439\u0442\u0438 \u0434\u043e 1,2 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0430 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a\u0435\u0442\u0435!<\/p>\n<p>  <code>dotnet publish -r win-x64 -c Release \/p:Mode=CoreRT-ReflectionFree<\/code> <\/p>\n<p>  \u042d\u0442\u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432 \u043e\u0434\u0438\u043d \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f .NET SDK.<\/p>\n<p>  \u0412\u043e\u0442 \u0433\u0434\u0435 \u041c\u0438\u0445\u0430\u043b <a href=\"https:\/\/medium.com\/@MStrehovsky\/building-a-self-contained-game-in-c-under-8-kilobytes-74c3cf60ea04\" rel=\"nofollow\">\u0443\u0445\u043e\u0434\u0438\u0442 \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/a>. \u041e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 <a href=\"https:\/\/gist.github.com\/MichalStrehovsky\/e7d25ea70f9152a819b636f1472dcf67\/raw\/9d7e5e7afa103814746592225a2230f30faca790\/MiniBCL.cs?WT.mc_id=-blog-scottha\" rel=\"nofollow\">\u0440\u0435\u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e-\u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443 \u0434\u043b\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 System<\/a>! \u0417\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044f\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0448\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e IL-\u0432\u0435\u0440\u0441\u0438\u044f \u044d\u043a\u0437\u0435\u0448\u043d\u0438\u043a\u0430.<\/p>\n<p>  <code>csc.exe \/debug \/O \/noconfig \/nostdlib \/runtimemetadataversion:v4.0.30319 MiniBCL.cs Game\\FrameBuffer.cs Game\\Random.cs Game\\Game.cs Game\\Snake.cs Pal\\Thread.Windows.cs Pal\\Environment.Windows.cs Pal\\Console.Windows.cs \/out:zerosnake.ilexe \/langversion:latest \/unsafe<\/code> <\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u044d\u0442\u043e \u0432 CoreRT, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<p>  <code>ilc.exe zerosnake.ilexe -o zerosnake.obj --systemmodule zerosnake --Os -g<\/code><\/p>\n<p>  \u0418 \u0432\u043e\u0442 \u043c\u044b \u0437\u0434\u0435\u0441\u044c.<\/p>\n<blockquote><p>\u00ab\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 zerosnake.obj\u00a0\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438, \u0442\u0430\u043a\u0438\u043c\u0438 \u043a\u0430\u043a C \u0438\u043b\u0438 C++. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433\u00a0\u2014 \u0441\u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e\u00bb.<\/p><\/blockquote>\n<p>  \u0415\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439 \u2014 \u0438 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 27\u00a0\u041a\u0411! \u0417\u0430\u0442\u0435\u043c \u043e\u043d \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u0449\u0438\u043a\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0435 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435, \u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f 8176 \u0431\u0430\u0439\u0442. \u042d\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0440\u0438\u043b\u043b\u0435\u0440.<\/p>\n<p>  <code>link.exe \/debug:full \/subsystem:console zerosnake.obj \/entry:__managed__Main kernel32.lib ucrt.lib \/merge:.modules=.rdata \/merge:.pdata=.rdata \/incremental:no \/DYNAMICBASE:NO \/filealign:16 \/align:16<\/code><\/p>\n<p>  \u041f\u043e\u0434\u043f\u0438\u0448\u0438\u0442\u0435\u0441\u044c \u043d\u0430 <a href=\"https:\/\/twitter.com\/MStrehovsky\" rel=\"nofollow\">\u0442\u0432\u0438\u0442\u0442\u0435\u0440 \u041c\u0438\u0445\u0430\u043b\u0430<\/a> \u0438 \u043f\u043e\u0430\u043f\u043b\u043e\u0434\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u043c\u0443.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/485268\/\"> https:\/\/habr.com\/ru\/post\/485268\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/485268\/\">\u042f \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e, \u0447\u0442\u043e .NET Core \u2014 \u044d\u0442\u043e \u043e\u043f\u0435\u043d\u0441\u043e\u0440\u0441 \u0438 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00ab\u0432\u0435\u0437\u0434\u0435\u00bb. MonoGame, Unity, Apple Watch, Raspberry Pi \u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b, \u0434\u044e\u0436\u0438\u043d\u0430 \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0432, Windows \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u0423\u0436\u0435 \u043d\u0435\u043c\u0430\u043b\u043e.<\/p>\n<p>  \u041d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043c\u0430\u043b\u043e. <a href=\"https:\/\/medium.com\/@MStrehovsky?source=post_page-----74c3cf60ea04----------------------\" rel=\"nofollow\">\u041c\u0438\u0445\u0430\u043b \u0421\u0442\u0440\u0435\u0445\u043e\u0432\u0441\u043a\u0438<\/a> \u0445\u043e\u0447\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c C# \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e <i>\u0432\u0435\u0437\u0434\u0435<\/i>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a16\/bfc\/532\/a16bfc53266ec828bd93f6d8ec96ef3f.png\"><br \/>  <i><font color=\"gray\">C# \u0432 Windows 3.11<\/font><\/i><\/p>\n<p>  \u041e\u043d \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043a\u043e\u0434 C# \u0432 \u0434\u0432\u0443\u0445 \u00ab\u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445\u00bb \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043b\u0438 \u043d\u0430\u0448\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u00ab\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0435\u0437\u0434\u0435\u00bb. \u0425\u043e\u0442\u044f \u044d\u0442\u043e \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b (\u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435 \u0438\u0445 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d\u0435), \u043e\u043d\u0438 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u044e\u0442 \u043a\u0430\u043a \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u041c\u0438\u0445\u0430\u043b\u0430, \u0442\u0430\u043a \u0438 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-297589","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297589"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297589\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}