Is it possible to build and publish the code at the same time using .net core 2.0
I have console application which I have created in .net and inside the same solution have some libraries which is targeting to framework 4.5. I am looking for the command which can build and at the same time publish as Self contained.
Can anyone please suggest me the command which can build and publish at the same time as Self Contained.