Multiple settings files?

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, Alex.Davies, melvyn.harbour

Multiple settings files?

Postby cadi » Thu Sep 09, 2010 2:55 pm

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: Select all
<SearchPath>C:\\Program Files\\Microsoft SDKs\\Silverlight\\v4.0\\Libraries\\Client</SearchPath>

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


Thanks,
Casper
cadi
 
Posts: 6
Joined: Tue Jul 20, 2010 10:28 am
Location: Rotterdam

Postby Alex.Davies » Fri Sep 10, 2010 1:25 pm

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
Alex.Davies
 
Posts: 335
Joined: Tue Dec 02, 2008 12:23 pm
Location: Cambridge, uk

Postby cadi » Fri Sep 10, 2010 1:35 pm

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
cadi
 
Posts: 6
Joined: Tue Jul 20, 2010 10:28 am
Location: Rotterdam


Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 1 guest