Saturday, September 17, 2016

New Project Connected to BitBucket Git Repo

(Using a Web API project)
Create project in VS2015 selecting "Create new Git repository" checkbox.
Click on Team Explorer Home toolbar button.
Click on Sync button.
Create repo in BitBucket.
Under "Publish to Remote Repository", click "Publish Git Repo"
Get URL to BB repo under Command Line link "I'm starting from scratch"
Paste then click "Publish"
Now click Sync, and with little or no indication of any progress you should see the files in BB.
You can change a file and check in then sync and it should appear in BB (or actually, I think you may need to put a change in, not sure)

Sunday, January 17, 2016

Android Links
Home (getting started)
Material Design
Designing Effective Navigation (Android Developers)
Marshmallow 6
Lollipop 5
KitKat 4.4 - 4.4.4, 4.4W - 4.4W.2
Jelly Bean 4.1 - 4.3.1 (S3 mini - 4.1.2)

Wednesday, October 28, 2015

Uninstall Visual Studio 2015 Enterprise

I had a bad install of Visual Studio 2015 Enterprise (iso from MSDN Subscription) and it would not run or uninstall, even with /uninstall /force.
Some of the error messages:
"Setup blocked"
"Failed to download the update xml file..."
This tool did the trick, it tells you where all of the .msi files are so you can uninstall Visual Studio bit-by-bit. All of the uninstalls worked. I probably missed a few, but when then I did the web install and selected uninstall and it uninstalled cleanly. I then was able to do a full web install that went perfectly.
Thanks to Aaron Stebner.

Sunday, September 6, 2015

Git Setup and Configuration

Configuring git for KDiff3
Add to .gitconfig (located C:\Users\Tim):

    tool = kdiff3
    prompt = false
[difftool "kdiff3"]
    path = C:/Program Files/KDiff3/kdiff3.exe
    trustexitcode = true
    tool = kdiff3
[mergetool "kdiff3"]
    path = C:/Program Files/KDiff3/kdiff3.exe
    keepbackup = false
    trustexitcode = true

then run it using >git difftool .\folder\Web.config
yes, using quotes to deal with the spaces in program files in .gitconfig file screws it up. Don't use quotes.

Using Console2
Scott Hanselman's blog post
I put a copy of the Console config file in SpiderOak under Dev/Git.

Powershell Execution Policy
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

Making Powershell Readable
add to .gitconfig
    ui = true
[color "status"]
    changed = red bold reverse
    untracked = red bold reverse
    added = green bold
[color "branch"]
    current = green bold
(see copy of config file in SpiderOak)

Credential Caching
Avoid having to enter password (just install it, and it will prompt you once, then you're good)

Getting set up in a new environment (git w/ PShell, PsGet, Posh-Git)
Must-have git aliases

 email =
 name = Tim

Sunday, August 23, 2015


Don't use ASP.NET MVC 4 Web API project template, it has all kinds of non-web service crap in it.

Use "ASP.NET Web Application" under Web, select "Empty" project and check the Web API checkbox. It will register a default route template and if you create a new controller you'll have a working service.

Saturday, August 8, 2015