<?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>Codepolice.net &#187; visual studio</title>
	<atom:link href="http://codepolice.net/category/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://codepolice.net</link>
	<description>C#, ASP.NET, MVC, LINQ, Wordpress and stuff like that</description>
	<lastBuildDate>Mon, 26 Jul 2010 08:58:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Problems with debuging in VS 2010</title>
		<link>http://codepolice.net/2010/07/26/problems-with-debuging-in-vs-2010/</link>
		<comments>http://codepolice.net/2010/07/26/problems-with-debuging-in-vs-2010/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 08:58:47 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=333</guid>
		<description><![CDATA[I opened up an old bloated project today in Visual Studio 2010 and i had huge issues with debugging. I usually use the attach to process way in this project but that suddenly that didn&#8217;t work anymore. Then i tried to debug with F5 but that caused my entire Visual Studio to hang. As i [...]]]></description>
			<content:encoded><![CDATA[<p>I opened up an old bloated project today in Visual Studio 2010 and i had huge issues with debugging. I usually use the attach to process way in this project but that suddenly that didn&#8217;t work anymore. Then i tried to debug with F5 but that caused my entire Visual Studio to hang. As i said, this is a old and bloated project.</p>
<p>Finally i realized that for some reason the &#8220;Attach to process&#8221; dialog had change the option &#8220;Attach to:&#8221; and it was set to &#8220;Managed (4.0) code&#8221;. When i changed it to &#8220;Managed (v2.0, v1.1, v1.0) code&#8221; it worked again.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/07/26/problems-with-debuging-in-vs-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A good dark theme for Visual Studio 2010</title>
		<link>http://codepolice.net/2010/03/20/a-good-dark-theme-for-visual-studio-2010/</link>
		<comments>http://codepolice.net/2010/03/20/a-good-dark-theme-for-visual-studio-2010/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 13:31:37 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[visual studio]]></category>
		<category><![CDATA[dark theme]]></category>
		<category><![CDATA[visual studio 2010]]></category>
		<category><![CDATA[vs]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=257</guid>
		<description><![CDATA[I have had problems finding a good Dark Theme for VS2010. But it seems that i found a pretty nice one now. You can download it from the Prabir.]]></description>
			<content:encoded><![CDATA[<p>I have had problems finding a good Dark Theme for VS2010. But it seems that i found a pretty nice one now.</p>
<div id="attachment_258" class="wp-caption aligncenter" style="width: 492px"><a href="http://codepolice.net/wp-content/uploads/2010/03/VS_Dark_Theme.png"><img class="size-full wp-image-258" title="VS2010 dark theme" src="http://codepolice.net/wp-content/uploads/2010/03/VS_Dark_Theme.png" alt="" width="482" height="269" /></a><p class="wp-caption-text">Looks ok right?</p></div>
<p>You can <a href="http://blog.prabir.me/post/My-Dark-Visual-Studio-Theme-Update.aspx">download it from the Prabir</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/03/20/a-good-dark-theme-for-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Metalscroll makes the scrollbar in Visual Studio awesome!</title>
		<link>http://codepolice.net/2010/03/20/metalscroll-makes-the-scrollbar-in-visual-studio-awesome/</link>
		<comments>http://codepolice.net/2010/03/20/metalscroll-makes-the-scrollbar-in-visual-studio-awesome/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 11:18:04 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[visual studio]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[metalscrool]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[visual studio 2008]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=250</guid>
		<description><![CDATA[Today i decided to look through tweets a favorited the last couple of month and one of the tweets I favorited was about a small add-on to Visual Studio called Metalscroll. Metalscroll basically make your scrollbar alot mor intersting. It&#8217;s kind of hard to describe but a picture says more then 1000 word so have [...]]]></description>
			<content:encoded><![CDATA[<p>Today i decided to look through tweets a favorited the last couple of month and one of the <a href="http://twitter.com/shanselman/status/7396991327">tweets</a> I favorited was about a small add-on to Visual Studio called <a href="http://code.google.com/p/metalscroll/">Metalscroll</a>. Metalscroll basically make your scrollbar alot mor intersting. It&#8217;s kind of hard to describe but a picture says more then 1000 word so have a look at this. Click on it to get it in full size.</p>
<p><a href="http://codepolice.net/wp-content/uploads/2010/03/Metalscroll.png"><img class="aligncenter size-full wp-image-251" title="Metalscroll" src="http://codepolice.net/wp-content/uploads/2010/03/Metalscroll.png" alt="" width="486" height="224" /></a></p>
<p>What you see to the right is Metalscroll. It&#8217;s kind of a thumbnail view of all the sourcecode in the file you currently have open. And that is maybe not that usefull since you can&#8217;t see anything. But there&#8217;s more. if you have any breakpoints in the file you see that as small red block in Metalscroll. Bookmarks turns up as small blue blocks. If you hold down the alt-key and double click a word you see all occurences of that word as small orange blocks in Metalscrool, just press ESC to remove the highlight for this word. Simply awesome!</p>
<p>You can also click with the middle mouse button in Metalscrol  to get a zoomed in view of the code on that location. Well .. it&#8217;s a really neat little add-on that makes Visual Studio even more awesome then it is out of the box. Hopefully it will work with Visual Studio 2010 also!</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/03/20/metalscroll-makes-the-scrollbar-in-visual-studio-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with MSBUILD tasks after playing with Visual Studio 2010</title>
		<link>http://codepolice.net/2010/02/22/problems-with-msbuild-tasks-after-playing-with-visual-studio-2010/</link>
		<comments>http://codepolice.net/2010/02/22/problems-with-msbuild-tasks-after-playing-with-visual-studio-2010/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 11:16:46 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[MSBuild]]></category>
		<category><![CDATA[visual studio 2010]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=225</guid>
		<description><![CDATA[I use a custom MSBUILD xml file to build some of my projects so that i can run stuff to compress CSS/JS files and stuff like that. After installing Visual Studio 2010 and playing around a bit with suddenly my builds started to fail. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets(132,11): error MSB4064: The "Retries" parameter is not supported [...]]]></description>
			<content:encoded><![CDATA[<p>I use a custom MSBUILD xml file to build some of my projects so that i can run stuff to compress CSS/JS files and stuff like that. After installing Visual Studio 2010 and playing around a bit with suddenly my builds started to fail.</p>
<pre class="brush:shell">C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets(132,11):
error MSB4064: The "Retries" parameter is not supported by the "Copy" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets(130,5):
error MSB4063: The "Copy" task could not be initialized with its input parameters.</pre>
<p>After some debugging i realized that Visual Studio 2010 had changed a line in the csproj file of my web application project.</p>
<p><strong>From: </strong></p>
<p><strong>To: </strong></p>
<p>I just had to change this line back to v9.0 to get it to work again. Hopefully this can help someone that has the same problem as me.</p>
<h3>UPDATE!</h3>
<p>Now when the RTM of Visual Studio was released i of course ran into this problem again. This time i tried to find a better solution and found this <a href="http://devlicio.us/blogs/derik_whittaker/archive/2010/02/27/issues-compiling-vs2010-solutions-with-web-projects-from-nant.aspx">post on devlicio</a>. In the comments to that post i found a solution that worked great for me.</p>
<blockquote><p>I had the same issue. I had to alter the MSbuild WebApplication file  located: C:\Program Files  (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications and remove  these entries.</p>
<p>Retries=&#8221;$(CopyRetryCount)&#8221;</p>
<p>and          RetryDelayMilliseconds=&#8221;$(CopyRetryDelayMilliseconds)&#8221;</p>
<p>Once both of these were removed (in 13 places) everything worked  fine. Hope it helps you too.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/02/22/problems-with-msbuild-tasks-after-playing-with-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Quick attach to process in Visual Studio</title>
		<link>http://codepolice.net/2009/09/01/quick-attach-to-process-in-visual-studio/</link>
		<comments>http://codepolice.net/2009/09/01/quick-attach-to-process-in-visual-studio/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 09:09:47 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[attach]]></category>
		<category><![CDATA[macro]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=162</guid>
		<description><![CDATA[When i debug web applications i like to go with the attach to process instead of pressing F5 when i use IIS as the development web server. It has lot of advantages: If you are &#8220;deep down&#8221; in your application you do not have to start from the beginning again. Attach to process lets you [...]]]></description>
			<content:encoded><![CDATA[<p>When i debug web applications i like to go with the <strong>attach to process</strong> instead of pressing F5 when i use IIS as the development web server. It has lot of advantages:</p>
<ul>
<li>If you are &#8220;deep down&#8221; in your application you do not have to start from the beginning again. Attach to process lets you debug the tab/window you already using.</li>
<li>When you &#8220;press play&#8221; in VS and have Firefox as the default search engine you Visual Studio opens a new tab each time you start and you end up with X number of tabs with your app.</li>
<li>Probably more that i can&#8217;t think of right now.</li>
</ul>
<p>Anyway the big disadvantage with this is that it is a pretty tedious process to attach to a process.</p>
<ul>
<li>Press <strong><em>ctrl-alt-p</em></strong> to bring up the attach to process dialog.</li>
<li>Scroll down to w3wp.exe and &#8220;attach&#8221; it. For some reason it doesn&#8217;t work to press &#8220;w&#8221; here either so you have to scroll down manually.</li>
<li>Click ok and then you have to confirm that you really have to do it.</li>
</ul>
<p>I have been doing this for months but today i decided to see if Google had any answer to my problem and surely it did. I found <a href="http://stackoverflow.com/questions/894848/how-can-i-attach-to-a-process-in-visual-studio">this question</a> on Stackoverflow. The answer to the question was to record a macro in Visual Studio that do this for you.</p>
<ul>
<li>Press <strong><em>ctrl-shift-r</em></strong> to start record the Macro.</li>
<li>Do the steps i described above to attach to the process.</li>
<li>Press <strong><em>ctrl-shift-r</em></strong> again to stop the recording.</li>
</ul>
<p>Now you have the attach to process as a temporary macro and can run it with <strong><em>ctrl-shift-p</em></strong>. You will get an error if you try to run it when you already attach to a process and so on but it work. If you want to you can look for the error 0x8971001E and add DTE.Debugger.Stop(True) in the catch part of the macro.</p>
<p>You can also save the macro and add it to your toolbar, attach your own keyboard shortcut to it and so on. Check out <a href="http://www.switchonthecode.com/tutorials/how-to-configure-and-use-visual-studio-macros">this article about macros</a> on &#8220;Switch on the code&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2009/09/01/quick-attach-to-process-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->