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:
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.
One really annoying bug yet to be solved on a fresh install of Umbraco from NuGet in Visual Studio is the following build error:
CSC : warning AD0001: Analyzer 'Microsoft.CodeAnalysis.CSharp.Analyzers.FixAnalyzers.CSharpFixerWithFixAllAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'Microsoft.CodeAnalysis.Analyzers.FixAnalyzers.FixerWithFixAllAnalyzer`1' threw an exception.'.
This is really easily solved, 1 NuGet package needs updating to remove this issue, simply open Manage NuGet Packages go to the Installed tab and search for the following:
And them simply update to the latest version.
Hopefully they will roll this out as a fix eventually, I have raised this with them on their forums with no reply.
If you need to increase the upload limit with Umbraco, this can easily be done if you have root access to your server.
You may have to contact your hosting provider if this is not the case.
First off, you need to update your Web.Config allow the file size you need...
Carry out a search for:
Then change the value to the file size you require in kb, for example 100MB in kb is 100000
Once you have made this change you need to update IIS to also increase the limit, there are 2 ways to do this...
and run this code:
appcmd.exe set config "sitename" -section:requestFiltering -requestLimits.maxAllowedContentLength:size in bytes -commitpath:apphost
Open Internet Information Services (IIS) Manager find your website under Sites and click on its name.
Then under IIS click on Request Filtering in this section on the right click on Edit Feature Settings
Then change the Maximum allowed content length (Bytes) in my case again 100MB is 104857600Bytes.
Click Ok and then restart your sites Application Pool
After many years fighting with Script Kiddies and people trying to break into my blog (not sure why they would) i decided to stop using the inherently unsecure WordPress.
This is down to 1. the above reason with script kiddies and 2. using a piece of software called Umbraco at work.
Umbraco is a DotNet based CMS, i have it running on IIS7 and DotNet 4.7, to find out more info just visit their site here.
It's a neat bit of kit, with a brilliant community behind it!
Everytime i have had a issue while rebuilding this site or building a client site at work has seen someone drop in and lend a hand within 15 - 20mins of my post!
Even at weekends!
It seems to be so much easier to use and work with if your a developer (I wouldn't recommend it to a novice)...
As you can see there are still some bugs with the site... One of the biggest being <code> tags not yet being supported, i am working on this and hopefully will have this working soon.
I have now added the code highlight bits, ill follow up with a post showing how i accomplished this soon.