MSBuild error while compiling ASP.NET website

前端 未结 5 1607
一整个雨季
一整个雨季 2020-12-17 08:56

I get the following error when I try to compile an asp.net site using a custom build script.

error ASPCONFIG: It is an error to use a section registered as a         


        
5条回答
  •  自闭症患者
    2020-12-17 09:32

    if this happens after the virtual-directory is already created do the following:

    • right-click on web.config
      • properties
        • Build Action: Content
        • Copy to Output directory: Do not copy
    • if transformed (apply to all configurations)
      • properties
        • Build Action: None
        • Copy to Output directory: Do not copy

提交回复
热议问题