<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual Studio &#8211; BeatificaBytes</title>
	<atom:link href="https://www.BeatificaBytes.be/tag/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.BeatificaBytes.be</link>
	<description>The Joys of Computing</description>
	<lastBuildDate>Mon, 27 Oct 2014 18:27:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>TFS TeamBuild doesn&#8217;t copy references (Assemblies)</title>
		<link>https://www.BeatificaBytes.be/tfs-teambuild-doesnt-copy-references-assemblies/</link>
					<comments>https://www.BeatificaBytes.be/tfs-teambuild-doesnt-copy-references-assemblies/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Mon, 27 Oct 2014 18:27:29 +0000</pubDate>
				<category><![CDATA[TFS]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Team Build]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">/wordpress/?p=1935</guid>

					<description><![CDATA[As a TFS administrator, I often have to solve the same issue again and again: new developers complain that referenced assemblies are not dropped by [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>As a TFS administrator, I often have to solve the same issue again and again: new developers complain that referenced assemblies are not dropped by TeamBuild although locally, Visual Studio copies those references into the bin folder&#8230; The trick is to set the property &#8220;Copy Local&#8221; = &#8220;False&#8221; on the references to be copied, Save the project, reset the property &#8220;Copy Local&#8221; = &#8220;True&#8221; and Save again the project.</p>
<p style="text-align: justify"><span class="collapseomatic " id="id69b276f850c3d"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b276f850c3d'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b276f850c3d" class="collapseomatic_content ">
<p style="color: #555555;">We have experienced this issue at least with VS 2010 &#8211; TFS 2010 and VS 2013 &#8211; TFS 2013. I have to say I don&#8217;t remember about VS 2008 &#8211; TFS 2008  and VS 2005 &#8211; TFS 2005.</p>
<p style="color: #555555;">Project&#8217;s &#8220;Copy Local&#8221; property is the one that indicates if a file reference must be copied or not in the output folder. The value of that property is stored in a tag <span style="color: #444444;">&lt;Private&gt; in the project file (.csproj, .vbproj, &#8230;). Ex.: &lt;Private&gt;true&lt;/Private&gt;</span></p>
<p style="color: #555555;">The problem is that VS does not add this tag for references whose &#8216;Copy Local&#8217; property is &#8216;true&#8217;, &#8216;true&#8217; being the default value for file references added on assemblies not in the GAC. It only adds this tag if one changes the property value to &#8216;false&#8217;. Later, if one sets the value back to &#8216;true&#8217;, the tag is kept but its value is changed.</p>
<p style="color: #555555;">This is a problem because MSBuild, run by TeamBuild to compile the projects, assume that the value of a &#8220;Copy Local&#8221; property is &#8216;False&#8217; if the tag &lt;Private&gt; is not found in the project file.</p>
<p style="color: #555555;">So, the trick is to force VS to add the tag for all references added with &#8216;Copy Local&#8217;=&#8217;true&#8217;. This can be done as explained above: <span style="color: #333333;"> set &#8220;Copy Local&#8221; = &#8220;False&#8221; on the required references, Save the project, reset &#8220;Copy Local&#8221; = &#8220;True&#8221; and Save again the project.</span></p>
<p style="color: #555555;"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_1935" class="pvc_stats total_only  " data-element-id="1935" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/tfs-teambuild-doesnt-copy-references-assemblies/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Visual Studio: Compare and Merge sources with Beyond Compare</title>
		<link>https://www.BeatificaBytes.be/visual-studio-compare-and-merge-sources-with-beyond-compare/</link>
					<comments>https://www.BeatificaBytes.be/visual-studio-compare-and-merge-sources-with-beyond-compare/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Mon, 19 May 2014 09:07:21 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">/wordpress/?p=1705</guid>

					<description><![CDATA[As a memo (but this info can be found on Beyond Compare website), here are my settings to compare and merge sources from Visual Studio, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify">As a memo (but this info can be found on Beyond Compare website), here are my settings to compare and merge sources from Visual Studio, with Beyond Compare.</p>
<p style="text-align: justify"><span class="collapseomatic " id="id69b276f85231f"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b276f85231f'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b276f85231f" class="collapseomatic_content ">
<ul style="text-align: justify">
<li>Go to Tools &gt; Options&#8230; &gt; Source Control &gt; Visual Studio Team Foundation Server</li>
<li>Click &#8220;<span style="text-decoration: underline">C</span>onfigure User Tools&#8230;&#8221;</li>
<li>In the &#8220;Configure User Tools&#8230;&#8221; window, click &#8220;<span style="text-decoration: underline">A</span>dd&#8230;&#8221; to configure the Compare Operation&#8230; then Type:
<ul>
<li><span style="text-decoration: underline">E</span>xtension: .*</li>
<li><span style="text-decoration: underline">O</span>peration: Compare</li>
<li><span style="text-decoration: underline">C</span>ommand: D:\Tools\Beyond Compare 3\BComp.exe</li>
<li><span style="text-decoration: underline">A</span>rguments: %1 %2 /title1=%6 /title2=%7</li>
</ul>
</li>
<li>Click &#8220;Ok&#8221; and then again &#8220;Add..&#8221; to configure the Merge Operation&#8230; Type now:
<ul>
<li>Extension: .*</li>
<li>Operation: Merge</li>
<li>Command: D:\Tools\Beyond Compare 3\BComp.exe</li>
<li>.Arguments: %1 %2 %3 %4 /title1=%6 /title2=%7 /title3=%8 /title4=%9</li>
</ul>
</li>
</ul>
<p style="text-align: justify">Et voilà.</p>
<p style="text-align: justify"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_1705" class="pvc_stats total_only  " data-element-id="1705" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/visual-studio-compare-and-merge-sources-with-beyond-compare/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Mouse entering a ClickLock-like selection mode within Visual Studio</title>
		<link>https://www.BeatificaBytes.be/mouse-entering-a-clicklock-like-selection-mode-within-visual-studio/</link>
					<comments>https://www.BeatificaBytes.be/mouse-entering-a-clicklock-like-selection-mode-within-visual-studio/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Wed, 12 Feb 2014 21:00:32 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">/wordpress/?p=1564</guid>

					<description><![CDATA[Quite often, when I stop the Visual Studio debugger (possibly mainly when I just did an &#8220;edit and continue&#8220;) the mouse enters a kind of [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify">Quite often, when I stop the Visual Studio debugger (possibly mainly when I just did an &#8220;<a title="Edit and Continue" href="http://msdn.microsoft.com/en-us/library/bcew296c.aspx" target="_blank" rel="noopener">edit and continue</a>&#8220;) the mouse enters a kind of &#8220;<a title="ClickLock" href="http://www.sevenforums.com/tutorials/24046-clicklock-turn-off.html" target="_blank" rel="noopener">ClickLock</a>&#8221; mode: the text is automatically highlighted between the current mouse location and the location where it was when I stopped the debugger. Impossible to move the mouse (or the cursor using the arrows) without highlighting text (I.e.: doing a text selection)&#8230; So, impossible to work anymore as pressing any key will immediately delete the selection.</p>
<p style="text-align: justify">I found only a few reports about that &#8220;issue/behavior&#8221; on the web. I still have no idea how to prevent it. But I found a way to halt it when it occurs: Press <span class="keyboard">Alt-Gr</span> + <span class="keyboard">CTRL</span> + <span class="keyboard">SHIFT</span></p>
<div class="pvc_clear"></div>
<p id="pvc_stats_1564" class="pvc_stats total_only  " data-element-id="1564" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/mouse-entering-a-clicklock-like-selection-mode-within-visual-studio/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Web Site projects, TFS and branches can mess up your workspace&#8230;</title>
		<link>https://www.BeatificaBytes.be/web-site-projects-tfs-and-branches-can-mess-up-your-workspace/</link>
					<comments>https://www.BeatificaBytes.be/web-site-projects-tfs-and-branches-can-mess-up-your-workspace/#comments</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Wed, 07 Nov 2012 22:22:16 +0000</pubDate>
				<category><![CDATA[TFS]]></category>
		<category><![CDATA[Branching]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">/wordpress/?p=638</guid>

					<description><![CDATA[Yet another issue experienced when working on multiple branches in TFS: working with branched Visual Studio Web Site Projects (not to be confused with Visual Studio [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify">Yet another issue experienced when working on multiple branches in TFS: working<span style="color: #333333;font-style: normal;line-height: 24px"> </span>with branched Visual Studio Web Site Projects (<a title="Web Site versus Web Applications" href="http://msdn.microsoft.com/en-us/library/dd547590(v=vs.100).aspx" target="_blank" rel="noopener">not to be confused</a> with Visual Studio Web Application Projects) could indeed result in the creation of messy mappings in your workspace. This is due to the way Visual Studio manages the Virtual Directories behind Web Site Projects.</p>
<p style="text-align: justify"><span class="collapseomatic " id="id69b276f855112"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b276f855112'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b276f855112" class="collapseomatic_content ">
<p style="text-align: justify">My colleagues reported indeed some troubles when working with Visual Studio 2010 on Visual Studio Solutions containing Web Sites (not Web Applications) branched, e.g., from an existing TFS folder $/TeamProject/Main/Website onto a new branch $/TeamProject/Dev/WebSite (They still have indeed a few such Web Site Projects. Those cannot be upgraded into Web Applications as they use a framework that relies on various typical features of web sites, not supported by web applications. In addition, note that on the development workstations, the web sites are hosted in IIS due to some prerequisites of that framework, a.o. some limitation on the host header name and port).</p>
<p style="text-align: justify">Assume now that $/TeamProject is mapped withing a local workspace on C:\TFS\TeamProject, that there is no other mapping in this workspace and that one checks-in a new Web Site created in C:\TFS\TeamProject\Dev\WebSite. By default, the resulting server items will be located in  $/TeamProject/Dev/WebSite. And as you should know, a virtual directory named &#8220;WebSite&#8221; will have been created in IIS by Visual Studio and mapped on C:\TFS\TeamProject\Dev\WebSite behind the scene &#8211; mapping which is saved in the Visual Studio suo file).</p>
<p style="text-align: justify">Next, assume that one does a reverse integration of the Dev branch on the Main branch, that one checks-in the pending changes and that one opens next the Visual Studio Solution located in C:/TFS/TeamProject/Main (opening de facto also the web site)</p>
<p style="text-align: justify">Using Web Application Projects instead of a Web Site Projects, Visual Studio would alert the user that a Virtual Directory already exists with the same name but with another physical path (C:/TFS/TeamProject/Dev/WebSite in this case). And the user would be prompted to possibly <strong>redefine</strong> this Virtual Directory with the new location (i.e.: with C:/TFS/TeamProject/Main/WebSite). If the user refuses, the Web Application won&#8217;t be loaded in Visual Studio. If he agrees, the Virtual Directory is remapped on the new location.</p>
<p style="text-align: justify">But with Web Site Projects, it&#8217;s slightly different&#8230;. Visual Studio prompts the user to <strong>reuse</strong> the Virtual Directory. If the user refuses, a new Virtual Directory with the same name but suffixed with &#8220;_1&#8221; is created and mapped on the new physical path (opening again the web site from yet another physical location would results in suffixes &#8220;_2&#8221;, &#8220;_3&#8221;, etc&#8230;). This new name is unfortunately an issue for my colleagues, if they want to run the web site, again due to some constraints of the framework in use.</p>
<p style="text-align: justify">Instead, if the user accepts to reuse the Virtual Directory (expecting a behavior similar to the one experienced with Web Application Projects), Visual Studio will not redefine the physical location of the Virtual Directory; it will create new mappings in the workspace to get the sources from TFS in the physical location currently defined for the existing Virtual Directory. I.e.: the definition of the workspace will be like:</p>
<ul style="text-align: justify">
<li>$/TeamProject                          ==&gt;  C:/TFS/TeamProject</li>
<li>$/TeamProject/<strong>Main</strong>/WebSite ==&gt;  C:/TFS/TeamProject/<strong>Dev</strong>/WebSite</li>
</ul>
<div style="text-align: justify">And the Virtual Directory &#8220;WebSite&#8221; will be kept mapped on the physical location C:/TFS/TeamProject/<strong>Dev</strong>/WebSite.</div>
<p style="text-align: justify">Guess what if the user reopens later the solution in C:/TFS/TeamProject/Dev to implement new features on the web site in the Dev branch ? He will actually check-in his changes under the branch $/TeamProject/<strong>Main</strong>/</p>
<p style="text-align: justify">Upgrade to Web Applications is not an option at all &#8211; it was already investigated years ago and the cost was to high. But I could possibly investigate the use of the Visual Studio Development Web Server instead of IIS, although it is a prerequisite for the framework used in those web sites projects.</p>
<p style="text-align: justify">As a temporary solution, I suggest all users to delete any existing Virtual Directory before opening a Solution containing Web Sites Projects. If they have already reused an existing Virtual Directory, I suggest them to clean the messy mappings in their workspace and delete next the existing Virtual Directory. If they have a Solution working with a Virtual Directory suffixed with _1, I suggest them to delete their .suo file (otherwise Visual Studio will always recreate a Virtual Directory with that name when opening the Web Site Projects) and delete that Virtual Directory.</p>
<p style="text-align: justify">Notice: in some case (if not deleting/recreating correctly the Virtual Directory and the suo), you could have Visual Studio Solution files opened from various branches referencing the same Virtual Directory, obviously mapped on only one physical path, but without extra mappings in the workspace&#8230; And Visual Studio won&#8217;t prompt you to use the existing Virtual directory when opening a solution. In such a case, delete the suo file of that solution.</p>
<p style="text-align: justify"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_638" class="pvc_stats total_only  " data-element-id="638" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img loading="lazy" decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/web-site-projects-tfs-and-branches-can-mess-up-your-workspace/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>MSSCCI, TFS and branches can mess up your workspace&#8230;</title>
		<link>https://www.BeatificaBytes.be/msscci-tfs-and-branches-can-mess-up-your-workspace/</link>
					<comments>https://www.BeatificaBytes.be/msscci-tfs-and-branches-can-mess-up-your-workspace/#respond</comments>
		
		<dc:creator><![CDATA[vletroye]]></dc:creator>
		<pubDate>Wed, 07 Nov 2012 18:15:05 +0000</pubDate>
				<category><![CDATA[TFS]]></category>
		<category><![CDATA[Branching]]></category>
		<category><![CDATA[MSSCCI]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">/wordpress/?p=624</guid>

					<description><![CDATA[At work, some colleagues are developing a standalone application hosted within the Visual Studio Isolated Shell. This application makes use of the DSM extension for Visual Studio to generate source code [&#8230;]]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify">At work, some colleagues are developing a standalone application hosted within the <a title="Visual Studio Isolated Shell" href="http://msdn.microsoft.com/fr-fr/library/vstudio/bb685691.aspx" target="_blank" rel="noopener">Visual Studio Isolated Shell</a>. This application makes use of the <a title="Domain-Specific Modeling" href="http://msdn.microsoft.com/en-us/library/bb245773.aspx" target="_blank" rel="noopener">DSM</a> extension for Visual Studio to generate source code based on diagrams, source code which should be stored within TFS. Unfortunately, Team Explorer does not integrate with the Visual Studio Isolated Shell <img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p style="text-align: justify">So, they use MSSCCI as a solution to access TFS. But they recently noticed that this solution was messing up their workspace when working in multiple branches.</p>
<p style="text-align: justify"><span class="collapseomatic " id="id69b276f856c80"  tabindex="0" title="Click to Read More"    >Click to Read More</span><span id='swap-id69b276f856c80'  class='colomat-swap' style='display:none;'>Click to Close</span><div id="target-id69b276f856c80" class="collapseomatic_content ">
<p style="text-align: justify">TFS can be accessed from the Visual Studio Isolated Shell using the <a title="MSSCCI Provider for Team Foundation" href="http://visualstudiogallery.msdn.microsoft.com/bce06506-be38-47a1-9f29-d3937d3d88d6" target="_blank" rel="noopener">MSSCCI provider for Team Foundation</a> (&lt;= here the link for the 32bits/VS 2010 version).</p>
<p style="text-align: justify">My colleagues reported however some troubles when working on Visual Studio Solutions branched, e.g., from an existing TFS folder $/TeamProject/Main onto a new branch $/TeamProject/Dev.</p>
<p style="text-align: justify">Assume that $/TeamProject is mapped in a local workspace on C:\TFS\TeamProject, that there is no other mapping in this workspace and that one checks-in a new Visual Studio Solution created in C:\TFS\TeamProject\Dev (with one sub-folder per included Visual Studio Project). By default, the resulting server items will be located in  $/TeamProject/Dev with all projects&#8217; sub-folders created &#8220;recursively&#8221; bellow.</p>
<p style="text-align: justify">Next, assume that one does a reverse integration of the Dev branch on the Main branch, that one checks-in the pending changes and that one opens next the Visual Studio Solution located in C:/TFS/TeamProject/Main.</p>
<p style="text-align: justify">It appears that, behind the scene, Visual Studio with MSSCCI will create new workspace mappings between $/TeamProject/<span style="color: #ff0000"><strong>Main</strong></span>/xxx and C:/TFS/TeamProject/Dev/xxx. Any &#8220;Get Latest&#8221; made on the Main folder in TFS will update the local Dev subfolders! And when one will later open the Visual Studio Solution in this local Dev folder, expecting to work on the Dev branch, one will actually be working on the Main branch <img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p style="text-align: justify">The reason is that the Visual Studio Isolated Shell with MSSCCI is using absolute paths in the Visual Studio Solution Files as references to included Visual Studio Project files. Visual Studio with Team Explorer is using relative paths instead. And when one opens a Visual Studio Solution Files containing absolute paths, mappings are created in the workspace, between the &#8220;server&#8221; items and those local &#8220;absolute paths&#8221;. I.e.: the definition of the  workspace will be like:</p>
<ul style="text-align: justify">
<li>$/TeamProject                          ==&gt;  C:/TFS/TeamProject</li>
<li>$/TeamProject/<strong>Main</strong>/Project1   ==&gt;  C:/TFS/TeamProject/<strong>Dev</strong>/Project1</li>
<li>$/TeamProject/<strong>Main</strong>/Project2   ==&gt;  C:/TFS/TeamProject/<strong>Dev</strong>/Project2</li>
</ul>
<p style="text-align: justify">If you ignore that absolute paths are used in your Visual Studio Solution file and if you don&#8217;t pay attention to the server path of your pending changes, you will really be confused when your colleagues will complain that you didn&#8217;t check-in your new features in the right branch or when a Gated Build will start on the Main branch when you check-in your changes <img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p style="text-align: justify"></div>
<div class="pvc_clear"></div>
<p id="pvc_stats_624" class="pvc_stats total_only  " data-element-id="624" style=""><i class="pvc-stats-icon medium" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" version="1.0" viewBox="0 0 502 315" preserveAspectRatio="xMidYMid meet"><g transform="translate(0,332) scale(0.1,-0.1)" fill="" stroke="none"><path d="M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z"/><path d="M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z"/><path d="M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z"/><path d="M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z"/><path d="M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z"/><path d="M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z"/><path d="M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z"/><path d="M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z"/><path d="M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z"/></g></svg></i> <img loading="lazy" decoding="async" width="16" height="16" alt="Loading" src="https://www.BeatificaBytes.be/wp-content/plugins/page-views-count/ajax-loader-2x.gif" border=0 /></p>
<div class="pvc_clear"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.BeatificaBytes.be/msscci-tfs-and-branches-can-mess-up-your-workspace/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
