question

melonNG-6986 avatar image
0 Votes"
melonNG-6986 asked RenaNi-MSFT commented

Publish once while using RCL(Razor Class Library)

I used RCL to store the header and footer of my website and was referenced by several projects.

The projects referenced the RCL by the Project Reference of VS.

Every time I modify the RCL, I have to republish all the projects referenced it(By the web deploy). That's so troublesome.

Is there any way that only publishes once while I modify the RCL?

Thank you.

dotnet-aspnet-core-mvcdotnet-aspnet-general
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @melonNG-6986 , Please check if you uncheck Delete all existing files prior to publish or not.

0 Votes 0 ·

I have unchecked this. It seems I need CI/CD tools.

0 Votes 0 ·

Hi @melonNG-6986 , I suggest you can check this answer for your scenario which can give a more detailed explanation.

0 Votes 0 ·

0 Answers