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

前端 未结 11 606
鱼传尺愫
鱼传尺愫 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:27

    This is kind of a workaround, but you may add the following line to your pre-build commands:

    del $(ProjectDir)obj\* /F /S /Q

    Right click your project > Properties > Build Events > Pre-build

提交回复
热议问题