Skip to main content Skip to footer

Recursively 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.

This 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 save the file, right-click on your project name and Reload Project.

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

About the author

Aaron Sadler

Aaron Sadler, Umbraco MVP (2x), Umbraco Certified Master Developer and DevOps Engineer

comments powered by Disqus