{"id":191,"date":"2010-03-09T13:37:44","date_gmt":"2010-03-09T13:37:44","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2010\/03\/09\/running-msbuild-40-and-msbuild-35-on-continuous-integration\/"},"modified":"2017-12-26T21:59:39","modified_gmt":"2017-12-26T21:59:39","slug":"running-msbuild-40-and-msbuild-35-on-continuous-integration","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/running-msbuild-40-and-msbuild-35-on-continuous-integration\/","title":{"rendered":"Running MSBuild 4.0 and MSBuild 3.5 on Continuous Integration"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4127 aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/03\/msbuild-40-and-msbuild-35-o.png\" alt=\"msbuild-40-and-msbuild-35\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2010\/03\/msbuild-40-and-msbuild-35-o.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2010\/03\/msbuild-40-and-msbuild-35-o-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>With Visual Studio 2010 RC released recently, we jumped on the release and began to code with VS2010.\u00a0 One issue that popped up was that now all builds were targeting MSBuild 4.0.<\/p>\n<p>That doesn\u2019t seem to be a big problem until our CruiseControl CI server kicked in, downloaded our updated code and failed building the upgraded projects.<\/p>\n<p>Fortunately there is a very quick solution to this little problem.\u00a0 There are a couple of requirements.<\/p>\n<p>1. You need to have VS2010 RC installed somewhere<br \/>\n2. You need to download the .Net Framework 4.0 (I recommend the full version and not just the Client Profile, it ensures you don\u2019t miss anything)<\/p>\n<p><b>To fix, do the following:<\/b><\/p>\n<p>1. download and install the .Net Framework 4.0 on the CI server (then restart the server)<br \/>\n2. on the computer where VS2010 RC is installed go to the following path:<br \/>\n%programfiles%\\MSBuild\\Microsoft\\VisualStudio<br \/>\n3. copy the v10.0 folder located in that directory into the CI server at the same path (or wherever our MSbuild path is on the CI server)<br \/>\n4. Once that is done, edit the ccnet.config file at the tag and change it to the new .Net 4.0 Framework installed (you should only need to change the section \u201c\\v3.5\\\u201d to \u201c\\v4.0.xxxxx\\\u201d<\/p>\n<p>Hope this helps<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Visual Studio 2010 RC released recently, we jumped on the release and began to code with VS2010.\u00a0 One issue that popped up was that now all builds were targeting MSBuild 4.0. That doesn\u2019t seem to be a big problem until our CruiseControl CI server kicked in, downloaded our updated code and failed building the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[77,51],"tags":[3416,995,101,3417,3418,3419,1122,2974,3113,588,366,3414,3413,1668,213,3415],"class_list":["post-191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-continuous-integration","category-msbuild","tag-ci-server","tag-continuous","tag-continuous-integration","tag-continuous-integration-server","tag-continuous-integration-using-msbuild","tag-continuous-integration-with-msbuild","tag-guide","tag-help","tag-how-to","tag-integration","tag-msbuild","tag-msbuild-3-5","tag-msbuild-4-0","tag-run","tag-tutorial","tag-visual-studio-2010"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":4129,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/191\/revisions\/4129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/4127"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}