Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!


ASP.NET Core: How to Publish Your Site as "Self-Contained"


If your website uses an legacy version of .NET Core listed below, you must switch to a "Self-Contained" deployment to ensure it keeps running after April 2026 when we update our shared hosting server security.

If you need to republish your legacy application as "Self-Contained" the intrusions below describe how to do this in Visual Studio.

Using Visual Studio

  1. Right-click your project in the Solution Explorer and select Publish.

  2. Click on the Settings (pencil icon or "Show all settings") in your Publish Profile
    .
  3. Find the Deployment Mode drop down and change it from Framework-dependent to Self-contained.

  4. In Target Runtime, select win-x86 if using default 32-bit pp pool, or win-x64 if using a 64-bit app pool, see; Change Application Pool Mode (32-bit & 64-bit).

  5. (Optional) Check Produce single file if you want to keep your folder clean.

  6. Click Save and then Publish again (Publish with Visual Studio)


Back To Hosting Knowledgebase Menu >

Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz® is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, €, prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz® Ltd. All rights reserved.