<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5452819673390172475</id><updated>2026-10-21T15:15:45.912-07:00</updated><category term="PowerShell"/><category term="TFS 2010"/><category term="MSBuild"/><category term="Windows"/><category term="InstallUtil"/><category term="Visio"/><title type='text'>Joy Chua</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-1176037118733332613</id><published>2012-03-07T06:49:00.000-08:00</published><updated>2012-03-07T06:50:55.762-08:00</updated><title type='text'>Removing old Work Item Type from TFS 2010 Team Project</title><content type='html'>To remove an old work item type (WIT) from TFS 2010 Team Project&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Open Visual Studio Command Prompt under Microsoft Visual Studio 2010 -&amp;gt; Visual Studio Tools&lt;/li&gt;
&lt;li&gt;Make sure that you have admin permissions, and run &lt;/li&gt;
&lt;/ol&gt;
&lt;div div=&quot;&quot; style=&quot;background: white; border: 3px solid orange; padding: 5px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: inherit;&quot;&gt;&lt;strong&gt;witadmin destroywitd&lt;/strong&gt; /collection:&amp;lt;url of the collection&amp;gt;&amp;nbsp;/p:&amp;lt;team project name&amp;gt;&amp;nbsp;/n:&amp;lt;work item type&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/1176037118733332613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/03/removing-old-work-item-type-from-tfs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1176037118733332613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1176037118733332613'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/03/removing-old-work-item-type-from-tfs.html' title='Removing old Work Item Type from TFS 2010 Team Project'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-8668912923880027652</id><published>2012-02-22T02:09:00.000-08:00</published><updated>2012-02-22T02:09:10.626-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visio"/><title type='text'>Adding text to an Off-page reference in Visio</title><content type='html'>I am creating a Visio diagram and I need to use the &lt;strong&gt;Off-page reference&lt;/strong&gt;. Unlike other shapes that I can double click to assign a text, when I double click on an Off-page reference, it redirects me to its referenced shape in another page. &lt;br /&gt;
&lt;br /&gt;
So how can I add text to my &lt;strong&gt;Off-page reference&lt;/strong&gt;? Here are two ways:&lt;br /&gt;
1) Left-click on the Off-page reference, and press the F2 key, or&lt;br /&gt;
2) Left-click on the Off-page reference, and click the Text command on the toolbar (Home ribbon).&amp;nbsp; Shortcut key is CTRL+2.&lt;br /&gt;
&lt;br /&gt;
Also make sure that you check the &quot;Keep shape text synchronized&quot; option when initially creating an Off-page reference. This will ensure that changes to the text of any of the shape references will be automatically reflected to the other (avoiding possible confusion if&amp;nbsp; you happen to have a number of references).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgAI8kPoR_C1Y9QlODj9WRxaRD_VQan0bhYdIGlGaOXQaULXnjdPWB5AeZsQjT5ih0Rf_ZfNbGCVSMAbWHtn3SOPTAYnjBldFkATFOjOt5ZyReiL4A5igfht517XT3n8Ocjat07LKRZlQ/s1600/Visio1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgAI8kPoR_C1Y9QlODj9WRxaRD_VQan0bhYdIGlGaOXQaULXnjdPWB5AeZsQjT5ih0Rf_ZfNbGCVSMAbWHtn3SOPTAYnjBldFkATFOjOt5ZyReiL4A5igfht517XT3n8Ocjat07LKRZlQ/s1600/Visio1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/8668912923880027652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/adding-text-to-off-page-reference-in.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/8668912923880027652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/8668912923880027652'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/adding-text-to-off-page-reference-in.html' title='Adding text to an Off-page reference in Visio'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgAI8kPoR_C1Y9QlODj9WRxaRD_VQan0bhYdIGlGaOXQaULXnjdPWB5AeZsQjT5ih0Rf_ZfNbGCVSMAbWHtn3SOPTAYnjBldFkATFOjOt5ZyReiL4A5igfht517XT3n8Ocjat07LKRZlQ/s72-c/Visio1.png" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-4019015101162668745</id><published>2012-02-17T05:05:00.000-08:00</published><updated>2012-02-22T01:58:19.570-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="InstallUtil"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Running InstallUtil unattended</title><content type='html'>The following command runs InstallUtil.exe unattended and passing username and password:&lt;br /&gt;
&lt;br /&gt;
&lt;div div=&quot;&quot; style=&quot;background: white; border: 3px solid orange; padding: 5px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: inherit;&quot;&gt;InstallUtil.exe /unattended /username=&amp;lt;domain\username&amp;gt; /password=&amp;lt;password&amp;gt; Service.exe&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;strong&gt;IMPORTANT NOTE&lt;/strong&gt;: The switches (username, password, etc) must be placed before the name of the service to be installed, otherwise the switches will not be used. I made this mistake so I initially thought that these switches were not working :)&lt;br /&gt;
&lt;br /&gt;
Use the /? or /help switch to learn more about the other options that can be used in installing the service&lt;br /&gt;
&lt;br /&gt;
&lt;div div=&quot;&quot; style=&quot;background: white; border: 3px solid orange; padding: 5px;&quot;&gt;
&lt;span style=&quot;color: black; font-family: inherit;&quot;&gt;InstallUtil.exe /? Service.exe&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/4019015101162668745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/running-installutil-unattended.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/4019015101162668745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/4019015101162668745'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/running-installutil-unattended.html' title='Running InstallUtil unattended'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-1201285860474155767</id><published>2012-02-17T02:57:00.000-08:00</published><updated>2012-02-22T01:58:31.025-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Redirecting output of PowerShell scripts</title><content type='html'>Now I have finished creating the first part of my PowerShell script, and I now want to create some sort of logging instead of just having the output printed on the console. So I need to redirect the output to a log file, and still see on the console what is being written to the file. &lt;br /&gt;
&lt;br /&gt;
To achieve this, I used&amp;nbsp; &lt;strong&gt;Tee-Object&amp;nbsp;&lt;/strong&gt;as shown below. This will redirect even the error messages to the log file &lt;span style=&quot;font-family: inherit;&quot;&gt;and continuously display the contents of the file as it is written to.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./samplescript &quot;input parameters&quot; &lt;strong&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;2&amp;gt;&amp;amp;1 | Tee-Object&lt;/span&gt;&amp;nbsp; &lt;/strong&gt;&quot;logfile.txt&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;To redirect just the output to the log file and leave error messages to the console:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./samplescript &quot;input parameters&quot; &lt;strong&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;/strong&gt;&quot;logfile.txt&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Here are the other Windows PowerShell redirection operators:&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;Operator&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th width=&quot;350&quot;&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;gt;&lt;/td&gt;
&lt;td&gt;Redirects output to the specified file, overwritting its current contents.&lt;/td&gt;
&lt;td&gt;./samplescript &quot;input parameters&quot; &amp;gt; &quot;logfile.txt&quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;gt;&amp;gt;&lt;/td&gt;
&lt;td&gt;Appends output to the current contents of hte file.&lt;/td&gt;
&lt;td&gt;./samplescript &quot;input parameters&quot; &amp;gt;&amp;gt; &quot;logfile.txt&quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&amp;gt;&lt;/td&gt;
&lt;td&gt;Sends errors to the specified file. Overwritting its current contents.&lt;/td&gt;
&lt;td&gt;./samplescript &quot;input parameters&quot; 2&amp;gt; &quot;errorfile.txt&quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&amp;gt;&amp;gt;&lt;/td&gt;
&lt;td&gt;Appends errors to contents of the specified file.&lt;/td&gt;
&lt;td&gt;./samplescript &quot;input parameters&quot; 2&amp;gt;&amp;gt; &quot;errorfile.txt&quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&amp;gt;&amp;amp;1&lt;/td&gt;
&lt;td&gt;Sends error messages to the success output stream&lt;/td&gt;
&lt;td&gt;./samplescript &quot;input parameters&quot; 2&amp;gt;&amp;amp;1 &quot;logfile.txt&quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference: &lt;a href=&quot;http://technet.microsoft.com/en-us/library/dd315283.aspx&quot;&gt;http://technet.microsoft.com/en-us/library/dd315283.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/1201285860474155767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/redirecting-output-of-powershell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1201285860474155767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1201285860474155767'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/redirecting-output-of-powershell.html' title='Redirecting output of PowerShell scripts'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-1151954467587591158</id><published>2012-02-15T08:08:00.001-08:00</published><updated>2012-02-22T01:58:38.747-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TFS 2010"/><title type='text'>TF.exe commands</title><content type='html'>Looking for tf.exe commands to include in my PowerShell script, and the reference in &lt;a href=&quot;http://msdn.microsoft.com/en-US/library/1yft8zkw(v=vs.80).aspx&quot;&gt;http://msdn.microsoft.com/en-US/library/1yft8zkw(v=vs.80).aspx&lt;/a&gt;&amp;nbsp;is quite helpful. &lt;br /&gt;
&lt;br /&gt;
I&#39;ll update this post with the exact commands later on :)&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/1151954467587591158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/tfexe-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1151954467587591158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1151954467587591158'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/tfexe-commands.html' title='TF.exe commands'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-4318403964141720098</id><published>2012-02-15T06:28:00.000-08:00</published><updated>2012-02-22T01:58:45.462-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Redirecting PowerShell script output to a file</title><content type='html'>I just wanted to redirect my PowerShell script output to a file, and at the same time see what&#39;s being written to the file. &lt;br /&gt;
&lt;br /&gt;
This command does the trick:&lt;br /&gt;
&amp;nbsp;D:\Scripts\Sample.ps1 &lt;strong&gt;2&amp;gt;&amp;amp;1 |Tee-Object&lt;/strong&gt; &lt;strong&gt;-File&lt;/strong&gt; D:\Logs\myScriptLog.log
&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/3822650/how-can-i-output-handbrake-output-to-both-the-screen-and-to-a-file&quot;&gt;http://stackoverflow.com/questions/3822650/how-can-i-output-handbrake-output-to-both-the-screen-and-to-a-file&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/4318403964141720098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/redirecting-powershell-script-output-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/4318403964141720098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/4318403964141720098'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/redirecting-powershell-script-output-to.html' title='Redirecting PowerShell script output to a file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-3070946696768271494</id><published>2012-02-15T03:11:00.000-08:00</published><updated>2012-02-22T01:58:54.529-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Restoring default icon for .dll files</title><content type='html'>I opened some .dll and .pdb files in Notepad, and now their icons was changed, and the recommended program is now Notepad. Not something that I want :)

&lt;br /&gt;
&lt;br /&gt;
To fix this, I did these steps. I think the combination of these steps worked
&lt;br /&gt;
&lt;br /&gt;
1) Opened regedit and browsed to HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\filetype\OpenWithList 
   &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; Removed all values under the OpenWithList key. Retained only the (Default) value
   &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; Removed the UserChoice key&lt;br /&gt;
&lt;br /&gt;
2) Lastly, opened up command prompt as an Administrator, and ran &quot;assoc .dll=dllfile&quot;


&lt;br /&gt;
&lt;br /&gt;
References: 
http://technet.microsoft.com/en-us/magazine/ee851670.aspx
&lt;a href=&quot;http://answers.microsoft.com/en-us/windows/forum/windows_vista-files/restore-default-file-icon-of-file-types-dll-and/6917a74b-2f99-44ed-86a3-7bd52d240b7e&quot;&gt;http://answers.microsoft.com/en-us/windows/forum/windows_vista-files/restore-default-file-icon-of-file-types-dll-and/6917a74b-2f99-44ed-86a3-7bd52d240b7e&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/3070946696768271494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/restoring-default-icon-for-dll-files.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/3070946696768271494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/3070946696768271494'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/restoring-default-icon-for-dll-files.html' title='Restoring default icon for .dll files'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-1786556927406586919</id><published>2012-02-08T05:15:00.000-08:00</published><updated>2012-02-08T06:07:24.919-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>PowerShell Cmdlets</title><content type='html'>Here are some PowerShell cmdlets that others might find helpful (as they are very much helpful to me). For more details, you may refer to http://technet.microsoft.com/en-us/library/ee156818.aspx.&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;120&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;strong&gt;Cmdlet&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;strong&gt;Usage&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;strong&gt;Example&lt;/strong&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Get-ChildItem&lt;/td&gt;
&lt;td&gt;Returns items in the specified folder&lt;/td&gt;
&lt;td&gt;Get-ChildItem $folder -include *.cs -force -recurse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Copy-Item (cpi)&lt;/td&gt;
&lt;td&gt;Copy files or folders&lt;/td&gt;
&lt;td&gt;Copy-Item $folder/$file -force -recurse&lt;br /&gt;
cpi $folder/$file -force -recurse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remove-Item (ri)&lt;/td&gt;
&lt;td&gt;Delete files or folders&lt;/td&gt;
&lt;td&gt;Remove-Item $folder -force -recurse&lt;br /&gt;
ri $file -force&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New-Item (ni)&lt;/td&gt;
&lt;td&gt;Create new files or folders&lt;/td&gt;
&lt;td&gt;New-Item $folder -type directory&lt;br /&gt;
ni $file -type file -force&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invoke-Item (ii)&lt;/td&gt;
&lt;td&gt;Run executable file or open a file. Alternatively prefix the script with an ampersand (&amp;amp;) and make sure to enclose parameters with spaces in double quotes&lt;/td&gt;
&lt;td&gt;Invoke-Item $script&lt;br /&gt;
ii $script&lt;br /&gt;
&amp;amp; $script &quot;parameter1&quot; &quot;parameter2&quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Get-Location (gl)&lt;/td&gt;
&lt;td&gt;Returns the current folder&lt;/td&gt;
&lt;td&gt;$currentDirectory = Get-Location&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Set-Location (sl)&lt;/td&gt;
&lt;td&gt;Change the current folder&lt;/td&gt;
&lt;td&gt;Set-Location $newFolder&lt;br /&gt;
sl $newFolder&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/1786556927406586919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/powershell-cmdlets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1786556927406586919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/1786556927406586919'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/powershell-cmdlets.html' title='PowerShell Cmdlets'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-196434701072161903</id><published>2012-02-08T01:45:00.000-08:00</published><updated>2012-02-22T01:58:11.532-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Running my very first PowerShell script</title><content type='html'>Ok, I browsed through the cheat sheet, and I feel that I am now ready to create my very first simple PowerShell script.&lt;br /&gt;
&lt;br /&gt;
Opened up notepad to print a simple &quot;Hello, World!&quot; message.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8F5r0r8xDydE7TvLpXXx-1Ce7ysZjGuF-9Uif9GpezqgedsoeowIGoogIUWj9w8Ltd5PqvxjW6vMUnb_Aw99Rpogb_efRTkS47OsgvDj9mA2X4vsmA5j1Kz2bypkUFl3U29dYWwhMpcM/s1600/Powershell1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;101&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8F5r0r8xDydE7TvLpXXx-1Ce7ysZjGuF-9Uif9GpezqgedsoeowIGoogIUWj9w8Ltd5PqvxjW6vMUnb_Aw99Rpogb_efRTkS47OsgvDj9mA2X4vsmA5j1Kz2bypkUFl3U29dYWwhMpcM/s200/Powershell1.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Saved the file as sample.ps1, run Windows Powershell, changed my folder to where the script is, and ran &lt;strong&gt;sample.ps1&lt;/strong&gt;. What I got were errors:&lt;br /&gt;
&lt;br /&gt;
&lt;div div=&quot;&quot; style=&quot;background: white; border: 3px solid orange; padding: 5px;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;File C:\scripts\sample.ps1 &lt;span style=&quot;background-color: yellow;&quot;&gt;cannot be loaded because the execution of scripts is disabled on this system&lt;/span&gt;. Please see &quot;get-&lt;br /&gt;help about_signing&quot; for more details.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&lt;br /&gt;
&lt;div div=&quot;&quot; style=&quot;background: white; border: 3px solid orange; padding: 5px;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;PS C:\scripts&amp;gt; sample.ps1&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;The term &#39;sample.ps1&#39; is not recognized as the name of a cmdlet, function, script file, or operable program&lt;/span&gt;. Check the&lt;br /&gt;spelling of the name, or if a path was included, verify that the path is correct and try again.&lt;br /&gt;At line:1 char:11&lt;br /&gt;+ sample.ps1 &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ObjectNotFound: (sample.ps1:String) [], CommandNotFoundException&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : CommandNotFoundException&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Suggestion [3,General]: The command sample.ps1 was not found, but does exist in the current location. Windows PowerShell&lt;br /&gt;&amp;nbsp;doesn&#39;t load commands from the current location by default. If you trust this command, instead type &quot;.\sample.ps1&quot;. See&lt;br /&gt;&amp;nbsp;&quot;get-help about_Command_Precedence&quot; for more details.&lt;br /&gt;PS C:\scripts&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
It turns out that running a PowerShell isn&#39;t&amp;nbsp;how we&#39;re used to in running applications. &amp;nbsp;Here&#39;s how to successfully run the script:&lt;br /&gt;
1) Set the execution policy to &lt;strong&gt;RemoteSigned &lt;/strong&gt;so you can run scripts, as the default is &lt;strong&gt;Restricted.&lt;/strong&gt;&lt;br /&gt;
2) As&amp;nbsp; recommended by the error message above, we need to run the script indicating it&#39;s&amp;nbsp;&lt;strong&gt;full path&lt;/strong&gt;, or if you&#39;re in the same folder where the script is, &lt;strong&gt;prefix the script name with &quot;.\&quot;&lt;/strong&gt;&lt;br /&gt;
3) Now if you want to run the script using the full path, and the path happens to have spaces (like C:\My Scripts\sample.ps1), then you&#39;ll run into the second error message above. If this is the case, make sure to &lt;strong&gt;enclose the full path with double quotes&lt;/strong&gt; and &lt;strong&gt;prefix it with an ampersand (&amp;amp;)&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div div=&quot;&quot; style=&quot;background: white; border: 3px solid orange; padding: 5px;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;PS C:\ scripts&amp;gt; &lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;amp; &quot;C:\My Scripts\sample.ps1&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference: &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ee176949.aspx&quot;&gt;http://technet.microsoft.com/en-us/library/ee176949.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/196434701072161903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/running-my-very-first-powershell-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/196434701072161903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/196434701072161903'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/running-my-very-first-powershell-script.html' title='Running my very first PowerShell script'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8F5r0r8xDydE7TvLpXXx-1Ce7ysZjGuF-9Uif9GpezqgedsoeowIGoogIUWj9w8Ltd5PqvxjW6vMUnb_Aw99Rpogb_efRTkS47OsgvDj9mA2X4vsmA5j1Kz2bypkUFl3U29dYWwhMpcM/s72-c/Powershell1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-673756827794901223</id><published>2012-02-08T00:43:00.000-08:00</published><updated>2012-02-08T00:44:27.292-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>Learning Windows PowerShell</title><content type='html'>Now I need to do some Windows scripting, and will have to learn Windows PowerShell. I found a good initial reference which is a cheat sheet that you can download from &lt;a href=&quot;http://www.dzone.com/links/index.html&quot; target=&quot;_blank&quot;&gt;Developer Zone&lt;/a&gt;. You will have to register first (free) before you can download this pdf. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://refcardz.dzone.com/refcardz/windows-powershell&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgMNO-wfsY_3JpOXDkh1aeoRvt_io8mG93oUuF69yTnJbh6Ll3lfDx7FbGsy6war-20o8ljQvfuWD-LBmSWWyjAwMjuv37xoMFdkekvkXIrLOmURjYfnhK8v4MLsb2NwT0N26J-HOet0Q/s1600/WindowsPowerShell+Cheat+Sheet.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Download: &lt;a href=&quot;http://refcardz.dzone.com/refcardz/windows-powershell&quot;&gt;http://refcardz.dzone.com/refcardz/windows-powershell&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Reference: &lt;a href=&quot;http://blogs.msdn.com/b/powershell/archive/2008/05/30/new-free-windows-powershell-quick-reference-card.aspx&quot;&gt;http://blogs.msdn.com/b/powershell/archive/2008/05/30/new-free-windows-powershell-quick-reference-card.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*joychua97</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/673756827794901223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/learning-windows-powershell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/673756827794901223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/673756827794901223'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/learning-windows-powershell.html' title='Learning Windows PowerShell'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgMNO-wfsY_3JpOXDkh1aeoRvt_io8mG93oUuF69yTnJbh6Ll3lfDx7FbGsy6war-20o8ljQvfuWD-LBmSWWyjAwMjuv37xoMFdkekvkXIrLOmURjYfnhK8v4MLsb2NwT0N26J-HOet0Q/s72-c/WindowsPowerShell+Cheat+Sheet.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-2577686417264757747</id><published>2012-02-07T23:54:00.000-08:00</published><updated>2012-02-08T00:14:44.960-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSBuild"/><category scheme="http://www.blogger.com/atom/ns#" term="TFS 2010"/><title type='text'>Microsoft.Silverlight.CSharp.targets was not found</title><content type='html'>&lt;span style=&quot;font-family: Verdana;&quot;&gt;Here is the error that I was mentioning in my previous post.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;The imported project &lt;strong&gt;&quot;C:\Program Files\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets&quot; was not found&lt;/strong&gt;. Confirm that the path in the &amp;lt;Import&amp;gt; declaration is correct, and that the file exists on disk.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;strong&gt;Resolution:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;1) If there are multiple build servers, determine which server is being used. You can do this by queueing a new build with &lt;strong&gt;Logging Verbosity&lt;/strong&gt; set to &quot;&lt;strong&gt;Diagnostic&lt;/strong&gt;&quot;. This will also show the values of the MSBuild variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild&lt;br /&gt;MSBuildExtensionsPath64 = C:\Program Files\MSBuild&lt;br /&gt;MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt;COMPUTERNAME = &amp;lt;computer name&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;div&gt;
&lt;/div&gt;
2) Check which variable is defined in the project (example line below) and verify if the file exists. Also check if &lt;strong&gt;Silverlight 4 SDK&lt;/strong&gt; is installed in the build server.&lt;br /&gt;
&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Import&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Project&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;$&lt;span style=&quot;background: yellow;&quot;&gt;(MSBuildExtensionsPath32)\&lt;/span&gt;Microsoft\Silverlight\$(SilverlightVersi&lt;wbr&gt;&lt;/wbr&gt;on)\Microsoft.Silverlight.CSharp.targets&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;
3) If the file doesn&#39;t exist, install Silverlight 4 SDK in the build server, and that should solve it. Note that the build server doesn&#39;t have Visual Studio, and the Silverlight SDK installed without problems.&lt;br /&gt;
&lt;br /&gt;
*joychua97&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/2577686417264757747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/microsoftsilverlightcsharptargets-was.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/2577686417264757747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/2577686417264757747'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/microsoftsilverlightcsharptargets-was.html' title='Microsoft.Silverlight.CSharp.targets was not found'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5452819673390172475.post-8316597586597919973</id><published>2012-02-07T23:50:00.000-08:00</published><updated>2012-02-08T00:14:31.159-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSBuild"/><category scheme="http://www.blogger.com/atom/ns#" term="TFS 2010"/><title type='text'>Fixing &quot;The Silverlight 4 SDK is not installed&quot; error</title><content type='html'>&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;I need to troubleshoot a build error (will have a different post once I resolve that one), so I created a sample Silverlight application. It built and ran successfully in my machine, although I got the following error when I ran a build. Note that the build server already has Silverlight 4 SDK installed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.&lt;span style=&quot;background-color: white;&quot;&gt;Silverlight.Common.targets (104): &lt;strong&gt;The Silverlight 4 SDK is not installed.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Looking around, they said that &quot;Silverlight projects cannot be built by 64-bit MSBuild.&quot; &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;To resolve this:&lt;/strong&gt;&lt;br /&gt;
1) Edit your &lt;strong&gt;Build Definition&lt;/strong&gt;, and go to the &lt;strong&gt;Process&lt;/strong&gt; tab&lt;br /&gt;
2) Expand the &quot;&lt;strong&gt;3. Advanced&lt;/strong&gt;&quot; section and set the &quot;&lt;strong&gt;MSBuild Platform&lt;/strong&gt;&quot; value to &quot;&lt;strong&gt;x86&lt;/strong&gt;&quot;&lt;br /&gt;
3) Save the Build Definition.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioTwbIuhChz6OSpmanLl9dsSW5ybYYamMesUg9quQjTYpTGDGEbsKrjcYSR9M8oBvYgaTu-jtz4a4LDtrF3o5ujAK6bdvpQHJAgCev2h8vdeYAR0hyphenhyphenIVPSsNSgmjQtioN2y_vi04JYO8o/s1600/BuildDefinition1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;257&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioTwbIuhChz6OSpmanLl9dsSW5ybYYamMesUg9quQjTYpTGDGEbsKrjcYSR9M8oBvYgaTu-jtz4a4LDtrF3o5ujAK6bdvpQHJAgCev2h8vdeYAR0hyphenhyphenIVPSsNSgmjQtioN2y_vi04JYO8o/s640/BuildDefinition1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Changing the MSBuild Platform to x86&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference: &lt;a href=&quot;http://social.msdn.microsoft.com/Forums/en/msbuild/thread/20a742a1-b99c-4638-8590-9a9d6a95fb69&quot;&gt;http://social.msdn.microsoft.com/Forums/en/msbuild/thread/20a742a1-b99c-4638-8590-9a9d6a95fb69&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now I can move on to the original build error that I need to work on :)&lt;br /&gt;
&lt;br /&gt;
*joychua97&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://joychua97.blogspot.com/feeds/8316597586597919973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://joychua97.blogspot.com/2012/02/fixing-silverlight-4-sdk-is-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/8316597586597919973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5452819673390172475/posts/default/8316597586597919973'/><link rel='alternate' type='text/html' href='http://joychua97.blogspot.com/2012/02/fixing-silverlight-4-sdk-is-not.html' title='Fixing &quot;The Silverlight 4 SDK is not installed&quot; error'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04820040254196220090</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioTwbIuhChz6OSpmanLl9dsSW5ybYYamMesUg9quQjTYpTGDGEbsKrjcYSR9M8oBvYgaTu-jtz4a4LDtrF3o5ujAK6bdvpQHJAgCev2h8vdeYAR0hyphenhyphenIVPSsNSgmjQtioN2y_vi04JYO8o/s72-c/BuildDefinition1.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>