{"id":179,"date":"2009-08-20T16:42:25","date_gmt":"2009-08-20T20:42:25","guid":{"rendered":"https:\/\/clarionsharp.com\/blog\/?p=179"},"modified":"2009-08-20T16:42:25","modified_gmt":"2009-08-20T20:42:25","slug":"precompile-and-publish-aspnet-web-apps","status":"publish","type":"post","link":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/","title":{"rendered":"Precompile and Publish ASP.Net web apps"},"content":{"rendered":"<p>We&#8217;ve added some new functionality to the IDE in support for precompling and publishing a web app.\u00a0 As you know b<span class=\"Article_FullDescription\">y default, ASP.NET dynamically parses and compiles any ASPX page when the first request is made for the page. The .Net runtime caches the compilation outputs and does not need to recompile again unless someone edits a file. This behavior brings us a good amount of flexibility, including the flexibility to change code and markup. and instantly see the changes reflected in the next browser request.\u00a0 ASP.NET 2.0 introduced the option of precompiling your website. <\/span>Precompling offers the following advantages :<\/p>\n<ul>\n<li><span class=\"Article_FullDescription\"> You do not need to deploy the source code to the server.\u00a0The website is precompiled into binaries, which are then deployed to the server.<\/span><\/li>\n<li><span class=\"Article_FullDescription\">It allows you to identify any bugs during compilation rather then opening each page<br \/>\n<\/span><\/li>\n<li><span class=\"Article_FullDescription\">The deployment process is a bit easier as all your aspx pages, user controls etc. are compiled into binaries.There are a few different ways you can precompile a website. <\/span><\/li>\n<\/ul>\n<div style=\"margin: 10pt 0in 0pt;\"><strong><span style=\"font-size: large;\"><span style=\"font-family: Cambria; color: #4f81bd; font-size: medium;\">Precompiling websites at the command-line <\/span><\/span><\/strong><\/div>\n<p>When you have an ASP.Net project open the IDE command \u201cBuild\u201d only validates the project and puts the assemblies into the ASP.NET temporary folder.<\/p>\n<p>The values you enter on the new MSBuild tab of the Propect Properties are valid if you want to build the project from the command line. So at a command prompt you use this syntax:<\/p>\n<p><span style=\"color: #993300;\"><code>MSBuild &lt;projectfile&gt;.aspxproj \/target:Msbuild \/property:ClaNetBinPath=&lt;Clarion.Net BIN folder&gt;<\/code><\/span><\/p>\n<div style=\"margin: 10pt 0in 0pt;\"><strong><span style=\"font-size: large;\"><span style=\"font-family: Cambria; color: #4f81bd; font-size: medium;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-181\" title=\"aspprocomp\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/aspprocomp.png\" alt=\"aspprocomp\" width=\"1095\" height=\"460\" \/><\/p>\n<p>Precompile and publish websites using the Clarion IDE<\/p>\n<p><\/span><\/span><\/strong><\/div>\n<p>To precompile and publish your website using the IDE follow these steps:<\/p>\n<p style=\"text-align: left;\">1. Open your website project<br \/>\n2. In the Solution Explorer right-click on the Project and from the context menu choose &#8220;Publish Web Site&#8221;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-182 aligncenter\" title=\"asp1\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/asp1.png\" alt=\"asp1\" width=\"292\" height=\"447\" \/><\/p>\n<p>3. You then get a Publish Web Site dialog like shown below where you can specify the path to publish. Clicking on the eplisis(\u2026) lets you choose a folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-183\" title=\"asp2\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/asp2.png\" alt=\"asp2\" width=\"479\" height=\"525\" \/><br \/>\n4. Select your options in the dialog :<\/p>\n<p style=\"text-align: left; padding-left: 30px;\">a. Allow this precompiled site to be updatable \u2013 This option allows you to change the markup and client side functionality of the .aspx pages.<br \/>\nb. Use Fixed Naming And Single Page Assemblies<br \/>\nc. Enable strong naming on precompiled assemblies \u2013 specifies that your assemblies are strong named using a key file or container.<\/p>\n<p style=\"text-align: left;\">5. Click Ok to compile and publish the website.<!--more--><!--more--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve added some new functionality to the IDE in support for precompling and publishing a web app.\u00a0 As you know by default, ASP.NET dynamically parses and compiles any ASPX page when the first request is made for the page. The .Net runtime caches the compilation outputs and does not need to recompile again unless someone &hellip; <a href=\"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Precompile and Publish ASP.Net web apps<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,5,7],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-aspnet","category-clarionnews","category-clarionsharp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Precompile and Publish ASP.Net web apps - Clarion<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Precompile and Publish ASP.Net web apps - Clarion\" \/>\n<meta property=\"og:description\" content=\"We&#8217;ve added some new functionality to the IDE in support for precompling and publishing a web app.\u00a0 As you know by default, ASP.NET dynamically parses and compiles any ASPX page when the first request is made for the page. The .Net runtime caches the compilation outputs and does not need to recompile again unless someone &hellip; Continue reading Precompile and Publish ASP.Net web apps &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/\" \/>\n<meta property=\"og:site_name\" content=\"Clarion\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/softvelocity\/\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-20T20:42:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/aspprocomp.png\" \/>\n<meta name=\"author\" content=\"rzaunere\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rzaunere\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/\"},\"author\":{\"name\":\"rzaunere\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/person\\\/b90e860529aea05ad064cf2687697ce3\"},\"headline\":\"Precompile and Publish ASP.Net web apps\",\"datePublished\":\"2009-08-20T20:42:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/\"},\"wordCount\":378,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/08\\\/aspprocomp.png\",\"articleSection\":[\"ASP.NET\",\"Clarion News\",\"Clarion.Net\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/\",\"name\":\"Precompile and Publish ASP.Net web apps - Clarion\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/08\\\/aspprocomp.png\",\"datePublished\":\"2009-08-20T20:42:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/08\\\/aspprocomp.png\",\"contentUrl\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/08\\\/aspprocomp.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/precompile-and-publish-aspnet-web-apps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Precompile and Publish ASP.Net web apps\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/\",\"name\":\"Clarion\",\"description\":\"Deliver your software on time, every time\",\"publisher\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#organization\",\"name\":\"SoftVelocity\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/svlogonew57.png\",\"contentUrl\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/svlogonew57.png\",\"width\":221,\"height\":57,\"caption\":\"SoftVelocity\"},\"image\":{\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/softvelocity\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/SoftVelocity\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/#\\\/schema\\\/person\\\/b90e860529aea05ad064cf2687697ce3\",\"name\":\"rzaunere\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g\",\"caption\":\"rzaunere\"},\"url\":\"https:\\\/\\\/clarionsharp.com\\\/blog\\\/author\\\/rzaunere\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Precompile and Publish ASP.Net web apps - Clarion","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/","og_locale":"en_US","og_type":"article","og_title":"Precompile and Publish ASP.Net web apps - Clarion","og_description":"We&#8217;ve added some new functionality to the IDE in support for precompling and publishing a web app.\u00a0 As you know by default, ASP.NET dynamically parses and compiles any ASPX page when the first request is made for the page. The .Net runtime caches the compilation outputs and does not need to recompile again unless someone &hellip; Continue reading Precompile and Publish ASP.Net web apps &rarr;","og_url":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/","og_site_name":"Clarion","article_publisher":"https:\/\/www.facebook.com\/softvelocity\/","article_published_time":"2009-08-20T20:42:25+00:00","og_image":[{"url":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/aspprocomp.png","type":"","width":"","height":""}],"author":"rzaunere","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rzaunere","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#article","isPartOf":{"@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/"},"author":{"name":"rzaunere","@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/person\/b90e860529aea05ad064cf2687697ce3"},"headline":"Precompile and Publish ASP.Net web apps","datePublished":"2009-08-20T20:42:25+00:00","mainEntityOfPage":{"@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/"},"wordCount":378,"commentCount":1,"publisher":{"@id":"https:\/\/clarionsharp.com\/blog\/#organization"},"image":{"@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#primaryimage"},"thumbnailUrl":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/aspprocomp.png","articleSection":["ASP.NET","Clarion News","Clarion.Net"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/","url":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/","name":"Precompile and Publish ASP.Net web apps - Clarion","isPartOf":{"@id":"https:\/\/clarionsharp.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#primaryimage"},"image":{"@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#primaryimage"},"thumbnailUrl":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/aspprocomp.png","datePublished":"2009-08-20T20:42:25+00:00","breadcrumb":{"@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#primaryimage","url":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/aspprocomp.png","contentUrl":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2009\/08\/aspprocomp.png"},{"@type":"BreadcrumbList","@id":"https:\/\/clarionsharp.com\/blog\/precompile-and-publish-aspnet-web-apps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clarionsharp.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Precompile and Publish ASP.Net web apps"}]},{"@type":"WebSite","@id":"https:\/\/clarionsharp.com\/blog\/#website","url":"https:\/\/clarionsharp.com\/blog\/","name":"Clarion","description":"Deliver your software on time, every time","publisher":{"@id":"https:\/\/clarionsharp.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clarionsharp.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/clarionsharp.com\/blog\/#organization","name":"SoftVelocity","url":"https:\/\/clarionsharp.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2019\/03\/svlogonew57.png","contentUrl":"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2019\/03\/svlogonew57.png","width":221,"height":57,"caption":"SoftVelocity"},"image":{"@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/softvelocity\/","https:\/\/www.youtube.com\/user\/SoftVelocity"]},{"@type":"Person","@id":"https:\/\/clarionsharp.com\/blog\/#\/schema\/person\/b90e860529aea05ad064cf2687697ce3","name":"rzaunere","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/91d95e38759c411d27f646b60da7f4769ce91e87b484669af240e51c729b1e7c?s=96&d=mm&r=g","caption":"rzaunere"},"url":"https:\/\/clarionsharp.com\/blog\/author\/rzaunere\/"}]}},"_links":{"self":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":0,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"wp:attachment":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}