[wix-users] Get ProjectReference OutPut folder in Wix Project

Hoover, Jacob Jacob.Hoover at greenheck.com
Thu May 12 07:00:46 PDT 2016


My gut feel is your Console application is Any CPU, and the wixproj is trying to harvest x86 platform.


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: Thursday, May 12, 2016 6:46 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Get ProjectReference OutPut folder in Wix Project

Hi guys,
I'm trying to get the Output folder of referenced project in my Wix Visual Studio project, using MsBuild task. But it is failing with following error:

C:\Program Files
(x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(724,5):
error : The OutputPath property is not set for project 'ConsoleApplicatio n1.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.
Configuration='Release'  Platfo rm='x86'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Plat form that doesn't exist for this project. [C:\Users\fwaheed\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.cspro
j]

Following is the Target calling MsBuild task.

  <Target Name="AfterBuild">
      <MSBuild
          Projects="@(ProjectReference)"
          Targets="GetTargetPath"
          BuildInParallel="false"
          Condition="'%(Name)'=='ConsoleApplication1'" >
        <Output TaskParameter="TargetOutputs"
ItemName="DependentAssemblies" />
    </MSBuild>
  </Target>

Please note that same target worked perfectly if it is CSharp project, but failing in Wix project.

Can someone guide how to get ReferencedProjects output dirs in Wix Projects?

Thanks

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list