Koushik,
Since you say it is working in Visual Studio and not in the MSI, I suspect you have a similar issue to Christian. The location of the itinerary XML files moves in a Server deploy to ..\ESB, so you must account for that with a conditional PropertyGroup that checks if '$(Configuration)' == 'Server'.
Here's a complete example:
Thanks,
Tom
Since you say it is working in Visual Studio and not in the MSI, I suspect you have a similar issue to Christian. The location of the itinerary XML files moves in a Server deploy to ..\ESB, so you must account for that with a conditional PropertyGroup that checks if '$(Configuration)' == 'Server'.
Here's a complete example:
<PropertyGroupCondition="'$(Configuration)' != 'Server'"><EsbItinerariesLocationPath>..\Itineraries</EsbItinerariesLocationPath></PropertyGroup><PropertyGroupCondition="'$(Configuration)' == 'Server'"><EsbItinerariesLocationPath>..\ESB</EsbItinerariesLocationPath></PropertyGroup><ItemGroup><FilesToXmlPreprocessInclude="TestItineraryWithBtdf.xml"><LocationPath>$(EsbItinerariesLocationPath)</LocationPath><OutputFilename>TestItineraryWithBtdf.Gen.xml</OutputFilename></FilesToXmlPreprocess></ItemGroup><ItemGroup><EsbItinerariesInclude="TestItineraryWithBtdf.Gen.xml"><LocationPath>$(EsbItinerariesLocationPath)</LocationPath></EsbItineraries></ItemGroup>
Tom