Reputation: 1
I've created some C# code in Visual Studio on my computer that is running Windows 11. Now I have to run the same code on a different computer that is running Windows RT 2012.
I've copied the .exe
that is in the bin
folder of my code and tried to run on the other computer. At first there were some dlls missing, so I've copied these dlls from my computer to the Win 2012 computer, but then this error appeared:
The procedure entry point -invalid-parameter-noinfo-noreturn could not be located in the dynamic link library C:\Users\Administrator\Desktop\provaex\prova.exe
I'm completely stuck and don't know what to do. The Win RT 2012 computer does not have internet connection.
As said, I've copied the .exe
of my code on the other computer and I was expecting a pretty straight forward run without so many issues
Upvotes: 0
Views: 56
Reputation: 328
You cannot just use the .exe file in the bin folder because this exe file is rely on the other files in the project folder including .dll and .csprj file. I’m not sure you have actually tried the publish function, even though you mentioned you did in the comment. Please verify your operation based on the tutorial below.
Visual Studio will build the project and output the necessary files to the specified folder.
And you can try if it works when you copy the entire publish folder to the other computer.
Upvotes: 0