<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>VSNET - SeeSharp</title>
        <description>A C# development blog</description>
        <link>/Tags/VSNET/RSS</link>
        <language>en</language>
        <image>
            <url>http://www.hightech.ir/favicon.png</url>
            <title>SeeSharp</title>
            <link>/Tags/VSNET/RSS</link>
            <width>64</width>
            <height>64</height>
        </image>
        <item>
            <dc:creator>HEskandari</dc:creator>
            <title>VS.NET Designer Errors</title>
            <description>&lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_Z5KTIfnfuNs/SZariGi7oII/AAAAAAAAAMI/yovDr_7SnQA/s1600-h/Unknown-Designer-Exceptions%5B6%5D.png&quot;&gt;&lt;img style=&quot;BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; MARGIN: 5px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px&quot; title=&quot;Unknown-Designer-Exceptions&quot; border=&quot;0&quot; alt=&quot;Unknown-Designer-Exceptions&quot; align=&quot;right&quot; src=&quot;http://lh4.ggpht.com/_Z5KTIfnfuNs/SZarjgq75cI/AAAAAAAAAMM/iQbV6HMsOhE/Unknown-Designer-Exceptions_thumb%5B4%5D.png?imgmax=800&quot; width=&quot;488&quot; height=&quot;181&quot; /&gt;&lt;/a&gt; Maintaining old applications has always been something painful for me. Old application, for me, means Winform applications using DataSets for binding operations. When converting and opening an old application, the least thing you want on your hands is to open a form and see Designer screen of death. This is due to the fact that in the WinForm world when you open a form, all the extra codes in the constructor and Load events will get executed, and this where things can go wrong. Think about a pieced of code in constructor of a form doing something innocent in nature like saving / loading data from registry, connecting to a service. Almost always VS.NET shows a cryptic message. How would you know which code / form / usercontrol is causing this?&lt;br /&gt;&lt;/p&gt;

&lt;span class=&quot;subtitle&quot;&gt;Debugging the Designer&lt;/span&gt;
&lt;p&gt;There are just a few steps to catch the buggy piece of code ruining your day. Open up your visual studio solution containing your application's code and compile. Locate the form that is breaking the designer. Open another instance of VS.NET and Goto &quot;Tools&quot; &amp;gt; &quot;Attach To Process&quot; and locate the process named &quot;Devenv.exe&quot; which is Visual Studio's process name. There are two processes named &quot;Devenv&quot;. Make sure you select the one with loaded solution. To catch all the thrown exceptions go to &quot;Debug&quot; &amp;gt; &quot;Exceptions&quot; and check the column &quot;Thrown&quot; in front of &quot;Common Language Runtime Exceptions&quot;. This will tell the VS.NET to catch all the exception thrown by CLR. At this point you're good to go. Switch to your VS.NET containing the solution and open the Form / Usercontrol. The exception will be caught so you can have a very good idea what the problem is.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/_Z5KTIfnfuNs/SZarnCiMxrI/AAAAAAAAAMQ/tPAp_WKnw58/s1600-h/VSDebugger%5B7%5D.png&quot;&gt;&lt;img style=&quot;BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: block; FLOAT: none; MARGIN-LEFT: auto; BORDER-TOP: 0px; MARGIN-RIGHT: auto; BORDER-RIGHT: 0px&quot; title=&quot;VSDebugger&quot; border=&quot;0&quot; alt=&quot;VSDebugger&quot; src=&quot;http://lh4.ggpht.com/_Z5KTIfnfuNs/SZarruWDzSI/AAAAAAAAAMU/3jV-YgDh2Zc/VSDebugger_thumb%5B3%5D.png?imgmax=800&quot; width=&quot;644&quot; height=&quot;430&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is very easy to avoid this. &lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Make sure the codes written in Form and Usercontrol constructors / OnLoaded / Loaded event (except for InitializeComponents in constructors) will not get executed.&lt;/li&gt;
  &lt;li&gt;Use the DesignMode property&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're extending functionality of a custom control you need to be aware of this problem. The constructors of custom controls will be called in InitializeComponent anyway, so if there's something wrong with the code in there, you'll end up with this problem.&lt;br /&gt;

&lt;br /&gt;There's also an issue with the DesignMode property in UserControls. The design mode only works when the user control is Sited so you may be in design mode and get &quot;False&quot; value when checking DesignMode property. The trick is to use a property on System.ComponentModel.LicenseManager which is more reliable.&lt;/p&gt;</description>
            <link>http://www.hightech.ir/SeeSharp/vs-designer-errors-rsod-again</link>
            <guid isPermaLink="true">http://www.hightech.ir/SeeSharp/vs-designer-errors-rsod-again</guid>
            <pubDate>Sat, 14 Feb 2009 15:01:00 GMT</pubDate>
            <category>WinForms</category>
            <category>VSNET</category>
        </item>
        <item>
            <dc:creator>HEskandari</dc:creator>
            <title>CodeRush Express : Free</title>
            <description>DevExpress has just released a new version of their Visual Studio .NET add-in tool namingly &quot;CodeRush Xpress&quot;. This version is Free! Some features refactorings available in this free versions :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Increase or Reduce Selection &lt;/li&gt;&lt;li&gt;Quick Navigation Window&lt;/li&gt;&lt;li&gt;Quick File Navigation &lt;/li&gt;&lt;li&gt;Duplicate Line &lt;/li&gt;&lt;li&gt;Highlight All References &lt;/li&gt;&lt;li&gt;Compress to Lambda Expression&lt;/li&gt;&lt;li&gt;Compress to Ternary Expression&lt;/li&gt;&lt;li&gt;Extract Method&lt;/li&gt;&lt;li&gt;Convert to Auto-implemented Property&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Of couse all of them has been around in Resharper for quite some time now. Call me biased,  but IMHO it doesn't come close to Resharper features, but doesn't cost you a dime to use! Also, not providing lots of feature and being small could be a good thing. any ideas?&lt;/p&gt;Grab the installation and more information &lt;a href=&quot;http://devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/&quot;&gt;here&lt;/a&gt;.</description>
            <link>http://www.hightech.ir/SeeSharp/coderush-express-free</link>
            <guid isPermaLink="true">http://www.hightech.ir/SeeSharp/coderush-express-free</guid>
            <pubDate>Tue, 28 Oct 2008 16:20:00 GMT</pubDate>
            <category>VSNET</category>
            <category>AddIns</category>
            <category>Tools</category>
        </item>
        <item>
            <dc:creator>HEskandari</dc:creator>
            <title>Using full CPU power when building!</title>
            <description>As Scott Hanselman points out in his &lt;a href=&quot;http://www.hanselman.com/blog/FasterBuildsWithMSBuildUsingParallelBuildsAndMulticoreCPUs.aspx&quot;&gt;blog&lt;/a&gt; fully, you can take advantage of all your CPU cores when building the solution using MSBuild.&lt;br /&gt;&lt;br /&gt;Of course this is a luxury you get if you upgrade to Visual Studio 2008, and is not supported in older versions. Fortunately, since MSBuild in VS.NET 2008 (and the IDE itself) supports multitargetting, if you're still using .NET Framework 2.0 you can upgrade to VS.NET 2008 and benefit from this feature.&lt;br /&gt;&lt;br /&gt;One thing to know before expecting faster build speeds, is to know the dependency tree of your Solution. If your projects are dependent on one another, you won't benefit much.&lt;br /&gt;&lt;br /&gt;Scott also shows &lt;a href=&quot;http://www.hanselman.com/blog/HackParallelMSBuildsFromWithinTheVisualStudioIDE.aspx&quot;&gt;a hack&lt;/a&gt; to Visual Studio .NET to enable this feature when building solutions inside the IDE.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069495622049300789-1925905866558188793?l=heskandari.blogspot.com'/&gt;&lt;/div&gt;</description>
            <link>http://www.hightech.ir/SeeSharp/using-full-cpu-power-when-building</link>
            <guid isPermaLink="true">http://www.hightech.ir/SeeSharp/using-full-cpu-power-when-building</guid>
            <pubDate>Tue, 06 May 2008 10:37:00 GMT</pubDate>
            <category>VSNET</category>
            <category>MSBuild</category>
            <category>Tools</category>
        </item>
        <item>
            <dc:creator>HEskandari</dc:creator>
            <title>Cool Commands for VS.NET</title>
            <description>I was taking a look at Gaston Milano's weblog the other day, and I saw that he has released a new version of his Cool Commands for VisualStudio.NET 2005. There are lots of useful things that should have been in the VS.NET in the first place, like Opening the folder of an item in the tree, etc. but most of all I like the new Resource Editor. Just select a text inside the code editor of the VS.NET and with a click of a mouse, you'll have an entry created in the your resource file!&lt;br /&gt;&lt;br /&gt;I think this one will come in handy! Check out the blog post at http://weblogs.asp.net/gmilano/ where you can get the latest version of Cool Commands.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6069495622049300789-6450757158235414988?l=heskandari.blogspot.com'/&gt;&lt;/div&gt;</description>
            <link>http://www.hightech.ir/SeeSharp/i-was-taking-look-at-gaston-milanos</link>
            <guid isPermaLink="true">http://www.hightech.ir/SeeSharp/i-was-taking-look-at-gaston-milanos</guid>
            <pubDate>Wed, 07 Mar 2007 10:40:00 GMT</pubDate>
            <category>VSNET</category>
            <category>AddIns</category>
            <category>C</category>
            <category>Tools</category>
        </item>
    </channel>
</rss>
