﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/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/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"><channel><title>Developer docs by Indraneel Pole : Visual Studio</title><link />http://developers.de/blogs/indraneel/archive/tags/Visual+Studio/default.aspx<description>Tags: Visual Studio</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>Function overloading in TypeScript</title><link />http://developers.de/blogs/indraneel/archive/2017/02/15/function-overloading-in-typescript.aspx<pubdate>Wed, 15 Feb 2017 13:37:29 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1805979</guid><dc:creator>Indraneel Pole</dc:creator><slash:comments>66</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/indraneel/rsscomments.aspx?PostID=1805979</wfw:commentrss><comments>http://developers.de/blogs/indraneel/archive/2017/02/15/function-overloading-in-typescript.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I come from C# development background, and thus things like method overloading comes to my mind naturally when tackling a certain type of problem. However, when coding in languages like JavaScript, this becomes a problem.&amp;#160; &lt;/p&gt;  &lt;p&gt;As TypeScript compiles into JavaScript, this becomes a problem of TypeScript as well. One can eventually achieve function overloading in TypeScript but it is quite a work and frankly a bit awkward.&lt;/p&gt;  &lt;p&gt;However if you absolutely have to do Function overloading in typescript, here is how to do it. Lets say you have function called testFunction and you want to overload it n times. Then you have to define this function n+1 times. Here is the code snippet of function testFunction with two overloads.&lt;/p&gt;  &lt;div id="codeSnippetWrapper" style="font-size:8pt;overflow:auto;cursor:text;border-top:silver 1px solid;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;border-right:silver 1px solid;width:97.5%;border-bottom:silver 1px solid;padding-bottom:4px;direction:ltr;text-align:left;padding-top:4px;padding-left:4px;border-left:silver 1px solid;margin:20px 0px 10px;line-height:12pt;padding-right:4px;max-height:200px;background-color:#f4f4f4;"&gt;   &lt;div id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;     &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum1" style="color:#606060;"&gt;   1:&lt;/span&gt;&amp;#160; &lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum2" style="color:#606060;"&gt;   2:&lt;/span&gt; testFunction(param1: &lt;span style="color:#0000ff;"&gt;string&lt;/span&gt; ,param2:&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;):&lt;span style="color:#0000ff;"&gt;void&lt;/span&gt;;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum3" style="color:#606060;"&gt;   3:&lt;/span&gt; testFunction(param1:&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;,param2:number):&lt;span style="color:#0000ff;"&gt;void&lt;/span&gt;;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum4" style="color:#606060;"&gt;   4:&lt;/span&gt;&amp;#160; &lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum5" style="color:#606060;"&gt;   5:&lt;/span&gt; testFunction(param1:&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;,param2:any):&lt;span style="color:#0000ff;"&gt;void&lt;/span&gt;{&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum6" style="color:#606060;"&gt;   6:&lt;/span&gt;     &lt;span style="color:#0000ff;"&gt;if&lt;/span&gt;(&lt;span style="color:#0000ff;"&gt;typeof&lt;/span&gt; param2==&lt;span style="color:#006080;"&gt;&amp;quot;string&amp;quot;&lt;/span&gt;){&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum7" style="color:#606060;"&gt;   7:&lt;/span&gt;         &lt;span style="color:#008000;"&gt;//Do what you want to do in first function&lt;/span&gt;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum8" style="color:#606060;"&gt;   8:&lt;/span&gt;     }&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum9" style="color:#606060;"&gt;   9:&lt;/span&gt;     &lt;span style="color:#0000ff;"&gt;else&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;if&lt;/span&gt;(&lt;span style="color:#0000ff;"&gt;typeof&lt;/span&gt; param2==&lt;span style="color:#006080;"&gt;&amp;quot;number&amp;quot;&lt;/span&gt;){&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum10" style="color:#606060;"&gt;  10:&lt;/span&gt;         &lt;span style="color:#008000;"&gt;//Do what you want to do in second function&lt;/span&gt;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum11" style="color:#606060;"&gt;  11:&lt;/span&gt;     }&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum12" style="color:#606060;"&gt;  12:&lt;/span&gt; }&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;So basically first you have to declare both the function and then write third function that checks which function is called based on the type of the parameter. &lt;/p&gt;

&lt;p&gt;Now lets say you have to do it with one and two parameters respectively. That is also possible - &lt;/p&gt;

&lt;div id="codeSnippetWrapper" style="font-size:8pt;overflow:auto;cursor:text;border-top:silver 1px solid;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;border-right:silver 1px solid;width:97.5%;border-bottom:silver 1px solid;padding-bottom:4px;direction:ltr;text-align:left;padding-top:4px;padding-left:4px;border-left:silver 1px solid;margin:20px 0px 10px;line-height:12pt;padding-right:4px;max-height:200px;background-color:#f4f4f4;"&gt;
  &lt;div id="codeSnippet" style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;
    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum1" style="color:#606060;"&gt;   1:&lt;/span&gt; testFunction(param1:number):&lt;span style="color:#0000ff;"&gt;void&lt;/span&gt;;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum2" style="color:#606060;"&gt;   2:&lt;/span&gt; testFunction(param1:&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;,param2:&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;):&lt;span style="color:#0000ff;"&gt;void&lt;/span&gt;;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum3" style="color:#606060;"&gt;   3:&lt;/span&gt;&amp;#160; &lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum4" style="color:#606060;"&gt;   4:&lt;/span&gt; testFunction(param1:any,param2?:&lt;span style="color:#0000ff;"&gt;string&lt;/span&gt;):&lt;span style="color:#0000ff;"&gt;void&lt;/span&gt;{&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum5" style="color:#606060;"&gt;   5:&lt;/span&gt;     &lt;span style="color:#0000ff;"&gt;if&lt;/span&gt;(&lt;span style="color:#0000ff;"&gt;typeof&lt;/span&gt; param1 ==&lt;span style="color:#006080;"&gt;&amp;quot;number&amp;quot;&lt;/span&gt;){&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum6" style="color:#606060;"&gt;   6:&lt;/span&gt;         &lt;span style="color:#008000;"&gt;//Do what you want to do in first function&lt;/span&gt;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum7" style="color:#606060;"&gt;   7:&lt;/span&gt;     }&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum8" style="color:#606060;"&gt;   8:&lt;/span&gt;     &lt;span style="color:#0000ff;"&gt;else&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;if&lt;/span&gt;(param2&amp;amp;&amp;amp;&lt;span style="color:#0000ff;"&gt;typeof&lt;/span&gt; param2 ==&lt;span style="color:#006080;"&gt;&amp;quot;string&amp;quot;&lt;/span&gt;){&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:white;"&gt;&lt;span id="lnum9" style="color:#606060;"&gt;   9:&lt;/span&gt;         &lt;span style="color:#008000;"&gt;//Do what you want to do in second function&lt;/span&gt;&lt;/pre&gt;


    &lt;pre style="border-top-style:none;font-size:8pt;overflow:visible;border-left-style:none;font-family:&amp;#39;Courier New&amp;#39;, courier, monospace;width:100%;border-bottom-style:none;color:black;padding-bottom:0px;direction:ltr;text-align:left;padding-top:0px;border-right-style:none;padding-left:0px;margin:0em;line-height:12pt;padding-right:0px;background-color:#f4f4f4;"&gt;&lt;span id="lnum10" style="color:#606060;"&gt;  10:&lt;/span&gt;     }&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1805979" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/indraneel/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://developers.de/blogs/indraneel/archive/tags/TypeScript/default.aspx">TypeScript</category></item><item><title>Unity and Visual Studio Team Foundation Server–Why not all files from unity always checked in TFS?</title><link />http://developers.de/blogs/indraneel/archive/2016/10/06/unity-and-visual-studio-team-foundation-server-why-not-all-files-from-unity-always-checked-in-tfs.aspx<pubdate>Thu, 06 Oct 2016 12:40:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1800052</guid><dc:creator>Indraneel Pole</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/indraneel/rsscomments.aspx?PostID=1800052</wfw:commentrss><comments>http://developers.de/blogs/indraneel/archive/2016/10/06/unity-and-visual-studio-team-foundation-server-why-not-all-files-from-unity-always-checked-in-tfs.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am a traditional software developer who is dependent a lot on source code management systems like TFS and Git for project collaboration. However, lately my foray into Augmented Reality and HoloLens has taken me into the wild west of Unity and 3D game development and the source code management is not as simple here as one would like it to be.&lt;/p&gt;
&lt;p&gt;Now Unity is awesome and gives you a lot of controls to play around with 3D models, prefabs and what not. But as soon as you start checking in your code into source control, you have a huge problem of missing files, missing scenes and what not. I have spent hours and hours just trying to get the latest version of my Unity project from TFS and still missing vital files. So, here is the attempt to help someone out there who might still be facing the same issue in this same environment.&lt;/p&gt;
&lt;p&gt;To start with, the very first thing is, it is not possible to check-in the actual solution file to the TFS, because every time unity builds it, there is new solution file. Actually, it is not needed to check in as well.&lt;/p&gt;
&lt;p&gt;The second confusing road block is, if you are a traditional Visual Studio user, you are used to just right clicking on the solution or project and saying &amp;ldquo;get latest version&amp;rdquo; or &amp;ldquo;check-in&amp;rdquo;. However that is not how it happens with Unity bound projects. Because the project is recreated every time when you build it from unity, it is not source bound. So you have to go to Team Explorer and click on Pending changes to check in latest change. &lt;/p&gt;
&lt;p&gt;However, once you check-in, more often than not, some or other files, scripts, assets are missing in the source control. And this can be real pain in the ass. This is because whenever you create an asset, prefab, or script in the Unity, it is not by default added to your project in Visual Studio and in turns Team Explorer. To fix this, you have to make sure that the file you add to the project in the Unity is manually added to the TFS. To do so, after adding the file in the Unity, go to the respective folder in the Source Control Explorer inside Team Explorer, right click on the window, and then click on &amp;ldquo;Add items to folder&amp;rdquo;. Select the item you added in unity, click on Finish. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_1250A8F6.png"&gt;&lt;img height="189" width="244" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_thumb_5F00_0007E234.png" alt="image" border="0" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;float:none;padding-top:0px;padding-left:0px;margin-left:auto;border-left:0px;display:block;padding-right:0px;margin-right:auto;" title="image" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you will see this item in source control explorer. This is added to source control but not yet checked in. To check-in, right click on this item and select &amp;ldquo;check-in pending changes&amp;rdquo;. I know this is tiresome method to do so for every file you add through Unity, but that is how it is.&lt;/p&gt;
&lt;p&gt;Now, another thing is this huge library folder which contains a large number of meta files and you don&amp;rsquo;t know what to do with them. Well, thankfully you don&amp;rsquo;t need to take care of them, as in Unity there is an option which takes care of meta files and source control integration.&lt;/p&gt;
&lt;p&gt;Go to Unity &amp;ndash;&amp;gt; Edit &amp;ndash;&amp;gt; Project Settings &amp;ndash;&amp;gt; Editor. In inspector, under version control, select the mode to be Visible Meta Files. Also while we are at it, set the Asset serialization to Force Text. TFS is better at integrating text files to source control than the binary files. &lt;/p&gt;
&lt;p align="center"&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_5FECD576.png"&gt;&lt;img height="228" width="244" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_thumb_5F00_2AE04646.png" alt="image" border="0" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;display:inline;padding-right:0px;" title="image" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;This still doesn&amp;rsquo;t insure that you absolutely won&amp;rsquo;t miss some binding in the unity when you get the latest version from the TFS (Can tell you from my own experience) However, this at least makes sure that all your files are on TFS.&lt;/span&gt;&amp;nbsp;So I found out why I was missing some bindings finally. And here is why - Making the mode Visible Meta Files is not enough when you are dealing with the TFS. This will only ensure that you can see these meta files in your folder. However, to make sure that all bindings and information about your assets is available across all the systems that you are working with, you need to check in these files into source control explorer. Now they are not automatically added to souce control solution of your project, and you have to manually add them to your solution on Source Control. To do so, do what we have already done for normal asstes files. Go to Source Control Explorer in the Visual Studio. Go to the specific folder, right clicj and click on add items to the folder. Select Meta files, add them, and then check them in. That&amp;#39;s all. This is enough to make sure that your Unity 3d project is available completely on the Team Foundation Server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope it helps. &lt;img src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/wlEmoticon_2D00_smile_5F00_38B28C41.png" alt="Smile" style="border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;" class="wlEmoticon wlEmoticon-smile" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1800052" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/indraneel/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Team+Foundation+Server/default.aspx">Team Foundation Server</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Unity3d/default.aspx">Unity3d</category><category domain="http://developers.de/blogs/indraneel/archive/tags/HoloLens/default.aspx">HoloLens</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Unity/default.aspx">Unity</category></item><item><title>How to add icon to your Cordova App with Visual Studio Tools for Apache Cordova</title><link />http://developers.de/blogs/indraneel/archive/2016/06/02/how-to-add-icon-to-your-cordova-app-with-visual-studio-tools-for-apache-cordova.aspx<pubdate>Thu, 02 Jun 2016 14:45:36 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1790956</guid><dc:creator>Indraneel Pole</dc:creator><slash:comments>1</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/indraneel/rsscomments.aspx?PostID=1790956</wfw:commentrss><comments>http://developers.de/blogs/indraneel/archive/2016/06/02/how-to-add-icon-to-your-cordova-app-with-visual-studio-tools-for-apache-cordova.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Setting app icon is usually very straight forward task in application development, and thus should not require a dedicated blogpost for this. However, while using Apache Cordova in Visual Studio environment, it becomes slightly tricky.&lt;/p&gt;  &lt;p&gt;So, why is it tricky? That is because Visual Studio TACO (&lt;strong&gt;T&lt;/strong&gt;ools for &lt;strong&gt;A&lt;/strong&gt;pache &lt;strong&gt;CO&lt;/strong&gt;rdova) shows the config.xml file differently than you usually see XML file. It shows all the important configurations such as plugins, version, name of the application etc. in a user friendly interface - &lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_190E43EF.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;float:none;padding-top:0px;padding-left:0px;margin-left:auto;border-left:0px;display:block;padding-right:0px;margin-right:auto;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_thumb_5F00_58D82A74.png" width="349" height="162" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;However this doesn’t show where the icon should be set. To do so, you need to see the actual XML code and make changes there.&lt;/p&gt;  &lt;p&gt;First, add the icon image in your application’s res folder under the platform that you are using. for me it is Android. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_1FC14D72.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;float:none;padding-top:0px;padding-left:0px;margin-left:auto;border-left:0px;display:block;padding-right:0px;margin-right:auto;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_thumb_5F00_7FA640B4.png" width="244" height="222" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once that is done, right click on config.xml and click on view code (Can also be done with F7) Now here, inside every platform attribute, you will have an icon attribute. Add your icon path as source here. You can optionally select density (For Android) or width and height (For iOS and Windows).&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_468F63B2.png"&gt;&lt;img title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;float:none;padding-top:0px;padding-left:0px;margin-left:auto;border-left:0px;display:block;padding-right:0px;margin-right:auto;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_thumb_5F00_7887043C.png" width="244" height="43" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;And that’s all. The icon is set for the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1790956" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/indraneel/archive/tags/Cordova/default.aspx">Cordova</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Cross+platform+development/default.aspx">Cross platform development</category><category domain="http://developers.de/blogs/indraneel/archive/tags/ApacheCordova/default.aspx">ApacheCordova</category></item><item><title>Hiding notification bar for Android Apps using Visual Studio tools for Apache Cordova</title><link />http://developers.de/blogs/indraneel/archive/2016/01/23/hiding-notification-bar-for-android-apps-using-visual-studio-tools-for-apache-cordova.aspx<pubdate>Sat, 23 Jan 2016 17:32:09 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1700431</guid><dc:creator>Indraneel Pole</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/indraneel/rsscomments.aspx?PostID=1700431</wfw:commentrss><comments>http://developers.de/blogs/indraneel/archive/2016/01/23/hiding-notification-bar-for-android-apps-using-visual-studio-tools-for-apache-cordova.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;While making your Android app full-screen (hiding the notification bar on the top) is quite easy in the Native environment where you can simply add the configuration in Manifest.xml file, if you are doing the cross-platform application development using some tool such as Apache Cordova, things become a little bit trickier.&lt;/p&gt;  &lt;p&gt;I am using EXT JS and Sencha Touch as the web framework for my Mobile Application and Cordova just as a platform for compilation, peripheral support and so on. So my first idea was to look for the configuration in Sencha Touch framework, however a simple search on Sencha Forum showed me that it is not possible to do this through Sencha as Ext JS does not provide any meta tag for this, and is dependent on UI’s web view to do this. It is possible to access the manifest.xml file using Sencha CMD, but if you are using Sencha Touch with Cordova in Visual Studio, and you are not using Sencha CMD, things become tricky.&lt;/p&gt;  &lt;p&gt;Thankfully, Cordova has made it very easy to do so. All you have to do is, go to config.xml file in of your solution. If you use Visual Studio tools for Apache Cordova, you will see something like this -&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/Untitled_5F00_0D70FFC2.png"&gt;&lt;img title="Untitled" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="Untitled" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/Untitled_5F00_thumb_5F00_0651C34A.png" width="316" height="198" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You simply need to select the Fullscreen option to yes or no, and it will make the desired change for you. If you want to hide the navigation bar select yes, otherwise simply select no (It is by default no in my knowledge).&lt;/p&gt;  &lt;p&gt;I hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1700431" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/indraneel/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Cordova/default.aspx">Cordova</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>JavaScript runtime error - Unable to add dynamic content</title><link />http://developers.de/blogs/indraneel/archive/2015/10/20/javascript-runtime-error-unable-to-add-dynamic-content.aspx<pubdate>Tue, 20 Oct 2015 15:35:27 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1585438</guid><dc:creator>Indraneel Pole</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/indraneel/rsscomments.aspx?PostID=1585438</wfw:commentrss><comments>http://developers.de/blogs/indraneel/archive/2015/10/20/javascript-runtime-error-unable-to-add-dynamic-content.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;So, lately I am working on Cordova (Or previously known as Phonegap) tools for Visual Studio to build a cross platform application using JavaScript and HTML. I imported some pre-written JavaScript code to Cordova and while it worked for me on Android Emulators, trying to run it on Windows Phone was a bit struggling. While trying to deploy it on Windows device, it threw an exception saying &amp;quot;JavaScript runtime error - Unable to add dynamic content.&amp;quot;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_69D78C44.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/indraneel/image_5F00_thumb_5F00_29A172CA.png" width="653" height="437" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After a little more probe (By commenting/uncommenting some lines basically), I realized that it is happening every time I try to dynamically load html page from JavaScript. (Which is also basically what the exception says but I had to do it myself).&lt;/p&gt;  &lt;p&gt;When I Googled about it, I found out that when you try to deploy some JS code on Windows devices, Microsoft uses some security principles to prevent un-sanitized markup which literally means adding HTML dynamically such as using innerHTML, outerHTML, document.write (That&amp;#39;s where exactly I stumbled) and so on will not be so easy in Cordova when using it on Windows devices. Thankfully I found an &lt;a href="https://msdn.microsoft.com/en-gb/library/windows/apps/hh767331.aspx"&gt;MSDN page&lt;/a&gt; that states how to tackle this issue. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How&lt;/strong&gt;: All the code that you are using to load HTML dynamically should be called inside a function of the &lt;a href="https://msdn.microsoft.com/en-gb/library/windows/apps/hh767332.aspx"&gt;MSApp&lt;/a&gt; called &lt;strong&gt;execUnsafeLocalFunction.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Syntax&lt;/strong&gt;: E.g. I want to use document.write inside my script.&lt;/p&gt;  &lt;p&gt;document.write(&amp;#39;&amp;lt;meta name=&amp;quot;&amp;#39;+example+&amp;#39;&amp;quot; content=&amp;quot;&amp;#39;+someContent+&amp;#39;&amp;quot;&amp;gt;&amp;#39;)&lt;/p&gt;  &lt;p&gt;This should be called inside:&lt;/p&gt;  &lt;p&gt;MSApp.execUnsafeLocalFunction(function () {    &lt;br /&gt;document.write(&amp;#39;&amp;lt;meta name=&amp;quot;&amp;#39;+example+&amp;#39;&amp;quot; content=&amp;quot;&amp;#39;+someContent+&amp;#39;&amp;quot;&amp;gt;&amp;#39;)     &lt;br /&gt;});&lt;/p&gt;  &lt;p&gt;And its works perfect!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1585438" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/indraneel/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Cordova/default.aspx">Cordova</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://developers.de/blogs/indraneel/archive/tags/Cross+platform+development/default.aspx">Cross platform development</category></item></channel></rss>