{"id":5849,"date":"2018-04-18T17:34:12","date_gmt":"2018-04-19T00:34:12","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/heaths\/?p=3905"},"modified":"2019-02-17T15:29:13","modified_gmt":"2019-02-17T22:29:13","slug":"updated-documentation-for-visual-studio-build-tools-container","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/setup\/updated-documentation-for-visual-studio-build-tools-container\/","title":{"rendered":"Updated documentation for Visual Studio Build Tools container"},"content":{"rendered":"<p>I&#8217;ve updated the <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/install\/build-tools-container\">documentation<\/a> for building a Docker container image for Visual Studio Build tools based on recent feedback that managed code may fail to run. In the case of MSBuild, you might see an error like,<\/p>\n<blockquote><p>C:\\BuildTools\\MSBuild\\15.0\\bin\\Roslyn\\Microsoft.CSharp.Core.targets(84,5): error MSB6003: The specified task executable &#8220;csc.exe&#8221; could not be run. Could not load file or assembly &#8216;System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&#8217; or one of its dependencies. The system cannot find the file specified.<\/p><\/blockquote>\n<p>To resolve this, base your image on <a href=\"https:\/\/hub.docker.com\/r\/microsoft\/dotnet-framework\">microsoft\/dotnet-framework:4.7.1<\/a> so that it does not need to be installed. The image documentation has more details about how its various tags related to <a href=\"https:\/\/hub.docker.com\/r\/microsoft\/windowsservercore\">microsoft\/windowsservercore<\/a> if you intend to target a specific version of Windows Server Core.<\/p>\n<p>The examples have also been updated to better collect and copy setup logs from a container should an error occur using a separate script file to handle install failures.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The .NET Framework may not be correctly installed into a Windows Server Core container, and managed code &#8211; like the compilers &#8211; may fail. The documentation was updated with how to work around this.<\/p>\n","protected":false},"author":389,"featured_media":15107,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[8,9,16,20,45,57],"class_list":["post-5849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-containerization","tag-containers","tag-docker","tag-installation","tag-visual-studio","tag-vs2017"],"acf":[],"blog_post_summary":"<p>The .NET Framework may not be correctly installed into a Windows Server Core container, and managed code &#8211; like the compilers &#8211; may fail. The documentation was updated with how to work around this.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/5849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/comments?post=5849"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/5849\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media\/15107"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media?parent=5849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/categories?post=5849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/tags?post=5849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}