Umbraco.Core junks my class library projects with web files
This behavior seems to be new to Umbraco 7.4.
I have separate my business logic from my display logic into class library projects in Visual Studio. I added UmbracoCms.Core via NuGet in these projects.
The problem is that the UmbracoCms.Core reference tries to create a complete Umbraco web installation in each of my DLL projects., It creates the AppBrowsers,Config,Umbraco,umbracoclient folders every time I build.
How do I stop this? All I need is access to the Umbraco.Core namespace.
If I do a -WhatIf then NuGet tells me it will install the following packages (and it does, if I leave out the -WhatIf). Any other packages installed that have a dependency on UmbracoCms (not .Core)?
I think my misunderstanding was that I must install all the Umbraco.Core dependencies if I need to use Umbraco.Core in a class library project.
But that is wrong - if I just need Umbraco.Core, I should tell NuGet to ignore dependencies.
I just used ResolveUR to remove all unused referenced and packages in my project.
Umbraco.Core junks my class library projects with web files
This behavior seems to be new to Umbraco 7.4.
I have separate my business logic from my display logic into class library projects in Visual Studio. I added UmbracoCms.Core via NuGet in these projects.
The problem is that the UmbracoCms.Core reference tries to create a complete Umbraco web installation in each of my DLL projects., It creates the AppBrowsers,Config,Umbraco,umbracoclient folders every time I build.
How do I stop this? All I need is access to the Umbraco.Core namespace.
Are you sure you only installed
UmbracoCms.Core
?If I do a
-WhatIf
then NuGet tells me it will install the following packages (and it does, if I leave out the-WhatIf
). Any other packages installed that have a dependency onUmbracoCms
(not.Core
)?I think my misunderstanding was that I must install all the Umbraco.Core dependencies if I need to use Umbraco.Core in a class library project.
But that is wrong - if I just need Umbraco.Core, I should tell NuGet to ignore dependencies.
I just used ResolveUR to remove all unused referenced and packages in my project.
I don't know how you're installing
Umbraco.Core
but as per the output above:This will not install dependencies and there's no need to tell NuGet to ignore them. Maybe I'm missing something?
I am getting different behavior. I believe this is the default NuGet setting:
I used the "quick install package" menu to install Umbraco.Core:
This is what it did:
I then discarded my changed and ran " Install-Package UmbracoCms.Core"
This is the console output:
So as far as I can tell, installing UmbracoCms.Core will install all the dependencies unless you tell NuGet not to.
is working on a reply...