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

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

    I've found this works better for me:

    del "$(ProjectDir)obj\*" /F /Q
    del "$(ProjectDir)obj\$(ConfigurationName)\AspnetCompileMerge\*" /F /S /Q
    del "$(ProjectDir)obj\$(ConfigurationName)\CSAutoParameterize\*" /F /S /Q
    del "$(ProjectDir)obj\$(ConfigurationName)\Package\*" /F /S /Q
    del "$(ProjectDir)obj\$(ConfigurationName)\ProfileTransformWebConfig\*" /F /S /Q
    del "$(ProjectDir)obj\$(ConfigurationName)\TempPE\*" /F /S /Q
    del "$(ProjectDir)obj\$(ConfigurationName)\TransformWebConfig\*" /F /S /Q
    

    otherwise build(s) complain about edmxResourcesToEmbed disappearing.

提交回复
热议问题