Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <configuration>
- <appSettings>
- <WorkingDirectory>C:Working</WorkingDirectory>
- </appSettings>
- <connectionStrings>
- <add name="ApplicationEntities"
- connectionString="[TestingConnectionString]"
- providerName="System.Data.EntityClient" />
- </connectionStrings>
- </configuration>
- <configuration>
- <appSettings>
- <WorkingDirectory>\prodserverWorking</WorkingDirectory>
- </appSettings>
- <connectionStrings>
- <add name="ApplicationEntities"
- connectionString="[ProductionConnectionString]"
- providerName="System.Data.EntityClient" />
- </connectionStrings>
- </configuration>
- <Fragment>
- <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
- <Component Id="ProductComponent" Guid="{MY-GUID}">
- <File Id="Application.exe"
- Name="Application.exe"
- Source="..Application.exe"
- Vital="yes"
- KeyPath="yes"
- DiskId="1" />
- <File Id="Application.exe.config"
- Name="Application.exe.config"
- Source="..Application.exe.config"
- Vital="yes"
- KeyPath="no"
- DiskId="1" />
- </Component>
- </ComponentGroup>
- </Fragment>
- <Component Id="development.app.config" Guid="*">
- <Condition>DEVELOPMENT</Condition>
- <File Name="development.app.config" KeyPath="yes">
- <CopyFile Id="development.app.config" DestinationName="app.config" />
- </File>
- <util:XmlFile
- Id="WorkingDirectory"
- Action="setValue"
- File="app.config"
- ElementPath="/configuration/appSettings"
- Name="WorkingDirectory"
- Value="C:Working"
- Permanent="no" />
- </Component>
- <Component Id="production.app.config" Guid="*">
- <Condition>PRODUCTION</Condition>
- <File Name="production.app.config" KeyPath="yes">
- <CopyFile Id="production.app.config" DestinationName="app.config" />
- </File>
- <util:XmlFile
- Id="WorkingDirectory"
- Action="setValue"
- File="app.config"
- ElementPath="/configuration/appSettings"
- Name="WorkingDirectory"
- Value="\prodserverWorking"
- Permanent="no" />
- </Component>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement