MvcBuildViews is incompatible with Web Deploy

I implemented Web Deploy Packaging in my Business Intelligence application and found that it breaks MvcBuildViews. This happens because Web Deploy copies the components required for deployment into a sub-folder (under obj folder), duplicating the web.config file. MvcBuildViews then errors with a message about duplicated/nested configuration elements. This is a known issue on Microsoft Connect and a workaround is to ensure all build configurations (e.g. debug, release) are cleaned before attempting to use MvcBuildViews.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s