Details
-
Improvement/Rework
-
Resolution: Fixed
-
Major
-
2.0.0-alpha.1, 2.0.0-alpha.2
-
None
-
None
-
Operating System: Windows 7
Platform: Intel
Description
The pre- and postbuild events and their commands like xcopy and robocopy should be reworked using MSBuild tasks.
These tasks can be defined in a separated build.targets file for each *.csproj.
h4. Additional Information
Using MSBuild tasks and the build.targets files
- fixes a problem if there were multiple commands in post build and some of them failed, but the last succeeded, the build process did not noticed there were a failure as errorlevel was 0 because of last command.
- uses MSBuild based logging so it allows use to use the xmllogger and include messages of these tasks in our BuildReport as well
- allows usage of all available MSBuild tasks without the need to provide additional tools or exe files
- separates the pre/post build commands from the *.csproj file (no changes of *.csproj only because of a new file copy)
- increases transparency by keeping the pre-post build tasks within a dedicated xml-based file
These tasks can be defined in a separated build.targets file for each *.csproj.
h4. Additional Information
Using MSBuild tasks and the build.targets files
- fixes a problem if there were multiple commands in post build and some of them failed, but the last succeeded, the build process did not noticed there were a failure as errorlevel was 0 because of last command.
- uses MSBuild based logging so it allows use to use the xmllogger and include messages of these tasks in our BuildReport as well
- allows usage of all available MSBuild tasks without the need to provide additional tools or exe files
- separates the pre/post build commands from the *.csproj file (no changes of *.csproj only because of a new file copy)
- increases transparency by keeping the pre-post build tasks within a dedicated xml-based file
Attachments
Issue Links
- relates to
-
MP2-284 Rework bin dir harvesting for Client and Server
-
- Closed
-