I have a project that acts as a shell for a third-party .exe (it has static methods for creating a command line and running an executable file). I want to use it in at least several projects in my solution. Ideally .exe should only be in this shell project (I don't want to add it to every project that uses it). Right now I'm trying to get this to work with a web project (.NET MVC) running on IIS 7, but when I use Assembly.GetExecutingAssembly().Location , to see the directory from which my shell is being called, is in a folder like
C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ "My Project" \ 65a016fb \ ac5f20a7 \ build \ DL3 \ d8de0f10 \ 06e277a2_55b2cd01
and my third-party .exe file was not found anywhere. Can I copy files with links that do not compile?
Btw, I set the properties "Copy to output directory" and "Create action" of my .exe to "Always copy" and "Content" / "Resource" / "Embedded resource" so far.
source share