{"id":3873,"date":"2006-05-22T23:07:00","date_gmt":"2006-05-22T23:07:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2006\/05\/22\/using-tfs-with-web-application-projects\/"},"modified":"2006-05-22T23:07:00","modified_gmt":"2006-05-22T23:07:00","slug":"using-tfs-with-web-application-projects","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/using-tfs-with-web-application-projects\/","title":{"rendered":"Using TFS with Web Application Projects"},"content":{"rendered":"<p>There&#8217;s a helpful <a href=\"PostID=1279716#issue6\">FAQ posted in the ASP.NET forums<\/a> regarding using Team Foundation Server with the newly released <a href=\"http:\/\/msdn.microsoft.com\/vstudio\/default.aspx?pull=\/library\/en-us\/dnvs05\/html\/WAP.asp\">Web Application Projects<\/a> for Visual Studio.<\/p>\n<p><a href=\"http:\/\/forums.asp.net\/ShowThread.aspx?PostID=1279716#issue6\"><font face=\"Verdana\" size=\"2\">Issue 6<\/font><\/a><font face=\"Verdana\" size=\"2\"> &#8211;&nbsp;Using TFS Team Build<\/font><\/p>\n<p><font face=\"Verdana\" size=\"2\"><\/p>\n<blockquote>\n<p id=\"issue6\"><font face=\"Verdana\" size=\"2\"><strong>Issue 6 &#8211;&nbsp;Using TFS Team Build<\/strong><br>The May 2006 release of Web Application Projects supports building with Team Build on a Team Foundation Server (TFS). However, you will need to manually add the &#8220;Microsoft.WebApplication.targets&#8221; file to your Team Foundation Server for it to work.<\/font><\/p>\n<ol>\n<li><font face=\"Verdana\" size=\"2\">On the computer running Team Build, navigate to the &#8220;C:Program FilesMSBuildMicrosoftVisualStudiov8.0&#8221; directory.<\/font> \n<\/li>\n<li><font face=\"Verdana\" size=\"2\">In this directory create a &#8220;WebApplications&#8221; directory.<\/font> \n<\/li>\n<li><font face=\"Verdana\" size=\"2\">Place the &#8220;Microsoft.WebApplication.targets&#8221; file in the &#8220;WebApplications&#8221; directory. <\/font><font face=\"Verdana\" size=\"2\">This file can be found at the same location on your developer system that has been updated with the May 2006 release of Web Application Projects.<\/font><\/li>\n<\/ol>\n<p><font face=\"Verdana\" size=\"2\"><\/p>\n<p>After performing these steps Team Build should be able to successfully build a web-project build with the new Web Application Project type.<\/p>\n<p><\/font><\/p>\n<p><font face=\"Verdana\" size=\"2\">Additionally, if you have an older version of a Web Application Project, you will need to add the WebApplication.targets line (shown in blue and bold) after the normal CSharp.targets or VBasic.targets line in your .csproj or .vbproj file (all new or newly migrated projects will have this line automatically).<\/font><\/p>\n<p><font face=\"Verdana\" size=\"2\">&lt;Import Project=&#8221;$(MSBuildBinPath)Microsoft.CSharp.targets&#8221; \/&gt;<br><font color=\"#0000ff\"><strong>&lt;Import Project=&#8221;$(MSBuildExtensionsPath)MicrosoftVisualStudiov8.0WebApplicationsMicrosoft.WebApplication.targets&#8221; \/&gt;<\/strong><\/font><\/font><\/p>\n<\/blockquote>\n<p><a href=\"http:\/\/forums.asp.net\/ShowThread.aspx?PostID=1279716#issue7\"><font face=\"Verdana\" size=\"2\">Issue 7<\/font><\/a><font face=\"Verdana\" size=\"2\"> &#8211;&nbsp;Using TFS Source Control<\/font><\/p>\n<blockquote>\n<p id=\"issue7\"><font face=\"Verdana\" size=\"2\"><strong>Issue 7 &#8211; Using TFS Source Control<br><\/strong>There is a known issue with the enterprise source control system in the Team Foundation Server (TFS) which incorrectly identifies codebehind classes for .aspx. and .ascx files as folders.<\/font><\/p>\n<p><font face=\"Verdana\" size=\"2\">To workaround, do not use &#8220;File\/Source Control\/Open from Source Control&#8221;. Instead, manually get the solution using Team Explorer and open the solution from local disk.<\/font><\/p>\n<p><font face=\"Verdana\" size=\"2\">This problem will be fixed in a future release of Team Foundation Server.<\/font><\/p>\n<\/blockquote>\n<p><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a helpful FAQ posted in the ASP.NET forums regarding using Team Foundation Server with the newly released Web Application Projects for Visual Studio. Issue 6 &#8211;&nbsp;Using TFS Team Build Issue 6 &#8211;&nbsp;Using TFS Team BuildThe May 2006 release of Web Application Projects supports building with Team Build on a Team Foundation Server (TFS). However, [&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":[6,7,8],"class_list":["post-3873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-source-control","tag-team-build","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>There&#8217;s a helpful FAQ posted in the ASP.NET forums regarding using Team Foundation Server with the newly released Web Application Projects for Visual Studio. Issue 6 &#8211;&nbsp;Using TFS Team Build Issue 6 &#8211;&nbsp;Using TFS Team BuildThe May 2006 release of Web Application Projects supports building with Team Build on a Team Foundation Server (TFS). However, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3873","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=3873"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3873\/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=3873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=3873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=3873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}