Search code examples
c#.net.net-framework-version

Can I run .net 4.7.2 targeted application on machine which has .net 4.7 installed?


I was able to run console application targeted to .net 4.7.2 on machine where .net 4.7.0 is installed.
Can I safely run .net 4.7.2 targeted application on machine which has .net 4.7.0 installed?


Solution

  • No there is no guarantee that this will be "safe". Your program might fail at runtime. One way to ensure that you can run your app, is to create an installer for your console application. This way you can execute this installer and it will install the necessary packages along with your application, and the target machine does not need to have Visual studio installed altogether.