so recently I have created a program in dart
and compiled that program to exe
file on my windows10
machine. Using dart compile exe main.dart
and then main.exe
is generated, but the problem is when I try to run this script on different version of windows like windows 11
, windows server 2016
or windows server 2012
. It didn't seem to run the program.
Note that actually there is no folder missing, still it is giving FileSystemException
but only for windows server 2012
, windows 11
, and windows server 2016
not for windows 10
.
I am only saying is that why is this error not occurred in windows 10
my guess is because I created the binary in windows 10
.
I have searched about this but couldn't find a way is there is any way I can compile this binary, so it works in all version of windows? Or like dart compile exe --windows11
for windows 11
.
Does dart only compile for Windows version specific binary, not for general win32
APIs?