When installing umbraco through Nuget in Visual Studio do you have to include all folders and documents in the project that are initially hidden (right click include in project)? Everything from App_Data to Views?
You don't have to include anything that is not initially included, unless you have to use the of course. So if you need to add a plugin, then include the App_Plugins folder, otherwise just leave it as is.
What about for deploying to the server from Visual Studio. I noticed that a lot of folders and files are not included in the Visual Studio project like (App_Data, etc.) when installing into an empty C sharp web application in Visual Studio. Why is that and should they all be included?
If you need to deploy directly from vs you should deploy all needed folders and files, including AppPlugins and AppData.
And why they are not included on install, I cannot answer, but my guess is, that they are built when Umbraco publishes to NuGet and therefore, not included in the csproj. It has no real impact whether they are included or not, when installed. If you need them, simply just include them. :-)
When you install via nuget Umbraco has a .target file it adds to the visual studio project file that copies the folders you don't see (like the Umbraco folder) as part of a post build thing.
This means when you deploy those folders are included in anything visual studio or msbuild builds.
so you don't need to include them visual studio but they will be there for deployment.
Umbraco Nuget Installation
When installing umbraco through Nuget in Visual Studio do you have to include all folders and documents in the project that are initially hidden (right click include in project)? Everything from App_Data to Views?
Hi Bobi.
You don't have to include anything that is not initially included, unless you have to use the of course. So if you need to add a plugin, then include the App_Plugins folder, otherwise just leave it as is.
Regards Malthe
Hi,
What about for deploying to the server from Visual Studio. I noticed that a lot of folders and files are not included in the Visual Studio project like (App_Data, etc.) when installing into an empty C sharp web application in Visual Studio. Why is that and should they all be included?
-Thanks
If you need to deploy directly from vs you should deploy all needed folders and files, including AppPlugins and AppData.
And why they are not included on install, I cannot answer, but my guess is, that they are built when Umbraco publishes to NuGet and therefore, not included in the csproj. It has no real impact whether they are included or not, when installed. If you need them, simply just include them. :-)
Thank you! So I assume all of the "hidden" files and folders need to be included to properly run the CMS on deploy?
Most likely. If they contain something, if they are empty you can just leave them alone. :-)
Happy to help!
Hi,
When you install via nuget Umbraco has a .target file it adds to the visual studio project file that copies the folders you don't see (like the Umbraco folder) as part of a post build thing.
This means when you deploy those folders are included in anything visual studio or msbuild builds.
so you don't need to include them visual studio but they will be there for deployment.
Thank you! That's helpful.
is working on a reply...