This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Config Transformations article #7
- Loading branch information
1 parent
54f82ce
commit 87c5a0d
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Config Transformations | ||
====================== | ||
|
||
Development | ||
----------- | ||
|
||
### First Development Build | ||
|
||
Actor | Action | ||
--------------------- | ---------------------------------------------------------------- | ||
Developer | Copy Config.Development.ps1.template to Config.Development.ps1. | ||
Developer | Modify properties in Config.Development.ps1. | ||
Developer | Execute `psake build`. | ||
copy-configs (psake) | Copy App.Development.config.template to App.Development.config. | ||
copy-configs (psake) | Replace variable placeholders with values in App.Development.config. | ||
BeforeBuild (MSBuild) | Apply App.Development.config transformation to App.config. | ||
|
||
### Second Development Build | ||
|
||
Actor | Action | ||
--------------------- | ---------------------------------------------------------------- | ||
Developer | Execute `psake build` or run project in Visual Studio. | ||
BeforeBuild (MSBuild) | Apply App.Development.config transformation to App.config. | ||
|
||
### Change Development Setting | ||
|
||
Actor | Action | ||
--------------------- | ---------------------------------------------------------------- | ||
Developer | Modify App.Development.config transformation. | ||
Developer | Execute `psake build` or run project in Visual Studio. | ||
BeforeBuild (MSBuild) | Apply App.Development.config transformation to App.config. | ||
|
||
Production | ||
---------- | ||
|
||
Actor | Action | ||
---------------------- | ---------------------------------------------------------------- | ||
Jenkins | Set `Environment` and `SecretConfigPath` environment variables. | ||
Jenkins | Execute `psake clean`. | ||
clean (psake) | Revert all changes in working copy. | ||
Jenkins | Execute `psake publish-web`. | ||
copy-configs (psake) | Replace variable placeholders with values in App.Production.config. | ||
update-version (psake) | Execute `GitVersion /updateassemblyinfo`. | ||
GitVersion | Add or update AssemblyVersion, AssemblyInformationalVersion, AssemblyFileVersion attributes. |