CSProj file Copy function - setting a DestinationFolder based on the existence of another file

Alun Buss 20 Reputation points
2025-08-14T11:50:10.77+00:00

Hello Microsoft Q&A;

I'm attempting to create an install package for a DLL. Previous drafts of it have forced it into a specific folder, assuming that the necessary files are there. However, testing it on another machine proved that that isn't always the case, and so I'm wondering:

Is it possible on a Copy function to set a Destination Folder based on files in the target machine's system? Specifically an application within Program Files (either x64 or x86).

Windows development | Windows API - Win32
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.