I received Warning in output console when deploying a project using Setup project in Visual studio 2019 and error as below. "WARNING: The target version of the .NET Framework in the project does not match the .NET Framework launch condition version '.NET Framework X.X.X'. Update the version of the .NET Framework launch condition to match the target version of the.NET Framework in the Advanced Compile Options Dialog Box (VB) or the Application Page (C#, F#)."
I search this warning in google and found solution by myself, I will share this with you step by step.