A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello,
Yes, you do not need to install the runtime in your environment when publishing using the --self-contained parameter.
Please refer to the original description in the dotnet publish.
--sc|--self-contained [true|false]Publishes the .NET runtime with your application so the runtime doesn't need to be installed on the target machine. Default istrueif a runtime identifier is specified and the project is an executable project (not a library project). For more information, see .NET application publishing and Publish .NET apps with the .NET CLI. If this option is used without specifyingtrueorfalse, the default istrue. In that case, don't put the solution or project argument immediately after--self-contained, becausetrueorfalseis expected in that position.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.