﻿<?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/"><channel><title>C# &amp; .NET technologies : Visual Studio 2013</title><link />http://developers.de/blogs/bahro/archive/tags/Visual+Studio+2013/default.aspx<description>Tags: Visual Studio 2013</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>Demos and Slides of my session about R and DataScience at ATD12 conference</title><link />http://developers.de/blogs/bahro/archive/2016/11/16/my-session-about-r-and-datascience-at-atd12-conference.aspx<pubdate>Wed, 16 Nov 2016 20:29:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1802505</guid><dc:creator>Bahrudin</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/bahro/rsscomments.aspx?PostID=1802505</wfw:commentrss><comments>http://developers.de/blogs/bahro/archive/2016/11/16/my-session-about-r-and-datascience-at-atd12-conference.aspx#comments</comments><description>&lt;p&gt;&lt;img width="800" alt="atd12_sl02.png" src="https://bhrnjica.files.wordpress.com/2016/11/atd12_sl02.png" class="alignnone size-full wp-image-6941" /&gt;
&lt;/p&gt;
&lt;p&gt;Today, I gave session at Advanced Technology Day conference in Zagreb. It was very excited to see full room of people at the presentation, mostly developers from .NET world interesting in R and Data Science. This is good sign that the Data Science and the R are becoming more and more popular at daily basis. Most popularity for the R will bring R Tool for Visual Studio, which means the R language became member of the family of the Visual Studio.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="361" width="481" alt="atd12_sl01.jpg" src="https://bhrnjica.files.wordpress.com/2016/11/atd12_sl01.jpg" class="  wp-image-6920 aligncenter" /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For those who was asking about my slides and demo sample here is the information:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Presentation slides can be downloaded &lt;a href="https://bhrnjica.files.wordpress.com/2016/11/r-m-r-tool-for-visual-studio-data-science-org.pptx"&gt;here&lt;/a&gt;,&lt;/li&gt;
&lt;li&gt;Source code of the demo is hosted at git hub at: &lt;a href="http://github.com/bhrnjica/R-Workshop"&gt;http://github.com/bhrnjica/R-Workshop&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;For more information about R , you can see my YouTube channel about R and Machine Learning at this &lt;a href="https://www.youtube.com/playlist?list=PLTk-S955yon38LAChqIeWuW03AEqu0hvF"&gt;link&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
See you next time!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1802505" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/bahro/archive/tags/.NET/default.aspx">.NET</category><category domain="http://developers.de/blogs/bahro/archive/tags/Visual+Studio+2013/default.aspx">Visual Studio 2013</category><category domain="http://developers.de/blogs/bahro/archive/tags/Visual+Studio+2015/default.aspx">Visual Studio 2015</category><category domain="http://developers.de/blogs/bahro/archive/tags/DataScience/default.aspx">DataScience</category><category domain="http://developers.de/blogs/bahro/archive/tags/R/default.aspx">R</category></item><item><title>error CS0433 for 'System.Windows.Automation' type</title><link />http://developers.de/blogs/bahro/archive/2015/06/16/error-cs0433-for-system-windows-automation-type.aspx<pubdate>Tue, 16 Jun 2015 15:41:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1362508</guid><dc:creator>Bahrudin</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/bahro/rsscomments.aspx?PostID=1362508</wfw:commentrss><comments>http://developers.de/blogs/bahro/archive/2015/06/16/error-cs0433-for-system-windows-automation-type.aspx#comments</comments><description>&lt;p&gt;&lt;a href="https://bhrnjica.files.wordpress.com/2015/06/vsissu2e.png"&gt;&lt;img src="https://bhrnjica.files.wordpress.com/2015/06/vsissu2e.png" alt="vsissu2e" class="alignnone wp-image-6295 size-full" height="223" width="1007" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Few days ago I had a strange issue in one of my Visual Studio 2013 solution.&amp;nbsp;The Test project required functionality of System.Windows.Automation, and I have added assembly UIAutomationClient. When&amp;nbsp;tried to run tests I got the folowing compiler error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;error CS0433: The type &amp;#39;System.Windows.Automation.AutomationElement&amp;#39; exists in both &amp;#39;c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PublicAssemblies\UIAComWrapper.dll&amp;#39; and &amp;#39;c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\UIAutomationClient.dll&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It was strange issue, because I didn&amp;#39;t add UiaComWrapper assembly. Tried to remove the assembly, but as soon I run test the previous error appeared.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://bhrnjica.files.wordpress.com/2015/06/vsissue.png"&gt;&lt;img src="https://bhrnjica.files.wordpress.com/2015/06/vsissue.png?w=300" alt="vsissue" class="alignnone wp-image-6296 size-medium" height="262" width="300" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;Fixing the issue&lt;/h3&gt;
&lt;p&gt;To fix this&amp;nbsp;issue we have to use &amp;quot;Reference Alias&amp;quot; which is specified &lt;a href="https://msdn.microsoft.com/en-us/library/ms173212.aspx"&gt;here&lt;/a&gt;. So for our assembly UIAutomatisationClient change the Alias from &amp;quot;global&amp;quot; to &amp;nbsp;&amp;quot;UIAutomationClientAlias&amp;quot;. See picture below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://bhrnjica.files.wordpress.com/2015/06/vsissuesl2.png"&gt;&lt;img src="https://bhrnjica.files.wordpress.com/2015/06/vsissuesl2.png?w=253" alt="vsissuesl2" class="alignnone wp-image-6297 size-medium" height="300" width="253" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now that we defined new alias, in the following text it is shown how to use it in your cs file. Open the cs file we have error.&lt;/p&gt;
&lt;p&gt;1. At the top opf the file put the folowing line:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="color:#0000ff;font-family:Consolas;font-size:x-small;"&gt;extern&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Consolas;"&gt;&lt;span&gt;&lt;span style="color:#0000ff;"&gt;alias&lt;/span&gt;&lt;/span&gt;&lt;span&gt; UIAutomationClientAlias;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2. Define using namespace from the new alias:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-family:Consolas;"&gt;&lt;span&gt;&lt;span style="color:#0000ff;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span&gt; Autom = UIAutomationClientAlias::System.Windows.Automation;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3. Now we can use all members from Automation class safely, and the compiler error is despaired.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://bhrnjica.files.wordpress.com/2015/06/vsissuesl3.png"&gt;&lt;img src="https://bhrnjica.files.wordpress.com/2015/06/vsissuesl3.png" alt="vsissuesl3" class="alignnone size-full wp-image-6298" height="279" width="604" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1362508" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/bahro/archive/tags/C_2300_+5.0/default.aspx">C# 5.0</category><category domain="http://developers.de/blogs/bahro/archive/tags/.NET/default.aspx">.NET</category><category domain="http://developers.de/blogs/bahro/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://developers.de/blogs/bahro/archive/tags/Visual+Studio+2013/default.aspx">Visual Studio 2013</category></item><item><title>How to run code daily at specific time in C# Part 2</title><link />http://developers.de/blogs/bahro/archive/2014/10/13/how-to-run-code-daily-at-specific-time-in-c-part-2.aspx<pubdate>Mon, 13 Oct 2014 05:30:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1093971</guid><dc:creator>Bahrudin</dc:creator><slash:comments>0</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/bahro/rsscomments.aspx?PostID=1093971</wfw:commentrss><comments>http://developers.de/blogs/bahro/archive/2014/10/13/how-to-run-code-daily-at-specific-time-in-c-part-2.aspx#comments</comments><description>&lt;p&gt;&lt;a href="https://bhrnjica.files.wordpress.com/2014/10/dailyruncode3.png"&gt;&lt;img class="alignnone size-full wp-image-6091" src="https://bhrnjica.files.wordpress.com/2014/10/dailyruncode3.png" alt="dailyruncode" height="331" width="604" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="text-align:justify;"&gt;Few months ago I wrote &lt;a href="http://bhrnjica.net/2014/01/30/how-to-run-the-code-daily-at-specific-time-in-c/"&gt;blog post&lt;/a&gt; about how to run code daily at specific time. I dint know that the post will be the most viewed post on my blog. Also there were several questions how to implement complete example. So today I have decided to write another post, and extend my previous post in order to answer thise question as well as to generalize this subject in to cool demo called Scheduler DEMO.&lt;/p&gt;
&lt;p style="text-align:justify;"&gt;The post is presenting simple Windows Forms application which calls a method for every minute, day, week, month or year. Also demo shows how to cancel the scheduler at any time.&lt;/p&gt;
&lt;p style="text-align:justify;"&gt;The picture above shows simple Windows Forms application with two  numeric control which you can set starting hour and minute for the scheduler. Next there is a button Start to activate timer for running code, as well as Cancel button to cancel the scheduler. When the time is come application writes the message on the Scheduler Log.&lt;/p&gt;
&lt;h2 style="text-align:justify;"&gt;Implementation of the scheduler&lt;/h2&gt;
&lt;p&gt;
Scheduler is started by clicking the Start button which is implemented with the following code:

/// &amp;lt;summary&amp;gt;
/// Setting up time for running the code
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name=&amp;quot;sender&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;
/// &amp;lt;param name=&amp;quot;e&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;
private void startBtn_Click(object sender, EventArgs e)
{
    //retrieve hour and minute from the form
    int hour = (int)numHours.Value;
    int minutes = (int)numMins.Value;
    //create next date which we need in order to run the code
    var dateNow = DateTime.Now;
    var date = new DateTime(dateNow.Year, dateNow.Month, dateNow.Day, hour, minutes, 0);
    listBox1.Items.Add(&amp;quot;**********Scheduler has been started!*****&amp;quot;);
    //get nex date the code need to run
    var nextDateValue=getNextDate(date,getScheduler());
    runCodeAt(nextDateValue, getScheduler());
}

When the time is defined then the &lt;span style="color:#3366ff;"&gt;&lt;i&gt;runCodeAt&lt;/i&gt; &lt;/span&gt;method is called which implementation can be like the following;

/// &amp;lt;summary&amp;gt;
/// Determine the timeSpan Dalay must wait before run the code
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name=&amp;quot;date&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;
/// &amp;lt;param name=&amp;quot;scheduler&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;
private void runCodeAt(DateTime date,Scheduler scheduler )
{
    m_ctSource = new CancellationTokenSource();
    var dateNow = DateTime.Now;
    TimeSpan ts;
    if (date &amp;gt; dateNow)
        ts = date - dateNow;
    else
    {
        date = getNextDate(date, scheduler);
        ts = date - dateNow;
    }
    //enable the progressbar
    prepareControlForStart();
    //waits certan time and run the code, in meantime you can cancel the task at anty time
    Task.Delay(ts).ContinueWith((x) =&amp;gt;
        {
            //run the code at the time
                methodToCall(date);
                //setup call next day
                runCodeAt(getNextDate(date, scheduler), scheduler);
        },m_ctSource.Token);
}

The method above creates the &lt;b&gt;&lt;span style="color:#3366ff;"&gt;cancelationToken&lt;/span&gt; &lt;/b&gt;needed for cancel the scheduler, calculate timeSpan - total waiting time, then when the time is come call the method &lt;i&gt;&lt;span style="color:#3366ff;"&gt;methodToCall&lt;/span&gt; &lt;/i&gt;and calculate the next time for running the scheduler.
This demo also shows how to wait certain amount of time without blocking the UI thread.
&lt;/p&gt;
&lt;p style="text-align:justify;"&gt;The full demo code can be found on OneDrive.
&lt;/p&gt;
&lt;p&gt;
[office src=&amp;quot;https://onedrive.live.com/embed?cid=8B11BBBF3F0ED903&amp;amp;resid=8B11BBBF3F0ED903%2152985&amp;amp;authkey=AFQ5j5iMRIpAhSI&amp;quot; width=&amp;quot;98&amp;quot; height=&amp;quot;120&amp;quot;]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1093971" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/bahro/archive/tags/C_2300_+5.0/default.aspx">C# 5.0</category><category domain="http://developers.de/blogs/bahro/archive/tags/.NET/default.aspx">.NET</category><category domain="http://developers.de/blogs/bahro/archive/tags/.NET+4.5/default.aspx">.NET 4.5</category><category domain="http://developers.de/blogs/bahro/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://developers.de/blogs/bahro/archive/tags/Visual+Studio+2013/default.aspx">Visual Studio 2013</category><category domain="http://developers.de/blogs/bahro/archive/tags/Scheduler/default.aspx">Scheduler</category></item><item><title>How to extract default file icon in WPF application</title><link />http://developers.de/blogs/bahro/archive/2014/05/28/how-to-extract-default-file-icon-in-wpf-application.aspx<pubdate>Wed, 28 May 2014 10:40:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:977186</guid><dc:creator>Bahrudin</dc:creator><slash:comments>1</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/bahro/rsscomments.aspx?PostID=977186</wfw:commentrss><comments>http://developers.de/blogs/bahro/archive/2014/05/28/how-to-extract-default-file-icon-in-wpf-application.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/documenticonsdemosl1.png"&gt;&lt;img class="alignnone size-full wp-image-5975" src="http://bhrnjica.files.wordpress.com/2014/05/documenticonsdemosl1.png" alt="documentIconsDemosl1" width="491" height="463" /&gt;&lt;/a&gt;
In Windows every file has default icon, and it is shown in&amp;nbsp;Windows Explorer while browsing files on disk. If you want to grab this icon in WPF application there are several ways. One of the solution is by using&amp;nbsp;&lt;strong&gt;ExtractAssociatedIcon&amp;nbsp;&lt;/strong&gt;from Icon class located in &lt;strong&gt;System.Drawing&lt;/strong&gt; namespace.
The following code shows how to extract default icon from the file specified by file name:
[sourcecode lang=&amp;quot;csharp&amp;quot;]
var sysicon = System.Drawing.Icon.ExtractAssociatedIcon(filePath);
var bmpSrc = System.Windows.Interop.Imaging.CreateBitmapSourceFromHIcon(
            sysicon.Handle,
            System.Windows.Int32Rect.Empty,
            System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());
sysicon.Dispose();
[/sourcecode]
Explanation of the code above is straightforward.First we need file path, then we need to call&amp;nbsp;&lt;strong&gt;Icon.ExtractAssociatedIcon(filePath)&lt;/strong&gt; to get Icon object. From the icon object we can create BitmapSource which can be show everywhere in the WPF application.
&amp;nbsp;
Complete source code demo can be found &lt;a href="https://onedrive.live.com/redir?resid=8B11BBBF3F0ED903!51431&amp;amp;authkey=!AJGm_aTzyhGnQVI&amp;amp;ithint=file%2c.zip"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=977186" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/bahro/archive/tags/C_2300_+5.0/default.aspx">C# 5.0</category><category domain="http://developers.de/blogs/bahro/archive/tags/.NET/default.aspx">.NET</category><category domain="http://developers.de/blogs/bahro/archive/tags/WPF/default.aspx">WPF</category><category domain="http://developers.de/blogs/bahro/archive/tags/.NET+4.5/default.aspx">.NET 4.5</category><category domain="http://developers.de/blogs/bahro/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://developers.de/blogs/bahro/archive/tags/Visual+Studio+2013/default.aspx">Visual Studio 2013</category></item><item><title>Configuring Visual Studio 2013 to use Git as Source Control</title><link />http://developers.de/blogs/bahro/archive/2014/05/07/configuring-visual-studio-2013-to-use-git-as-source-control.aspx<pubdate>Wed, 07 May 2014 19:54:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:944909</guid><dc:creator>Bahrudin</dc:creator><slash:comments>1</slash:comments><wfw:commentrss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://developers.de/blogs/bahro/rsscomments.aspx?PostID=944909</wfw:commentrss><comments>http://developers.de/blogs/bahro/archive/2014/05/07/configuring-visual-studio-2013-to-use-git-as-source-control.aspx#comments</comments><description>&lt;p&gt;Visual Studio 2013 has ability to integrate Git source control. The blog post will shows in details how to configure Visual Studio to use Git, with remote repository at git.com. Configuration can be divided in several parts.
1. Installing required softwares
2. Creating SSH key and uploading to Git server
3. Configuring local Git repository and sync with remote server
4. Check in and check out source code.
&lt;/p&gt;
&lt;h3&gt;Installing Git Extensions&lt;/h3&gt;
&lt;p&gt;
Only software you have to install is Git Extensions for Windows which you can find on:&amp;nbsp;&lt;a href="http://code.google.com/p/gitextensions/"&gt;http://code.google.com/p/gitextensions/&lt;/a&gt;
1. After you download Git Extension installer, start the installation process. The following images show &amp;nbsp;step during the installation process.
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl1.png"&gt;&lt;img class="alignnone size-medium wp-image-5932" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl1.png?w=300" alt="gitblog_inst_sl1" width="300" height="235" /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl2.png"&gt;&lt;img class="alignnone size-medium wp-image-5933" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl2.png?w=300" alt="gitblog_inst_sl3" width="300" height="234" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl2.png"&gt;&lt;/a&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl3.png"&gt;&lt;img class="alignnone size-medium wp-image-5934" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl3.png?w=300" alt="gitblog_inst_sl2" width="300" height="235" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl3.png"&gt;&lt;/a&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl4.png"&gt;&lt;img class="alignnone size-medium wp-image-5935" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl4.png?w=300" alt="gitblog_inst_sl4" width="300" height="235" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl4.png"&gt;&lt;/a&gt;
At this step,in some case you can get the error in the installation with the following message:
&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&amp;#39;Installation directory must be on local hard drive&amp;#39;&lt;/strong&gt;&lt;/span&gt;
&lt;span style="color:#000000;"&gt;In that case, open Command Prompt with Administrator priviledge, go to folder GitInstaller is downloaded and type the following command:&lt;/span&gt;
&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;msiexec /i GitExtensions.msi WIXUI_DONTVALIDATEPATH=&amp;quot;1&amp;quot;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;
&lt;span style="color:#000000;"&gt;where GitExtension.msi is the name of your installer.&lt;/span&gt;
Continue with installation:&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl5.png"&gt;&lt;img class="alignnone size-medium wp-image-5938" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl5.png?w=300" alt="gitblog_inst_sl7" width="300" height="235" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl5.png"&gt;&lt;/a&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl6.png"&gt;&lt;img class="alignnone size-medium wp-image-5939" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl6.png?w=300" alt="gitblog_inst_sl5" width="300" height="235" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl6.png"&gt;&lt;/a&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl7.png"&gt;&lt;img class="alignnone size-medium wp-image-5940" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl7.png?w=300" alt="gitblog_inst_sl6" width="300" height="146" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl7.png"&gt;&lt;/a&gt;
Now proceed with installation of two installers: KDiff and GIT. Follow the default setup options:&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl20.png"&gt;&lt;img class="alignnone size-medium wp-image-5941" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl20.png?w=300" alt="gitblog_inst_sl20" width="300" height="118" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl20.png"&gt;&lt;/a&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl14.png"&gt;&lt;img class="alignnone size-medium wp-image-5942" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl14.png?w=300" alt="gitblog_inst_sl14" width="300" height="118" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl14.png"&gt;&lt;/a&gt;
Finish the installation process:&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl22.png"&gt;&lt;img class="alignnone size-medium wp-image-5943" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl22.png?w=300" alt="gitblog_inst_sl22" width="300" height="238" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl22.png"&gt;&lt;/a&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl21.png"&gt;&lt;img class="alignnone size-medium wp-image-5944" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl21.png?w=300" alt="gitblog_inst_sl21" width="300" height="117" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&amp;nbsp;
&lt;h3&gt;Creating SSH key and uploading to Git server&lt;/h3&gt;
&lt;p&gt;
After you installed Git Extension open the Git Extention from Desktop :
Put UserName and Email to login information:&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl23.png"&gt;&lt;img class="alignnone size-medium wp-image-5949" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl23.png?w=300" alt="gitblog_inst_sl23" width="300" height="211" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl23.png"&gt;&lt;/a&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl23.png"&gt;&lt;img class="alignnone size-medium wp-image-5946" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl24.png?w=300" alt="gitblog_inst_sl24" width="300" height="211" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl23.png"&gt;&lt;/a&gt;
&amp;nbsp;
By clicking on OK button, Git Extension displays start screen. From Tools menu choose &amp;nbsp;Git Bash command line tool to create SSH key.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl25.png"&gt;&lt;img class="alignnone size-medium wp-image-5947" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl25.png?w=300" alt="gitblog_inst_sl25" width="300" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl25.png"&gt;&lt;/a&gt;
&amp;nbsp;
From the picture below follow the instruction how to create SSH Key.
type: ssh-keygen - rsa -C email@company.com, and press enter 4 times. By pressing Enter you accept default options.&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl27.png"&gt;&lt;img class="alignnone size-large wp-image-5948" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl27.png?w=604" alt="gitblog_inst_sl27" width="604" height="268" /&gt;&lt;/a&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;After you create the key, you have to add it to local agent.
1. First start local agent: &lt;strong&gt;&lt;span style="color:#ff0000;"&gt;exec ssh-agent Bash&lt;/span&gt;&lt;/strong&gt;
2. Type &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;ssh-add ~/.ssh/id_rsa&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl28.png"&gt;&lt;img class="alignnone size-large wp-image-5950" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl28.png?w=604" alt="gitblog_inst_sl28" width="604" height="268" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl28.png"&gt;&lt;/a&gt;
Add SSH key to GitHub
1. Open you Git Hub account
2. Go to Settings
3. Add SSH Tab
4. Press AddKey
5. Copy the Content of the id_rsa.pub (see picture below)
&amp;nbsp;
6. Paste to GitHub SSH key tab&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl301.png"&gt;&lt;img class="alignnone size-large wp-image-5956" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl301.png?w=604" alt="gitblog_inst_sl30" width="604" height="365" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl301.png"&gt;&lt;/a&gt;
You can test your account by typing &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;ssh-T git@github.com&lt;/strong&gt;&lt;/span&gt; to command line.&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl31.png"&gt;&lt;img class="alignnone size-large wp-image-5953" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl31.png?w=604" alt="gitblog_inst_sl31" width="604" height="143" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl31.png"&gt;&lt;/a&gt;
Now you are ready to use GitHub Source control.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;Configuring local Git repository and sync with remote server&lt;/h3&gt;
&lt;p&gt;
&amp;nbsp;
1. Define local repository path: C:/tfs/Git
2. Open GitExtensions: Open local repository:&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl32.png"&gt;&lt;img class="alignnone size-large wp-image-5958" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl32.png?w=604" alt="gitblog_inst_sl32" width="604" height="216" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl32.png"&gt;&lt;/a&gt;
&amp;nbsp;
2. Initialize local repository&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl33.png"&gt;&lt;img class="alignnone size-large wp-image-5959" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl33.png?w=604" alt="gitblog_inst_sl33" width="604" height="260" /&gt;&lt;/a&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;Setup Remote Repository by specifing Name and SSH path of the project:&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl34.png"&gt;&lt;img class="alignnone size-large wp-image-5960" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl34.png?w=604" alt="gitblog_inst_sl34" width="604" height="321" /&gt;&lt;/a&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;By pressing Save Changes from the last image, you setp the project and it is ready to be opened in Visula Studio.
Open Visual Studio 2013
Add local repository to Git
Double click on the project to get solution file to open:&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl351.png"&gt;&lt;img class="alignnone size-large wp-image-5963" src="http://bhrnjica.files.wordpress.com/2014/05/gitblog_inst_sl351.png?w=604" alt="gitblog_inst_sl35" width="604" height="356" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=944909" width="1" height="1"&gt;</description><category domain="http://developers.de/blogs/bahro/archive/tags/Windows+Azure/default.aspx">Windows Azure</category><category domain="http://developers.de/blogs/bahro/archive/tags/GitHub/default.aspx">GitHub</category><category domain="http://developers.de/blogs/bahro/archive/tags/Git/default.aspx">Git</category><category domain="http://developers.de/blogs/bahro/archive/tags/Visual+Studio+2013/default.aspx">Visual Studio 2013</category></item></channel></rss>