modelsbuilder / ModelsBuilder.Original

The Community Models Builder for Umbraco
MIT License
114 stars 49 forks source link

Install-Package fails when using Empty WebApplication #81

Closed ThumNet closed 8 years ago

ThumNet commented 8 years ago

Hi Stephan,

Today I wanted to try the Umbraco 7.4.0-beta2 release and got an error while adding UmbracoCms using Nuget. After some investigation I found the issue is in the ModelsBuilder web.config transformation. In my case the desired node /configuration/system.web/compilation/assemblies didn't exist. The same goes for /configuration/system.web/compilation/buildProviders node. After manually creating both nodes in the web.config I was able to install UmbracoCms.

The following error is shown in the Package Manager Console: error-message

Maybe it's possible to also create the desired nodes in the web.config.install.xdt file.

Regards, Jeffrey

zpqrtbnk commented 8 years ago

Probably fixed also by this PR.

mh0101 commented 8 years ago

Hi,

How can i fix this issue for my machine? I have created a blank MVC 4 project in VS 2015 community. I am receiving the same error using PM> Install-Package UmbracoCms -Version 7.4.0 in nuget!

I'm sorry, I could not get how to solve it by adding the above lines when I have no files in my project.

zpqrtbnk commented 8 years ago

There is no web.config file in your project? Then you probably first need to add a new web.config file, containing the nodes specified by the OP, and it should work. Note that all this will be fixed in the next beta.

mh0101 commented 8 years ago

Thanks zpqrbnk. I have added these two in the config files but still getting an error. Please see this snapshot.

error

mh0101 commented 8 years ago

I think I need to update the command to beta 2 specific one for PM but I don't find it on the umbraco site.

mh0101 commented 8 years ago

Ok cool that I have found the version history on Nuget https://www.nuget.org/packages/UmbracoCms/7.4.0-beta

I'm now running PM> Install-Package UmbracoCms -Version 7.4.0-beta2 -Pre I hope this is ok for 7.4 beta 2 besides nuget just does not list the version number against 7.4

umbraco 7 4 beta 2

PM> Install-Package UmbracoCms -Pre

nuget error