Posts

Using Visual Studio Online with GitHub

Visual Studio Online (VSO) requires your Git repository to be hosted in the VSO cloud . In other words, you cannot specify an URL such as https://github.mycompany.com/product/project.git, even if you want to use your existing Git repository. One solution is to set up the local repository to track two remotes. The following are the steps, using Git Bash commands. First, you add Visual Studio Online as the second remote. Go to the CODE page of your project in VSO, click the 'Clone' link. You will see the Git URL. Copy and paste it into the command similar to the following. $ git remote add vso https://mycompany.visualstudio.com/DefaultCollection/_git/project Now you should see two remotes. $ git remote origin vso If you open the .git\config file, you should see two remote sections. ... [remote "origin"] url = https:// github.mycompany.com/product/project .git fetch = +refs/heads/*:refs/remotes/origin/* ... [remote "vso"] url =  https...

The Web Development Puzzle

Building a website is easy. Building a good one is not. There are so many methodologies, technologies, and techniques available. And they are changing everyday. One can be forgiven for feeling overwhelmed. Here is my attempt to organize the information I find useful, as I embark on the journey in search for answers. It helps me to learn and understand. Maybe someone else would find it useful as well. This is not intended to be a road-map  as there are still many uncharted territories. It is more like solving a puzzle. First you find a few obvious pieces that fit together. You savor the small satisfaction and are motivated to do a little more. Hopefully, the big picture eventually emerges. Application Server I use ASP.NET MVC as the application server. Using areas to organize different functions of the site. When to use ViewBag, ViewData, or TempData Application Pool Identities Data Access Layer Entity Framework LINQ  ( Lambda Expressions , Extension M...

Showing the Toolbox

If you close the Toolbox (from where you drag various controls), it could be a monumental task trying to find it again. In fact, I still don't know where it is in Visual Studio 2008. Probably getting an earful of constructive feedback, in Visual Studio 2010, it’s at least made a little more prominent. You can find it at View | Toolbox . If you’re good at memorizing shortcuts, Ctrl+Alt+X works in both versions.

Adding projects to a solution

There’re times when you may need to manually edit a solution file. It helps to understand what happens behind the scenes. Here’s what changes (in .sln) as you add a project to a solution. ... Project(“{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}”) = “MyFolder”, “MyFolder\NewProject.csproj”, “{FD47D76F-4A5A-4CAD-8CD5-6E131DBC9A34}” EndProject ... Global  ...  GlobalSection(ProjectConfigurationPlatforms) = postSolution   ...   {FD47D76F-4A5A-4CAD-8CD5-6E131DBC9A34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU   {FD47D76F-4A5A-4CAD-8CD5-6E131DBC9A34}.Debug|Any CPU.Build.0 = Debug|Any CPU   {FD47D76F-4A5A-4CAD-8CD5-6E131DBC9A34}.Release|Any CPU.ActiveCfg = Release|Any CPU   {FD47D76F-4A5A-4CAD-8CD5-6E131DBC9A34}.Release|Any CPU.Build.0 = Release|Any CPU   ...  EndGlobalSection  ... EndGlobal