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.

Published by Mark Brownsword

I've been working as an enterprise developer for about 15 years, always using .NET platform and mostly using Oracle databases. My degree is in Business Studies, majoring in information systems, where I learnt the fundamentals of software engineering for building systems for business.

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s