PageSourceSearch

https://www.tutorialsteacher.com/_next/static/chunks/pages/core/do…-core-application-types-d62e6311d3529622.js

js tutorialsteacher.com collected 2026-10-02 04:14:16 UTC 3,949 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84972],{39444:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/core/dotnet-core-application-types",function(){return n(234)}])},74703:function(e,i,n){"use strict";var t=n(85893),a=n(40645),c=n.n(a),o=n(25675),p=n.n(o);i.Z=e=>{let{src:i,alt:n="",height:a,width:o,unoptimized:r=!1,fill:s=!0,sizes:l="(max-width: 480px) 60vw, (max-width: 640px) 50vw, (max-width: 1920px) 50vw, 33vw"}=e;return(0,t.jsxs)("div",{className:c().dynamic([["f343c938d3dd6bc8",[a?"".concat(a,"px"):"160px",a?"".concat(a,"px"):"250px",a?"".concat(a,"px"):"300px"]]])+" position-relative text-center body-image cursor-pointer",children:[(0,t.jsx)(p(),{src:i,alt:n,fill:s,sizes:l,height:a,width:o,unoptimized:r}),(0,t.jsx)(c(),{id:"f343c938d3dd6bc8",dynamic:[a?"".concat(a,"px"):"160px",a?"".concat(a,"px"):"250px",a?"".concat(a,"px"):"300px"],children:".body-image.__jsx-style-dynamic-selector{position:relative;width:100%;height:".concat(a?"".concat(a,"px"):"160px",";padding:0}.cursor-pointer.__jsx-style-dynamic-selector{cursor:pointer}@media(min-width:640px){.body-image.__jsx-style-dynamic-selector{height:").concat(a?"".concat(a,"px"):"250px","}}@media(min-width:1024px){.body-image.__jsx-style-dynamic-selector{height:").concat(a?"".concat(a,"px"):"300px","}}")})]})}},15973:function(e,i,n){"use strict";function t(){}n.d(i,{Z:function(){return t}}),n(4298)},234:function(e,i,n){"use strict";n.r(i);var t=n(85893),a=n(9008),c=n.n(a),o=n(74703),p=n(15973);i.default=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c(),{children:[(0,t.jsx)("title",{children:".NET Core Application Types"}),(0,t.jsx)("meta",{property:"og:title",content:".NET Core Application Types"}),(0,t.jsx)("meta",{name:"keywords",content:"asp.net core,.net core, .net core application types, dotnet core, dotnet core application types, what is portable application, what is self contained application "}),(0,t.jsx)("meta",{name:"description",content:"Learn about .NET Core application types: Protable and Self-contained application."})]}),(0,t.jsxs)("article",{children:[(0,t.jsx)("h1",{children:".NET Core Application Types"}),(0,t.jsx)("p",{children:"We can create two types of applications in .NET Core."}),(0,t.jsxs)("ol",{children:[(0,t.jsx)("li",{children:"Portable Application"}),(0,t.jsx)("li",{children:"Self-contained application"})]}),(0,t.jsx)("h2",{children:"Portable Application"}),(0,t.jsx)("p",{children:"Portable applications are applications which expect .NET Core runtime on the deployment machines. It cannot be run on a machine which does not have .NET Core runtime installed."}),(0,t.jsx)(o.Z,{src:"/images/core/app-types.webp",alt:".NET Core Portable Application",lazyLoad:!0}),(0,t.jsx)(p.Z,{}),(0,t.jsx)("h2",{children:"Self-contained Application"}),(0,t.jsx)("p",{children:"Self-contained applications are applications which include .NET Core runtime when we publish it. It can run on a machine which does not have .NET Core runtime installed."}),(0,t.jsx)(o.Z,{src:"/images/core/selfcontained-app.webp",alt:".NET Core Self-contained Application",lazyLoad:!0}),(0,t.jsx)("h2",{children:"Configure Application Type"}),(0,t.jsxs)("p",{children:["We can configure ASP.NET Core application as portable or self-contained application using ",(0,t.jsx)("code",{children:"type"})," property of ",(0,t.jsx)("code",{children:"Microsoft.NETCore.App"}),' dependency in project.json. The "type":"platform" indicates that this application expects .NET Core on the machine. This makes it a portable application.']}),(0,t.jsx)(o.Z,{src:"/images/core/configure-app.webp",alt:"",lazyLoad:!0}),(0,t.jsx)("p",{children:"For the self-contained application, remove type-platform from the dependency. This makes it a self-contained application which means .NET Core will be included when you build and publish an application."})]})]})}},function(e){e.O(0,[40645,92888,49774,40179],function(){return e(e.s=39444)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.