79468375

Date: 2025-02-26 02:48:53
Score: 1.5
Natty:
Report link

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.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Zhenning Zhang