Specifying dependency search paths per project?

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Specifying dependency search paths per project?

Postby pahunt » Thu Nov 24, 2011 2:34 pm

Hi,

I would like to know if there's anyway to specify the dependency search paths on a per-project basis.

We are using SmartAssembly on our build server and the folder path that the source code is checked out into has a folder name that is randomly generated by the build server. This means that specifying the paths in the SmartAssembly.settings file is not an option for us.

Our current solution is to get the build process to update the SmartAssembly.settings file with the correct paths just before it does the obfuscation and this works. However we now want to run multiple builds at the same time and so this solution will no longer work as more than one build may be obfuscating at the same time.

Is there a solution to this and if not, would it be possible to get this changed in a future release.

Many thanks
pahunt
 
Posts: 4
Joined: Tue May 26, 2009 11:45 am

Postby pahunt » Fri Nov 25, 2011 11:14 am

OK so after a bit more searching I've found this page which just confuses me completely. Where do the paths in SmartAssembly.settings fit into this?
pahunt
 
Posts: 4
Joined: Tue May 26, 2009 11:45 am

Postby pahunt » Fri Nov 25, 2011 2:31 pm

Well I've answered my own question. The solution was that I didn't need to worry about the search paths in SmartAssembly.settings at all, in fact I've removed them all completely to avoid any future confusion. What I did to get it working was to make sure I had the CopyLocal property of the dependencies set to True in the C# project and now it picks up the dependencies from the bin folder.
pahunt
 
Posts: 4
Joined: Tue May 26, 2009 11:45 am


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests