Is there a way to read the System.Config connection string in an MSBuild task?
Basically I have a connection string setting in the configuration file
<add name="MyApp.MyConnectionString" connectionString="..." />
And I would like to reference it in the MSBuild task, for example ...
<Target Name="Migrate" DependsOnTargets="Build">
...
<Migrate Connectionstring="$(MyApp.MyConnectionString)" ... />
</Target>
source
share