Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. <configuration>
  2. <appSettings>
  3. <WorkingDirectory>C:Working</WorkingDirectory>
  4. </appSettings>
  5. <connectionStrings>
  6. <add name="ApplicationEntities"
  7. connectionString="[TestingConnectionString]"
  8. providerName="System.Data.EntityClient" />
  9. </connectionStrings>
  10. </configuration>
  11.  
  12. <configuration>
  13. <appSettings>
  14. <WorkingDirectory>\prodserverWorking</WorkingDirectory>
  15. </appSettings>
  16. <connectionStrings>
  17. <add name="ApplicationEntities"
  18. connectionString="[ProductionConnectionString]"
  19. providerName="System.Data.EntityClient" />
  20. </connectionStrings>
  21. </configuration>
  22.  
  23. <Fragment>
  24. <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
  25. <Component Id="ProductComponent" Guid="{MY-GUID}">
  26. <File Id="Application.exe"
  27. Name="Application.exe"
  28. Source="..Application.exe"
  29. Vital="yes"
  30. KeyPath="yes"
  31. DiskId="1" />
  32. <File Id="Application.exe.config"
  33. Name="Application.exe.config"
  34. Source="..Application.exe.config"
  35. Vital="yes"
  36. KeyPath="no"
  37. DiskId="1" />
  38. </Component>
  39. </ComponentGroup>
  40. </Fragment>
  41.  
  42. <Component Id="development.app.config" Guid="*">
  43.  
  44. <Condition>DEVELOPMENT</Condition>
  45. <File Name="development.app.config" KeyPath="yes">
  46. <CopyFile Id="development.app.config" DestinationName="app.config" />
  47. </File>
  48.  
  49. <util:XmlFile
  50. Id="WorkingDirectory"
  51. Action="setValue"
  52. File="app.config"
  53. ElementPath="/configuration/appSettings"
  54. Name="WorkingDirectory"
  55. Value="C:Working"
  56. Permanent="no" />
  57.  
  58. </Component>
  59.  
  60. <Component Id="production.app.config" Guid="*">
  61.  
  62. <Condition>PRODUCTION</Condition>
  63. <File Name="production.app.config" KeyPath="yes">
  64. <CopyFile Id="production.app.config" DestinationName="app.config" />
  65. </File>
  66.  
  67. <util:XmlFile
  68. Id="WorkingDirectory"
  69. Action="setValue"
  70. File="app.config"
  71. ElementPath="/configuration/appSettings"
  72. Name="WorkingDirectory"
  73. Value="\prodserverWorking"
  74. Permanent="no" />
  75.  
  76. </Component>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement