There are no required files in the application

I created a C # application in Visual Studio 2010 with C #. It uses some other dll files. When I publish it using Build-> Publish created Setup.exe file.

When I run this setup on another machine, I get the error message "Required files are missing." I tried this one , but it did not fix the problem.

This also did not help, because inside the New Project->Other Project Types->Setup and Deployment , the Setup Project does not exist. He is empty.

How can i solve this?

+6
source share
2 answers

When you run the setup on another computer, you need to publish the application folder so that it is present on that computer in the right place.

There is no publication in your publication folder.

Therefore, such an error occurs.

Insert the publication folder from your computer, where the program runs successfully on another computer, where you want to install the application.

Then run the installation file inside this publication.

Then only you will overcome this problem.

The publication folder contains all the necessary DLL files and files that must be run.

+5
source

When I came across this, I found that for one or more DLL references, CopyLocal = true must be set.

This affects applications and installers with one click. If there is a possibility that the file is not yet on the user's computer, you need to enable it (or install it).

(Check file redistribution licensing)

0
source

Source: https://habr.com/ru/post/946486/


All Articles