Friday, 27 September 2013

Working Directory in VS and remote machine

Working Directory in VS and remote machine

I'm using a 3rd party SDK in my C# project. In References I've added that
class library. I had also to set Working Directory to the location of that
class library, because of other dependencies, there are some other DLL
files which are needed for that class library.
My application works fine when running from Visual Studio. Now, I don't
know how to deploy my application to get it work on other machines.
I have redistrubate package for the 3rd party SDK and it will install the
class library I'm using and all it's dependencies. By the way I can't
choose destination where to install the SDK.
My application is installed on other location and I can't get it work. The
class library is also included in the installation of my application, but
it's not working. It works when I copy all files in the folder there I've
installed the SDK in to the folder of my application.
Does anyone know how to deploy this kind of applications? Is there a way
to specify "Working Directory" outside the Visual Studio? Could I use
DllImport instead in my application?
Regards

No comments:

Post a Comment