<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Web Site projects, TFS and branches can mess up your workspace&#8230;	</title>
	<atom:link href="https://www.BeatificaBytes.be/web-site-projects-tfs-and-branches-can-mess-up-your-workspace/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.BeatificaBytes.be/web-site-projects-tfs-and-branches-can-mess-up-your-workspace/</link>
	<description>The Joys of Computing</description>
	<lastBuildDate>Thu, 08 Nov 2012 13:13:11 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>
		By: vletroye		</title>
		<link>https://www.BeatificaBytes.be/web-site-projects-tfs-and-branches-can-mess-up-your-workspace/#comment-91</link>

		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Thu, 08 Nov 2012 13:13:11 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=638#comment-91</guid>

					<description><![CDATA[It appeared that I could not configure the Web Site Projects to be hosted in the Visual Studio Development Web Server (WebDev) instead of IIS. This option is not available for Web Sites... And Visual Studio uses IIS as default web server as far as this one is available.

An option would be to use WebDev as a &quot;Custom Server&quot; (on another port). 

Unfortunately, the option &quot;Use Custom Server&quot; was disabled in all Web Site Projects&#039; &quot;Property Page&quot;...  This was due to the &quot;web location&quot; of the Web Site Projects: they were all &quot;HTTP&quot; web sites (The &quot;web location&quot; of a Web Site Project can be specified at creation time: File System, HTTP or FTP).

Fortunately, this setting is easy to modify in the Visual Studio Solution File. Here is the difference between a File System Web Site and a Http Web Site:
Project(&quot;{E24C65DC-7377-472B-9ABA-BC803B73C61A}&quot;) = &quot;FSWebSite&quot;, &quot;:FSWebSite&quot;, 
Project(&quot;{E24C65DC-7377-472B-9ABA-BC803B73C61A}&quot;) = &quot;HttpWebSite&quot;, &quot;http://hostname.domain/HttpWebSite&quot;, 

With something like this defined in  the machine&#039;s host file:
127.0.0.1 hostname.domain

Once the Web Site Projects have a  File System &quot;web location&quot;, we can &quot;Use custom Server&quot; via the &quot;Start Options&quot; (Right Click the Web Sites in the Solution opened within Visual Studio and select &quot;Start Options&quot;). My idea was basically to set &quot;http://hostname.domain:8080/FSWebSite&quot; as a Base Url and start WebDev (installed in C:Program FilesCommon FilesMicrosoft SharedDevServer10.0) Like this:

WebDev.WebServer20.exe /port:8080 /path::

Without a Virtual Directory as parameter (/vpath:xxx)... in order to host all the Web Site Projects within the same WebDev, each one in a subfolder; Each Web Site Project is indeed in a subfolder of the Solution. Ex.:
- C:/TFS/TeamProject/Dev/FsWebSite
- C:/TFS/TeamProject/Dev/HttpWebSite
- C:/TFS/TeamProject/Dev/OtherWebSite
The purpose is to support the &quot;site switch&quot; mechanism in place to navigate between the sites. Indeed, this mechanism does not support navigation between site with specific ports :(

But there are too many resulting issues... 
- First, hyperlinks like ~/ does not work anymore as they used to reference the root of the Virtual Directory (I.e.: :) which is now one level above the expected folder (I, :)
- Next, WebDev does not support Forms Authentication which is used by various Web Sites, with custom Role and MemberShips Providers.
- Also, we have to manually run WebDev or add a dummy Library Project with a post Build Event to start it. This Library Project must be moved in first position in the &quot;Build Order&quot; tab of the &quot;Project Dependencies&quot; (Right-Click the Solution in Visual Studio and select the &quot;Project Build Order&quot; menu).

Possibly, we could disable IIS. In such a case, WebDev would become the default server. This would solve the first and last issues mentioned above (&quot;hyperlinks like ~/&quot; and &quot;how to start WebDev&quot;). But we would have one specific and distinct port per Web Site, which is a issue for the framework currently used in those Web Sites.

Conclusion: Workaround not yet found :(]]></description>
			<content:encoded><![CDATA[<p>It appeared that I could not configure the Web Site Projects to be hosted in the Visual Studio Development Web Server (WebDev) instead of IIS. This option is not available for Web Sites&#8230; And Visual Studio uses IIS as default web server as far as this one is available.</p>
<p>An option would be to use WebDev as a &#8220;Custom Server&#8221; (on another port). </p>
<p>Unfortunately, the option &#8220;Use Custom Server&#8221; was disabled in all Web Site Projects&#8217; &#8220;Property Page&#8221;&#8230;  This was due to the &#8220;web location&#8221; of the Web Site Projects: they were all &#8220;HTTP&#8221; web sites (The &#8220;web location&#8221; of a Web Site Project can be specified at creation time: File System, HTTP or FTP).</p>
<p>Fortunately, this setting is easy to modify in the Visual Studio Solution File. Here is the difference between a File System Web Site and a Http Web Site:<br />
Project(&#8220;{E24C65DC-7377-472B-9ABA-BC803B73C61A}&#8221;) = &#8220;FSWebSite&#8221;, &#8220;:FSWebSite&#8221;,<br />
Project(&#8220;{E24C65DC-7377-472B-9ABA-BC803B73C61A}&#8221;) = &#8220;HttpWebSite&#8221;, &#8220;http://hostname.domain/HttpWebSite&#8221;, </p>
<p>With something like this defined in  the machine&#8217;s host file:<br />
127.0.0.1 hostname.domain</p>
<p>Once the Web Site Projects have a  File System &#8220;web location&#8221;, we can &#8220;Use custom Server&#8221; via the &#8220;Start Options&#8221; (Right Click the Web Sites in the Solution opened within Visual Studio and select &#8220;Start Options&#8221;). My idea was basically to set &#8220;http://hostname.domain:8080/FSWebSite&#8221; as a Base Url and start WebDev (installed in C:Program FilesCommon FilesMicrosoft SharedDevServer10.0) Like this:</p>
<p>WebDev.WebServer20.exe /port:8080 /path::</p>
<p>Without a Virtual Directory as parameter (/vpath:xxx)&#8230; in order to host all the Web Site Projects within the same WebDev, each one in a subfolder; Each Web Site Project is indeed in a subfolder of the Solution. Ex.:<br />
&#8211; C:/TFS/TeamProject/Dev/FsWebSite<br />
&#8211; C:/TFS/TeamProject/Dev/HttpWebSite<br />
&#8211; C:/TFS/TeamProject/Dev/OtherWebSite<br />
The purpose is to support the &#8220;site switch&#8221; mechanism in place to navigate between the sites. Indeed, this mechanism does not support navigation between site with specific ports 🙁</p>
<p>But there are too many resulting issues&#8230;<br />
&#8211; First, hyperlinks like ~/ does not work anymore as they used to reference the root of the Virtual Directory (I.e.: 🙂 which is now one level above the expected folder (I, 🙂<br />
&#8211; Next, WebDev does not support Forms Authentication which is used by various Web Sites, with custom Role and MemberShips Providers.<br />
&#8211; Also, we have to manually run WebDev or add a dummy Library Project with a post Build Event to start it. This Library Project must be moved in first position in the &#8220;Build Order&#8221; tab of the &#8220;Project Dependencies&#8221; (Right-Click the Solution in Visual Studio and select the &#8220;Project Build Order&#8221; menu).</p>
<p>Possibly, we could disable IIS. In such a case, WebDev would become the default server. This would solve the first and last issues mentioned above (&#8220;hyperlinks like ~/&#8221; and &#8220;how to start WebDev&#8221;). But we would have one specific and distinct port per Web Site, which is a issue for the framework currently used in those Web Sites.</p>
<p>Conclusion: Workaround not yet found 🙁</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
