Produce an executableĮxecutables aren't cross-platform, they're specific to an operating system and CPU architecture. The following table outlines the commands used to publish an app as framework-dependent or self-contained: Typeįramework-dependent executable for the current platform.įramework-dependent executable for a specific platform.ĭotnet publish -r -self-contained falseįor more information, see. When an executable is produced, you can specify the target platform with a runtime identifier (RID). Framework-dependent applications can be created without an executable, and these applications are cross-platform. NET runtime.īoth publishing modes produce a platform-specific executable by default. Users of the application have to separately install the. Publishing your app as framework-dependent produces an application that includes only your application itself and its dependencies. Users of the application can run it on a machine that doesn't have the. NET runtime and libraries, and your application and its dependencies. Publishing your app as self-contained produces an application that includes the. NET can be published in two different modes, and the mode affects how a user runs your app.
0 Comments
Leave a Reply. |