Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-299

Using build.targets (MSBuild) with Before-/AfterBuild instead of pre-/post-build events in *.csproj

    XMLWordPrintable

Details

    • Icon: Improvement/Rework Improvement/Rework
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0-alpha.3
    • 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

      Attachments

        Activity

          People

            chefkoch chefkoch (Inactive)
            chefkoch chefkoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: