Roger Leigh created XALANC-767:
----------------------------------
Summary: Bug in visual studio project dependencies for XalanExe
Key: XALANC-767
URL: https://issues.apache.org/jira/browse/XALANC-767
Project: XalanC
Issue Type: Bug
Components: XalanC
Affects Versions: 1.11
Environment: Visual Studio / msbuild
Reporter: Roger Leigh
Assignee: Steven J. Hathaway
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.
{noformat}
<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>
{noformat}
Testing:
{noformat}
msbuild Xalan.sln "/p:Configuration=Debug /p:Platform=x64 /t:XalanExe
{noformat}
Without the above change, this will fail.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]