Designer Added then removed by Visual Studio on load/unload

前端 未结 6 1998
没有蜡笔的小新
没有蜡笔的小新 2020-12-02 07:48

Anyone see this before? I have a large Visual Studio project that keeps adding [Subtype]Designer[/Subtype] to my .vcproj then removing it on the n

6条回答
  •  [愿得一人]
    2020-12-02 08:15

    I found that Designer changes the behaviour for Web.config.

    We use WebDeploy to publish web service files.

    If SubType is set for Web.config - it publishes this file correctly under the main directory where all content files go and .svc.

    If SubType is not set - it does above but also copies Web.config under bin\ subdirectory - which is very strange! In MsBuild log this happens during CollectFilesFrom_SourceItemsToCopyToOutputDirectory target.

提交回复
热议问题