Using environment variables in WSPBuilder.exe.config

Mar 31, 2009 at 3:27 PM

All, is there a way to use environment variables in the WSPBuilder.exe.config file? E.g.
 
<?
xml version="1.0" encoding="utf-8" ?>
<
configuration>
    <
appSettings>
        <
add key="DLLReferencePath" value="%CommonProgramFiles%\microsoft shared\Web Server Extensions\12\CONFIG\ADMINBIN\" />
    </
appSettings>
</
configuration>

Carsten, if not possible, could you please in a future release add Environment.ExpandEnvironmentVariables to the code reading the config file to allow for differences in environment when building WSP’s?

Thanks a lot,
--
Ranko

Dec 14, 2009 at 7:54 PM

I second this.  But better than this, if there was some way to have it read the SolutionDir/TargetDir/etc from the solution, that would be great!  That would allow us to do things like this:

 

    <add key="Excludefiles" value="Microsoft.CommerceServer.Internal.ContentListHelper.dll" />

    <add key="Excludefiles" value="$(TargetDir)Microsoft.CommerceServer.*.dll" />