Red Gate forums :: View topic - Multiple settings files?
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

Multiple settings files?

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
cadi



Joined: 20 Jul 2010
Posts: 6
Location: Rotterdam

PostPosted: Thu Sep 09, 2010 2:55 pm    Post subject: Multiple settings files? Reply with quote

Hi, is there an option to specify which SmartAssembly.settings file to use from an MSBuild task?

If not, is there an option inside the settings file, to specify SearchPath parameters for different projects?

I need to maintain projects with different DependenciesSearchPaths, e.g.
Code:
<SearchPath>C:\Program Files\Microsoft SDKs\Silverlight\v4.0\Libraries\Client</SearchPath>

but others still need to use
Code:
<SearchPath>C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Libraries\Client</SearchPath>


Thanks,
Casper
Back to top
View user's profile Send private message
Alex.Davies



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

PostPosted: Fri Sep 10, 2010 1:25 pm    Post subject: Reply with quote

Hi cadi
There are ways to use different settings files, but let's see if we can solve your root problem first...

The Silverlight SDK folders you're talking about should be searched automatically by SmartAssembly. Which one is searched depends on which version of Silverlight your app targets (via the TargetFrameworkAttribute).

Also, if you want something per-project, you could always use the HintPath in the saproj file. I know it means doing something for each assembly though.
_________________
Alex
Developer,
Red Gate .NET Tools
Back to top
View user's profile Send private message
cadi



Joined: 20 Jul 2010
Posts: 6
Location: Rotterdam

PostPosted: Fri Sep 10, 2010 1:35 pm    Post subject: Reply with quote

I also had some references to v3 and v4 versions of my own assemblies, so TargetFrameworkAttribute did not solve all issues.

HintPath did though. I removed all searchpaths, and added all referenced assemblies with the correct HintPath. Now both SL3 and SL4 projects build ok again Smile

Thanks for pointing that out.
Casper
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