Share via

[Question] How does VS2019 deploy and avoid some destination directories be deleted

SHAO JUNG LU 21 Reputation points
2020-08-20T01:11:51.29+00:00

[Question] How does VS2019 deploy and avoid some destination directories be deleted

ASP.NET + WebForm + WebApplication

Visual Studio 2019 deploy, I set :
"Target location" : D:\WWW\WebApplication1
"Delete Existing Data" : True

I don't want "Delete Existing Data" : False, because it will not overwrite old .aspx by new .aspx.

But I hope D:\WWW\WebApplication1\Upload will not be deleted.
Where can I set it?

18913-d02.png

18914-%E5%A6%82%E4%BD%95%E6%8E%92%E9%99%A4-deploy-%E7%9B%AE%E7%9A%84%E7%9B%AE%E9%8C%84%E4%B8%8B%E6%9F%90%E8%A0%8D%E5%AD%90%E7%9B%AE%E9%8C%84%E4%B8%8D%E8%A2%AB%E5%88%AA%E9%99%A4.png

Community Center | Not monitored
0 comments No comments

4 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,436 Reputation points
    2020-08-26T09:57:14.92+00:00

    Hi SHAOJUNGLU,

    Sorry for the delay in reply.

    To provide further and better support, we suggest you could go to IIS forum and start a new thread there. The community members will provide dedicated support about it.

    Best Regards,
    Dylan

    Was this answer helpful?

    0 comments No comments

  2. SHAO JUNG LU 21 Reputation points
    2020-08-24T00:57:00.377+00:00

    I find "\WebApplication1\Properties\PublishProfiles\FolderProfile.pubxml"
    I edit it.
    Visual Studio 2019 + ASP.NET WebForm WebApplication don't support MsDeploySkipRules.
    It need ASP.NET Core.
    19646-03.png

    Was this answer helpful?

    0 comments No comments

  3. SHAO JUNG LU 21 Reputation points
    2020-08-24T00:56:59.92+00:00

    I find "\WebApplication1\Properties\PublishProfiles\FolderProfile.pubxml"
    I edit it.
    Visual Studio 2019 + ASP.NET WebForm WebApplication don't support MsDeploySkipRules.
    It need ASP.NET Core.
    19646-03.png

    Was this answer helpful?

    0 comments No comments

  4. SHAO JUNG LU 21 Reputation points
    2020-08-24T00:53:25.317+00:00

    I don't see XXX.pubxml file.
    Does it support ASP.NET WebForm WebApplication ?

    19753-01x.png

    19716-02.png

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.