New project now live ST220 ENTHUSIASTS

I have just pushed my latest project live for the group ST220 ENTHUSIASTS.

It is a mobile friendly Umbraco CMS based website, the front end has been written using Bootstrap, jQuery, Now UI, AJAX and the Razor template engine.

The underlying code is the Umbraco CMS system which runs on Dot Net Framework 4.7 (C#).

Some of the code i used in the site has come from a really useful resource codeshare.co.uk

The site can be found here: https://st220enthusiasts.com

Recursivly Include In Visual Studio

When ever i build with Umbraco i find that i have to manually include files / folders into Visual Studio to be able to edit them with intellisense.

The is especially helpful when working with Views, to add the Views folder and all items under it recursively to Visual Studio just follow my tips below:

Unload your project by right clicking on your project name and clicking on Unload Project

Next right click your project name and click Edit PROJECTNAME.csproj

Once you have opened this file remove any lines containing the following:

<Content Include="Views

then when you have done that include the following line:

<Content Include="Views\**" />

 

Then just simply save the file, right click on your project name and then Reload Project.

All of your files under Views should now be included in your project and usable with intellisense.

Visual Studio update to 15.5.3 breaks donet core 2.0 solution

I came across an issue after updating my Visual Studio version to 15.5.3 which would cause my solution to throw an exception whenever it tried to access the database.

System.IO.FileLoadException: 'Could not load file or assembly 'System.Data.SqlClient, Version=4.2.0.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

The fix for this is nice and easy, you just need to install the NuGet (V4.4.2) package System.Data.SqlClient.