Publish once while using RCL(Razor Class Library)

melon NG
291
Reputation points
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.