| Author |
Message |
cadi
Joined: 20 Jul 2010 Posts: 6 Location: Rotterdam
|
Posted: Thu Sep 09, 2010 2:55 pm Post subject: Multiple settings files? |
|
|
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 |
|
 |
Alex.Davies
Joined: 02 Dec 2008 Posts: 335 Location: Cambridge, uk
|
Posted: Fri Sep 10, 2010 1:25 pm Post subject: |
|
|
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 |
|
 |
cadi
Joined: 20 Jul 2010 Posts: 6 Location: Rotterdam
|
Posted: Fri Sep 10, 2010 1:35 pm Post subject: |
|
|
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
Thanks for pointing that out.
Casper |
|
| Back to top |
|
 |
|
|
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