Gianfranco Meis
Gianfranco Meis

Reputation: 1

Running a C# .exe created in Visual Studio 2022 on Windows RT 2012

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

Answers (1)

Zhenning Zhang
Zhenning Zhang

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.

  1. Open the Publish Window In Solution Explorer, right-click your project (not the solution). Select "Publish" from the context menu. enter image description here.
  2. Create a New Publish Profile Choose "Folder" as the publish target and click "Next". enter image description here
  3. Select the Target Folder Specify a local path (e.g., C:\Publish\MyApp). enter image description here Click "finish". 4 Publish the Application enter image description here Click the "Publish" button.

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

Related Questions