Web.config transformation: Unrecognized attribute 'xmlns:xdt'. Note that attribute names are case-sensitive

前端 未结 11 614
鱼传尺愫
鱼传尺愫 2020-12-08 03:55

I\'m getting this strange intermitent bug in a MVC 3.0 project When I build the project sometimes I get the following error message:

Unrecognized attr

11条回答
  •  旧巷少年郎
    2020-12-08 04:51

    1. Right click on the project, click Publish
    2. Goto Settings -> File Publish Options
    3. Uncheck Precompile during publishing

    This will prevent the web.debug.config/web.release.config injecting the file back to the web.config if you are using visual studio publish.

提交回复
热议问题