SharePoint Guy's Blog

Blog for my musings, learnings and various and sundry mental meanderings.

  • Global Git Parameters

    There are a couple of files that git uses to do its thing. The two main ones are the .gitconfig to configure the git client, the other is the .gitignore file that is uses to determine which files get included in the repository and which do not. If you do not want to recreate these files each time, or want to change any global values you can always edit the global files directly.

    For .gitignore the file is in the users base folder, in my case C:\Users\Robert, so the file is C:\Users\Robert\.gitignore. For *nix users the file will be ~/.gitignore. Since I often use Visual Studio as we as VS Code, I have added entries for folders and file specific to those programs. So I do not have to edit … more

  • Setting Up the Projects for DotNet Core Web Api – Revisited

    Before creating any projects we will create a new branch in git locally, then push it up to github.com. The following lines of code will accomplish this:

    git checkout -b Setup_Projectsgit push origin Setup_Projects

    After this the local and remote repositories will both have a branch named Setup_Projects.

    Create Projects

    Now we are ready to create the projects that will comprise our solution. From a high level view this is what it will all look like if opened in Visual Studio:

    One thing that might jump out at you is that there is a seemingly superfluous console application. I tend to include such a project to test various thing as I develop. I find it very useful in terms of playing … more

  • Setting up Project in git

    Since this will be setup in a git repository we will start there. The simplest way to do this is to go to github.com and create a new repository thusly: I am naming the new repo CoreWebApiPubs, as that is the tersest, and yet most complete name in that it has all the elements necessary to understand, at a glance, as to what it is. The other thing to notice is that towards the lower left I have chosen the VisualStudio .gitignore file. That is a lengthy file but covers anything that VS or another IDE, may generate, but is relevant in git, First off I open a Node.js command prompt. I use this command prompt since I have run into issues running npm, and other commands using a standard, or VS, … more

  • DotNet Core and Web Api's

    Since the dotnet core and Web Api frameworks are the new hot things I decided I would get up to speed with them by building a reference application utilizing both technologies. In the process I will document the required steps in the hope that it will serve someone else as a good starting point and provide a good reference point bringing together all the required pieces to tackle the basics. The data that will be served is from that much maligned, but invaluable, database called pubs. The reason for this is the simplicity.

    This application will be as loosely coupled as I can possibly do. For example the Entity Framework (EF) will have its own project, as will the repository, web api, plus … more

  • Introduction to My Blog

    Welcome to my blog. My main purposes here are to share what I have learned in the hope that it may help others, help promote various technologies, and to be a good place to remember what I have learned :-). I also hope to learn from the comments that some may leave and I want to keep that piece as open as possible but do reserve the right to edit to my own satisfaction. I short I have the goal of making this a forum for all of us to learn relevant technologies not to be limited to Microsoft, although that may be the focus. more