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
- Right-click your project in the Solution Explorer and select Publish.
- Click on the Settings (pencil icon or "Show all settings") in your Publish Profile
.
- Find the Deployment Mode drop down and change it from Framework-dependent to Self-contained.
- 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).
- (Optional) Check Produce single file if you want to keep your folder clean.
- Click Save and then Publish again (Publish with Visual Studio)
- Upload the new files in your bin/Release/.../publish folder to the server.
Back To Hosting Knowledgebase Menu
> |