<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>David Kline : Command Line</title><link>http://blogs.msdn.com/davidklinems/archive/tags/Command+Line/default.aspx</link><description>Tags: Command Line</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Quick Creation of Text Files From the Command Line</title><link>http://blogs.msdn.com/davidklinems/archive/2006/02/09/528851.aspx</link><pubDate>Thu, 09 Feb 2006 11:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:528851</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/528851.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=528851</wfw:commentRss><description>It's a sunny day here in the Seattle area, so let's have some command line fun.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;Have you ever needed to create a small text file while working at a command line?&amp;nbsp; I've been using the following technique since my MS-DOS days.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Creating files at the command line is very simple, using the &lt;code&gt;copy&lt;/code&gt; command.&amp;nbsp; Here's how:
&lt;p&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;While in a Command Prompt window, navigate to your desired folder.&amp;nbsp; I will use c:\test in this example.&lt;br /&gt;&lt;code&gt;C:\&amp;gt; cd test&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Instruct the &lt;code&gt;copy&lt;/code&gt; command to copy the console (CON) data to your file (ex: notes.txt)&lt;br /&gt;&lt;code&gt;C:\test&amp;gt; copy con notes.txt&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Type your desired text&lt;br /&gt;&lt;code&gt;This is a simple file created via the copy command&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Save the file using &lt;code&gt;Ctrl+Z&lt;/code&gt; and pressing the &lt;code&gt;Enter&lt;/code&gt; key&lt;br /&gt;The console window will show the following&lt;br /&gt;&lt;code&gt;^Z&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 file(s) copied.&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;If you decide you do not wish to create the file, you can cancel using &lt;code&gt;Ctrl+C&lt;/code&gt; and pressing the &lt;code&gt;Enter&lt;/code&gt; key.&lt;br /&gt;&lt;br /&gt;It is important to note that once you press the &lt;code&gt;Enter&lt;/code&gt; key (on any line of your file), it is not possible to go back and make changes.&amp;nbsp; For this reason, for any file longer than a line or two, I don't recommend this technique.&amp;nbsp; I suggest using Notepad or your favorite text editor instead.&lt;br /&gt;&lt;br /&gt;I was searching the &lt;a href="http://support.microsoft.com/"&gt;Microsoft Help and Support&lt;/a&gt; site while writing this and found the following additional tip:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/68787/en-us"&gt;Appending a Line to a File with COPY Con or ECHO&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This tip is extremely cool if what you are looking to do is add a line or two to an existing file.&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;-- DK&lt;br /&gt;&lt;br /&gt;&lt;font size=1&gt;Disclaimer(s):&lt;br /&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=528851" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Command+Line/default.aspx">Command Line</category></item><item><title>What was that cool thing you just did? - Addendum: Clearing the command history</title><link>http://blogs.msdn.com/davidklinems/archive/2005/03/10/393225.aspx</link><pubDate>Thu, 10 Mar 2005 22:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:393225</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/393225.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=393225</wfw:commentRss><description>&lt;p&gt;I was at a retirement party recently when, as often happens, talk turned to the "old days".&amp;nbsp; I was talking to one of the attendees about &lt;a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/doskey.mspx"&gt;doskey&lt;/a&gt; and how useful it still is.&amp;nbsp; He asked, "Have you ever used &lt;code&gt;Alt+F7&lt;/code&gt;?".&amp;nbsp; I had to admit that I hadn't.&amp;nbsp; When I got back from the party, I gave it a quick try.&lt;/p&gt; &lt;p&gt;I must say that I have found another command line time saver.&amp;nbsp; For those who read my &lt;A href="http://blogs.msdn.com/davidklinems/archive/2004/11/10/255247.aspx"&gt;original doskey post&lt;/a&gt;, you will remember that I'm quite fond of using &lt;code&gt;F7&lt;/code&gt; / &lt;code&gt;F9&lt;/code&gt; to navigate through my command history.&amp;nbsp; Anyone who has worked in a Command Prompt window for a significant amount of time will notice that the command history can get lengthy at times.&amp;nbsp; &lt;/p&gt; &lt;p&gt;How does &lt;code&gt;Alt+F7&lt;/code&gt; help with this?&amp;nbsp; It clears the command history for the current Command Prompt window.&amp;nbsp; I think of &lt;code&gt;Alt+F7&lt;/code&gt; as doskey's version of the cls (clear screen) command.&lt;/p&gt; &lt;p&gt;Now, whenever I find myself scrolling through a command history that has grown too long, I use &lt;code&gt;Alt+F7&lt;/code&gt; and retype the command(s) that I need (which are now conviniently a brief scroll away).&lt;/p&gt; &lt;p&gt;Enjoy!&lt;br /&gt;-- DK&lt;/p&gt; &lt;p&gt;&lt;font size="1"&gt;Disclaimer(s):&lt;br /&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=393225" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Command+Line/default.aspx">Command Line</category></item><item><title>Saving time when navigating directories at the Command Prompt using pushd and popd</title><link>http://blogs.msdn.com/davidklinems/archive/2005/02/24/379984.aspx</link><pubDate>Thu, 24 Feb 2005 23:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:379984</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/379984.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=379984</wfw:commentRss><description>&lt;p&gt;It's been a little while since I posted one of my favorite command line 'tricks'...&lt;/p&gt; &lt;p&gt;Windows XP (NT/2000/2003/etc) has two commands (pushd and popd) that save me huge amounts of time when navigating my machine's file system from a Command Prompt window.&amp;nbsp; What these handy commands do is to create a virtual stack where you can use to store where you have been and quickly return as needed.&amp;nbsp; This directory stack is structured First In-Last Out (FILO), so if you push several directories and wish to return to the origin, you will need to pop each one off of the stack, in reverse order, until you are back to the start -- at which time the stack will be empty.&lt;/p&gt; &lt;p&gt;A very handy use of pushd is to wrap it with a cd (chdir) command in a doskey macro to create a custom command that changes the current directory while remembering where you started -- this is how I most often use pushd.&amp;nbsp; &lt;/p&gt; &lt;p&gt;The doskey command reference (see the Microsoft Windows XP - Command-line reference link, below) states that you can create macros consisting of multiple commands as shown below&lt;br /&gt;&lt;code&gt;c:\&amp;gt;doskey tools=pushd .$tcd /d c:\tools&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Please note that while the above illustrates using doskey to register a single macro, you can store all of your macros in one file and load them all at once using&lt;br /&gt;&lt;code&gt;doskey /macrofile &amp;lt;filename&amp;gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;While this is a handy feature, the example above will result in two prompts being shown (one each for the pushd and the cd commands)&lt;br /&gt;&lt;code&gt;C:\Documents and Settings&amp;gt;tools&lt;/p&gt; &lt;p&gt;C:\Documents and Settings&amp;gt;&lt;br /&gt;c:\tools&amp;gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;That can get a little confusing, and clutters up the Command Prompt window a bit.&amp;nbsp; To avoid the 'double prompting', I create a batch file (cdpush.bat) that disables echo before does the pushd and cd commands&lt;br /&gt;&lt;code&gt;@echo off&lt;br /&gt;pushd .&lt;br /&gt;cd /d %1&lt;/code&gt;&lt;/p&gt; &lt;p&gt;The @ sign in front of echo causes cmd.exe (and command.com in MS-DOS) to suppress the echoing of the command to the screen.&amp;nbsp;&amp;nbsp;The /d argument to the cd command allows it to change the drive as well as the directory.&lt;/p&gt; &lt;p&gt;The new tools macro now gets declared as&lt;br /&gt;&lt;code&gt;c:\&amp;gt;doskey tools=cdpush.bat c:\tools&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Now, using our macro looks like this&lt;br /&gt;&lt;code&gt;C:\Documents and Settings&amp;gt;tools&lt;/p&gt; &lt;p&gt;c:\tools&amp;gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Much cleaner, and you can use this batch file in other macros to change to any directory (with a pushd of your current location).&lt;/p&gt; &lt;p&gt;To return to my previous directory (at the top of the virtual stack) I type&lt;br /&gt;&lt;code&gt;c:\tools&amp;gt;popd&lt;/code&gt;&lt;/p&gt; &lt;p&gt;And I am back to where I started&lt;br /&gt;&lt;code&gt;C:\Documents and Settings&amp;gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Another place where pushd and popd are handy is in batch files that need to change your current directory.&amp;nbsp; The &lt;a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx"&gt;Microsoft &lt;/a&gt;&lt;a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx"&gt;Windows XP - Command-line reference A-Z&lt;/a&gt;&amp;nbsp;provides a very nice example.&lt;/p&gt; &lt;p&gt;Enjoy!&lt;br /&gt;-- DK&lt;/p&gt; &lt;p&gt;&lt;font size="1"&gt;[Edit(s): fix formatting]&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="1"&gt;Disclaimer(s):&lt;br /&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=379984" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Command+Line/default.aspx">Command Line</category></item><item><title>What was that cool thing you just did?</title><link>http://blogs.msdn.com/davidklinems/archive/2004/11/10/255247.aspx</link><pubDate>Wed, 10 Nov 2004 20:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:255247</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/255247.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=255247</wfw:commentRss><description>&lt;p&gt;Back when I started at Microsoft, the big product was MS-DOS 5.&amp;nbsp; Of all the features in MS-DOS 5, my hands down favorite (and one I still use today) was DosKey.&amp;nbsp; You remember DosKey... It was the utility that made F7 one of the most useful keys on your keyboard.&lt;/p&gt; &lt;p&gt;Prior to starting here, I was a MS-DOS 3.x and 4.01 user (depending on whether I was at home or in the lab at school) and became pretty comfortable with the command line interface.&amp;nbsp; To this day, one of the first things I do after booting my PC is to launch a command prompt.&lt;/p&gt; &lt;p&gt;Every so often, someone will stop by my office while I'm working and ask me "What did you just do?&amp;nbsp; That was cool."&amp;nbsp; The "what" was pressing F7 from within a Command Prompt window.&lt;/p&gt; &lt;p&gt;Re-typing short commands is easy and quick, once the commands get lengthy (to me, that means 30+ characters), using the F7 key is a real time saver.&amp;nbsp; Just scroll through the list, when you find your desired command, press the Enter key and you're finished.&amp;nbsp; &lt;/p&gt; &lt;p&gt;This even works inside of many command line utilities (ex: cordbg)!&lt;/p&gt; &lt;p&gt;Happily, DosKey lives on.&amp;nbsp; My F7 key still gets it's daily workout and I can still create and use custom command line macros.&amp;nbsp; For more information on DosKey in Windows XP, check out the docs &lt;a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/doskey.mspx"&gt;here&lt;/a&gt;.&amp;nbsp; Scroll down for the list of shortcut keys.&amp;nbsp; Scroll a little further for macro syntax.&lt;/p&gt; &lt;p&gt;Have fun!&lt;br /&gt;--DK&lt;/p&gt; &lt;p&gt;&lt;font size="1"&gt;[Edit: Fix sentence structure]&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="1"&gt;Disclaimer(s):&lt;br /&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=255247" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Command+Line/default.aspx">Command Line</category></item><item><title>Building a simple NetCF application from the command line - VB.NET version</title><link>http://blogs.msdn.com/davidklinems/archive/2004/09/01/224427.aspx</link><pubDate>Thu, 02 Sep 2004 02:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:224427</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/224427.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=224427</wfw:commentRss><description>&lt;p&gt;&lt;font face="Arial" size="2"&gt;A couple of weeks ago, I promised to post the VB.NET equivalent to my &lt;A href="http://blogs.msdn.com/davidklinems/archive/2004/08/17/216319.aspx"&gt;C# command line example&lt;/a&gt;.&amp;nbsp;Today, I'm going to show you how to do the same thing with the VB.NET command line compiler.&amp;nbsp; In the C#&amp;nbsp;post, I suggested adding the following environment variable to your sdkvars.bat file:&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;strong&gt;set NETCFLIBS="c:\program files\microsoft.net\sdk\v2.0\compactframework\windowsce"&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;I reference the same environment variable in the example shown below.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;This example builds a very simple VB.NET application which makes use of Windows Forms and Web Services.&amp;nbsp; As with the C# example, the non-bold portions of this example are the source file and resulting executable name.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;strong&gt;vbc.exe /noconfig /netcf /nostdlib /target:exe /sdkpath:%NETCFLIBS% /r:mscorlib.dll /r:system.dll &lt;br /&gt;/r:system.drawing.dll /r:system.windows.forms.dll /r:system.web.services.dll /r:Microsoft.VisualBasic.dll &lt;br /&gt;/out:&lt;/strong&gt;SimpleApp.exe Module1.vb&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;For details regarding the command line switches, please use &lt;em&gt;vbc /?&lt;/em&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;strong&gt;/sdkpath&lt;br /&gt;&lt;/strong&gt;This handy switch&amp;nbsp;allows you to shorten each one of the /r (short for /reference) switches to just the name of the assembly (rather than the more cumbersome fully qualified assembly path).&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;Well, that's all for today... enjoy!&lt;br /&gt;-- DK&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="1"&gt;&lt;font face="Arial"&gt;Disclaimers:&lt;br /&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;br /&gt;Some of the information contained within this post may be in relation to beta software.&amp;nbsp; Any and all details are &lt;/font&gt;&lt;font face="Arial"&gt;subject to change.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=224427" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Command+Line/default.aspx">Command Line</category></item><item><title>Building a simple NetCF application from the command line - C# version</title><link>http://blogs.msdn.com/davidklinems/archive/2004/08/17/216319.aspx</link><pubDate>Wed, 18 Aug 2004 04:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:216319</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/216319.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=216319</wfw:commentRss><description>&lt;p&gt;&lt;font face="Arial" size="2"&gt;Now that NetCF is part of the .NET Framework v2 SDK, I get asked how to build applications using the command line tools.&amp;nbsp; Today I'm going to show how to build a simple (single source file) C# application using csc.exe.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;For more complicated applications (more than one source file, building DLL assemblies at the same time as&amp;nbsp;your application, including resources, etc), I recommend creating a makefile and using nmake.exe (or your favorite make system).&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;To make your life simpler, I suggest creating an environment variable to store the path to the .NET Compact Framework assemblies (mscorlib.dll, system.dll, etc).&amp;nbsp; The default path (as installed by Visual Studio or the SDK) is long and can get cumbersome to retype for each assembly you reference.&amp;nbsp; On my machine, I set the environment variable is as follows:&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;strong&gt;set NETCFLIBS="c:\program files\microsoft.net\sdk\v2.0\compactframework\windowsce"&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;You can add this line to your sdkvars.bat file (typically installed in c:\program files\microsoft.net\sdk\v2.0\bin) so that it gets set every time you run the .NET Framework SDK Command Prompt.&amp;nbsp; Also, be sure to use quotation marks around the path.&amp;nbsp; Since the default path contains a space, forgetting the quotes will cause the command line compiler to fail to find your assembly references.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;Once NETCFLIBS has been set, you can build your application from within the .NET Framework SDK Command Prompt quite easilly.&amp;nbsp; The example below shows the command line to build a single source file WinForms application that uses Web Services.&amp;nbsp; In this example, the non-bold text specifies your source file and the name of the resulting executable.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;strong&gt;csc.exe /noconfig /nostdlib /target:exe /out:&lt;/strong&gt;SimpleApp.exe &lt;strong&gt;/r:%NETCFLIBS%\mscorlib.dll /r:%NETCFLIBS%\system.dll /r:%NETCFLIBS%\system.drawing.dll /r:%NETCFLIBS%\system.windows.forms.dll /r:%NETCFLIBS%\system.web.services.dll &lt;/strong&gt;Form1.cs&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;You can use csc /? to decipher the compiler switches, but a couple bear mentioning.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;strong&gt;/noconfig&lt;br /&gt;&lt;/strong&gt;This switch instructs the compiler to not include the default response file (csc.rsp).&amp;nbsp; This file, if present, sets a handful of default switches for the compiler that are not applicable when building NetCF applications.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;strong&gt;/nostdlib&lt;br /&gt;&lt;/strong&gt;This switch instructs the compiler to not include it's standard list of references.&amp;nbsp; When building NetCF projects, you need to use the .NET Compact Framework assemblies and not those of the desktop framework.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;Forgetting to include either of these switches will generate compile time errors regarding duplicate references.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;I hope this helps you get your C# applications building!&amp;nbsp; I plan to have a Visual Basic.NET equivalent command line posted sometime in the not too distant future.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="2"&gt;Take care,&lt;br /&gt;-- DK&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Arial" size="1"&gt;Disclaimers:&lt;br /&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;br /&gt;Some of the information contained within this post may be in relation to beta software.&amp;nbsp; Any and all details are subject to change.&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=216319" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Command+Line/default.aspx">Command Line</category></item></channel></rss>