Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-767

Bug in visual studio project dependencies for XalanExe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.11
    • None
    • XalanC
    • Visual Studio / msbuild
    • Patch

    Description

      In XalanExe.vcxproj:

      Note the addition of "Condition" to each reference in the code below. These are an addition to the current project file. Without this, if you try to e.g. build with "msbuild" on the command-line, it will build both of the referenced projects. This results in a build failure since it will try to build AllInOneICU for a non-ICU build. With the conditions in place, it will only build AllInOneICU for an ICU build, and AllInOne for a non-ICU build.

      I'm using this with VS2013, derived from the VS2010 project. It likely affects all VS project versions using msbuild.

        <ItemGroup>
          <ProjectReference Include="..\AllInOne\AllInOne.vcxproj" Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'">
            <Project>{e1d6306e-4ff8-474a-be7f-45dcba4888b6}</Project>
            <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
          </ProjectReference>
          <ProjectReference Include="..\AllInOne\AllInOneWithICU.vcxproj" Condition="'$(Configuration)'=='Debug with ICU' Or '$(Configuration)'=='Release with ICU'">
            <Project>{755ad11c-80b9-4e33-9d3d-9a68884a3ec8}</Project>
            <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
          </ProjectReference>
        </ItemGroup>
      

      Testing:

      msbuild Xalan.sln "/p:Configuration=Debug /p:Platform=x64 /t:XalanExe
      

      Without the above change, this will fail.

      Attachments

        Activity

          People

            shathaway Steven J. Hathaway
            rleigh Roger Leigh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: