Red Gate forums :: View topic - Is there a way to add extra global search paths?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

Is there a way to add extra global search paths?

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
DevInn



Joined: 21 Nov 2010
Posts: 5

PostPosted: Mon Nov 22, 2010 10:43 pm    Post subject: Is there a way to add extra global search paths? Reply with quote

Is there a way to manually add extra global search paths? I've read that:
"You can add extra global search paths when you get prompted for missing references" but I'm missing references and don't see a screen to add the paths... So, is there a way to add paths before it builds and fails?
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Tue Nov 23, 2010 10:43 am    Post subject: Reply with quote

Hi,
How are you building your project? The SmartAssembly UI gives you a dialog when it can't find a reference. It has a browse button you should use (this becomes a HintPath in your saproj file).
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
DevInn



Joined: 21 Nov 2010
Posts: 5

PostPosted: Tue Nov 23, 2010 1:30 pm    Post subject: Reply with quote

Well, apparently there are multiple versions of the same assembly. It is only finding one version as far as I can tell which may be why I don't get the opportunity to add additional search paths via a dialog. I'm pretty sure if I could specify additional paths it would work.
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Tue Nov 23, 2010 2:56 pm    Post subject: Reply with quote

I see, the solution for you then is the MandatoryPath. See here:

http://www.red-gate.com/supportcenter/Content.aspx?p=SmartAssembly&c=SmartAssembly/help/5.5/SA_SearchingForDependencies.htm&toc=SmartAssembly/help/5.5/toc121047.htm

There is a way to specify global search paths, but it's usually not the right thing to do, a per-assembly MandatoryPath will suit you better in the long run.
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
DevInn



Joined: 21 Nov 2010
Posts: 5

PostPosted: Tue Nov 23, 2010 3:03 pm    Post subject: Reply with quote

I've seen the Mandatory Path, but what do I apply it to, the main application? I don't see the specific assembly listed in the project file. Also, there need to be multiple paths...
Back to top
View user's profile Send private message
Alex.Davies



Joined: 02 Dec 2008
Posts: 335
Location: Cambridge, uk

PostPosted: Tue Nov 23, 2010 3:08 pm    Post subject: Reply with quote

You apply the MandatoryPath to the dependency in the saproj that is being picked up from the wrong place.

If you really want to do global search paths, you add this to the middle of your SmartAssembly.settings file (in C:\ProgramData\Red Gate\SmartAssembly):

<DependenciesSearchPaths>
<SearchPath>C:\Program Files\Microsoft SDKs\Silverlight\v4.0\Libraries\Client</SearchPath>
</DependenciesSearchPaths>

This is unsupported and not recommended though.
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
DevInn



Joined: 21 Nov 2010
Posts: 5

PostPosted: Tue Nov 23, 2010 3:34 pm    Post subject: Reply with quote

Ok, I'll try to get it working using the Mandatory Path, but thanks for the tip, I mat need it to figure out what I'm doing wrong...
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group