Category: Development

  • Hello Angular World (page 2 of 7)

    Hello Angular World (from Visual Studio and Local IIS) Pages: 1, 2, 3, 4, 5, 6, 7 NPM Packages Now that we have a basic ASP.NET MVC 5 project let’s install some NPM Packages. Once you have installed the first NPM Package you will see a new file, called package.json, added to your Project’s root. […]

  • Hello Angular World (page 1 of 7)

    Hello Angular World (from Visual Studio and Local IIS) I have written this article and the accompanying Visual Studio 2015 project as an exploration of how Angular 2 and ASP.NET MVC 5 can coexist and I have tried to remain true to both frameworks, respecting naming conventions and file structure. While carrying out research for […]

  • Code Snippet: Async Unit Test Methods

    This is based upon my original UnitTestMethod.Snippet Gist, this C# Code Snippet can be used within Visual Studio to generates Asynchronous Unit Test Methods (Functions). How to Use Save the Code Snippet file as UnitTestMethod.Snippet For for VS 2015, move the UnitTestMethod.Snippet file into this directory: %userprofile%\Documents\Visual Studio 2015\Code Snippets\Visual C#\My Code Snippets Once installed type: utestasync […]

  • Code Snippet: Unit Test Methods

    While researching Unit Testing, I reviewed several different C# Code Snippet examples for generating Unit Test Methods (Functions) within Visual Studio and this is my take on it… How to Use Save the Code Snippet file as UnitTestMethod.Snippet For for VS 2015, move the UnitTestMethod.Snippet file into this directory: %userprofile%\Documents\Visual Studio 2015\Code Snippets\Visual C#\My Code Snippets Once […]

  • Angular 2: Quick Start Notes Part #2

    Following my first post in this series, in which I set up Visual Studio Code, installed Git and cloned Deborah Kurta’s Angular2-GettingStarted.git. Today I’m going list the steps required to install and configure the NPM (Node Package Manager) command line utility; this will enable me to see the results of my code changes in a […]

  • Angular 2: Quick Start Notes Part #1

    These are my notes, made while watching Deborah Kurta’s Angular2: Getting Started course, hosted by Pluralsight. Most, if not all, of this information can be found within Deborah’s course, however by stripping this information out I hope to jog memories… Tools & Setup: Macintosh (OS X) How to use Visual Studio Code with GitHub: Download and […]

  • Visual Studio Extensions

    Here is a list of some of may favourite Visual Studio Extensions:

  • Cheat Sheet: Fixing SharePoint Page Layouts containing Webpart with the same ID

    I had problems upgrading a WSP containing one or more Page Layouts? Unable to edit or update a Page Layout? Related article: Editing SharePoint Webparts embedded within Page Layouts https://www.sjlewis.com/2015/10/15/editing-sharepoint-webparts-embedded-within-page-layouts/ Navigate to the site settings of the root website (within a site collection) Click Master pages and page layouts and locate the Page Layouts Make a […]

  • Empty GUID: 00000000-0000-0000-0000-000000000000

    Empty GUID: 00000000-0000-0000-0000-000000000000 C# new Guid() Creates an empty GUID that is all-zeros Guid.NewGuid() Creates a new GUID using an algorithm that is designed to make collisions extremely unlikely

  • Example: Office 365 Video REST API & Script Editor webpart

    Here is an example of how to embedding a video using a Script Editor webpart and the Office 365 Video Portal REST API within SharePoint Publishing site. When try this example yourself, don’t forget to edit the VideoPlayer.webpart and replace the blank GUIDs. Quick Start: Upload a video to your Office 365 Video Portal Add […]