Visual Studio 2019: Net Core Deployment Mode and Target Runtime

To avoid the weird 502.3 or other errors, please follow these rules:

Deployment Mode


Always select Self-contained except for Net Core 3.1 unless Net core 3.1 is installed on Windows Server 2012 R2+ (Net Core 3.1 requires 2012 R2+)


Target Runtime



Always select Win-x64.

Though the "portable" option should work for all platforms, but it contains too many DLLs.

Please check the publish profiles to make sure the profile is correct, e.g. no <_IsPortable>true</_IsPortable>.

Sometimes the generated publish profile may not correct, please delete and re-create the profile. The recreation of publish profile is also suggested when Deployment Mode or Target Runtime is changed.

Publish Mode


Always use \\share instead of FTP. A lot of times using FTP can't correctly complete the deployment.



Comments

  1. As claimed by Stanford Medical, It is really the SINGLE reason this country's women live 10 years more and weigh 42 pounds lighter than we do.

    (By the way, it is not related to genetics or some hard exercise and EVERYTHING about "HOW" they are eating.)

    BTW, What I said is "HOW", not "what"...

    CLICK this link to find out if this little questionnaire can help you find out your real weight loss potential

    ReplyDelete

Post a Comment

Popular posts from this blog

Use GnuPG Tools or C# Code for PGP Encryption and Signature

Errors in Net Core Add-Migration

Confusing Concepts about SFTP: SSH2 vs OpenSSH