I want to build exe that can run on Windows Vista or later without installing .NET runtime

Asked 2 years ago, Updated 2 years ago, 70 views

I am developing with Visual Studio Community 2013 C#.

I would like the built exe file to run (without installing any other version) on the .Net Framework installed in the following environment as a standard, is it possible?

Also, I would appreciate it if you could tell me the necessary settings in that case.

Affected Windows Versions

  • Windows Vista SP2
  • Windows 7 SP1
  • Windows 8
  • Windows 8.1

It would be even better if we could absorb the difference between the 32-bit and 64-bit versions.

c# .net visual-studio

2022-09-30 20:29

1 Answers

  • Vista SP2: .NET 2.0 SP2 + 3.0 SP2
  • 7SP1:.NET 3.5.1
  • 8,8.1: .NET 4.5

Yes.
Based on the above, it works if you target .net 3.0, and then specify the application configuration file as shown in side-by-side hosting common scenario.

I cannot read the intent of the question about the difference between 32-bit and 64-bit, but if I select AnyCPU, it will be EXE that works with either bit.


2022-09-30 20:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.