{"id":3723,"date":"2006-08-10T21:50:00","date_gmt":"2006-08-10T21:50:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2006\/08\/10\/dont-override-corecompile\/"},"modified":"2006-08-10T21:50:00","modified_gmt":"2006-08-10T21:50:00","slug":"dont-override-corecompile","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/dont-override-corecompile\/","title":{"rendered":"Don&#8217;t override CoreCompile"},"content":{"rendered":"<p>There have been several times when folks have needed to run a custom target prior to building each solution (or project) in Team Build.&nbsp; Unfortunately, there&#8217;s no good way to do this.&nbsp; Manish Agarwal describes (mostly) how to do it in his post, <a href=\"http:\/\/blogs.msdn.com\/manishagarwal\/archive\/2006\/05\/09\/593510.aspx\">How to call a custom target after building each individual solution (sln) in Team Build?<\/a>&nbsp; The solution he gives involves overriding the CoreCompile target.<\/p>\n<p>The CoreCompile target, along with many other Core* targets, is changing for the next release of Team Foundation Server.&nbsp; The changes are due to&nbsp;the need to support new features in the product, along with greater flexibility.&nbsp; So, if you go that route, you will need to adjust your build files down the road when you upgrade to the next release.&nbsp; For a list of targets that you can safely override, see <a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/08\/09\/team_build_extensibility.aspx\">Team Build Extensibility<\/a>.<\/p>\n<p>One bit of good news is that we are working to address this in a future release and make it possible to cleanly inject your targets before or after (or both!) each solution is&nbsp;built.<\/p>\n<p>One user, <a href=\"http:\/\/sstjean.blogspot.com\/\">Steve St. Jean<\/a>, describes his experience with this trying to do this.&nbsp; He ultimately was able to take a different approach to solve his problem.<\/p>\n<ul>\n<li><a href=\"http:\/\/sstjean.blogspot.com\/2006\/06\/tfs-team-build-problems-with-calling.html\">TFS Team Build: Problems with calling a custom target before building each individual solution &#8211; Part I<\/a><\/li>\n<li><a href=\"http:\/\/sstjean.blogspot.com\/2006\/07\/tfs-team-build-problems-with-calling_05.html\">TFS Team Build: Problems with calling a custom target before building each individual solution &#8211; Part II<\/a> <\/li>\n<\/ul>\n<p>Here are a few more useful tips from Steve&#8217;s blog.<\/p>\n<ul>\n<li><a href=\"http:\/\/sstjean.blogspot.com\/2006\/05\/vsts-team-builds-getting-diagnostic.html\">VSTS Team Builds: Getting diagnostic information into the log<\/a><\/li>\n<li><a href=\"http:\/\/sstjean.blogspot.com\/2006\/05\/tfs-team-build-solutionroot-property.html\">TFS Team Build SolutionRoot property<\/a><\/li>\n<li><a href=\"http:\/\/sstjean.blogspot.com\/2006\/05\/how-to-install-tfs-build-server-on.html\">How to install TFS Build Server on build machine so it uses a Service Account<\/a><\/li>\n<\/ul>\n<p>Hopefully, he won&#8217;t have to add &#8220;by Team Build&#8221; to his blog&#8217;s title, &#8220;How Steve Got Burned Today.&#8221;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There have been several times when folks have needed to run a custom target prior to building each solution (or project) in Team Build.&nbsp; Unfortunately, there&#8217;s no good way to do this.&nbsp; Manish Agarwal describes (mostly) how to do it in his post, How to call a custom target after building each individual solution (sln) [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[7,8],"class_list":["post-3723","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-build","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>There have been several times when folks have needed to run a custom target prior to building each solution (or project) in Team Build.&nbsp; Unfortunately, there&#8217;s no good way to do this.&nbsp; Manish Agarwal describes (mostly) how to do it in his post, How to call a custom target after building each individual solution (sln) [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=3723"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3723\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=3723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=3723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=3723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}