How to compile and decode references in .net c# vb.net with one click?

3 projects are dependent on each other
ClassLibrary1, ClassLibrary2, MainProject (main project)
ClassLibrary2 depends on ClassLibrary1, MainProject depends on the first 2
How to implement one-click compilation in sequence and automatically add the first two generated DLLs to the main project.
And set it to not copy to the output directory, and select "Embedded Resources" for the "Build Operation" property.
Is there no way for VS IDE to automatically open the output directory?

How to write a VS IIDE plugin like this?