This documentation is archived and is not being maintained.

Could not find file '<filename>'

The specified file referenced in the deployment project could not be found; the deployment project cannot be built.

To correct this error

  • If the specified file is a built output of another project in the solution, check to make sure that the correct solution configuration is being built. If you have specified built outputs for a specific configuration, you must build that configuration before building the deployment project. For example, if the Release configuration of a project output group is specified and the Active configuration is built, the output files for the Release configuration do not exist yet.
  • If the specified file was added to the deployment project as a file, it may have been moved or deleted. You will need to remove the reference from your project and add it again from the new location.

See Also

Adding Items to a Deployment Project