Oh, yes, I see what you mean now. Unfortunately, there is no way (yet) to 
specify a separate target directory for each output group. The binaries project 
output group contains just the binary outputs of the project and it would be 
incorrect to assume "bin\" just as it would be incorrect to include "Debug\" or 
"Release\" when harvesting a C# project.

You could get what you want by manually adding HarvestProject items to your 
project file for each of the output groups, but until you can specify the 
output path in the HarvestProject, I don't know how you can overcome them both 
harvesting to the same wxs file.
Ex:
<HarvestProject Include="path\to\projectfile" >
  <ProjectOutputGroups>Binaries</ProjectOutputGroups>
  <DirectoryIds>BinFolder</DirectoryIds>
  <ProjectName>WebProject</ProjectName>
</HarvestProject>
<HarvestProject Include="path\to\projectfile" >
  <ProjectOutputGroups>Content;Satellites</ProjectOutputGroups>
  <DirectoryIds>INSTALLLOCATION</DirectoryIds>
  <ProjectName>WebProject</ProjectName>
</HarvestProject>

I do plan to add a HeatOutput metadata where you will be able to override the 
output path but I don't know when that will make it in.

-----Original Message-----
From: Jason Stangroome [mailto:jason.stangro...@readify.net] 
Sent: Tuesday, March 16, 2010 3:53 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Heat 3.5.1419 not harvesting VS2010 ASP.NET MVC2 
project correctly

I could but I would expect all the .aspx,.ascx files, etc to move in there too. 
Simplifying, this is what is currently generated:

.\default.aspx
.\web.config
.\webproject.dll
.\images\logo.jpg

And this is what it needs to be:

.\default.aspx
.\web.config
.\BIN\webproject.dll  <--
.\images\logo.jpg

All of these files (and many more) are harvested from the web project but the 
compiled binaries end up in the wrong folder.
 

Jason Stangroome
Readify | Senior Developer
M: +61 422 924 675 | E: jason.stangro...@readify.net | W: www.readify.net

-----Original Message-----
From: Tony Paloma [mailto:apal...@microsoft.com]
Sent: Wednesday, 17 March 2010 9:40 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Heat 3.5.1419 not harvesting VS2010 ASP.NET MVC2 
project correctly

Can you change the "Directory ID" property on the project reference to the id 
of a bin directory that you author in manually?

-----Original Message-----
From: Jason Stangroome [mailto:jason.stangro...@readify.net]
Sent: Tuesday, March 16, 2010 3:05 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Heat 3.5.1419 not harvesting VS2010 ASP.NET MVC2 project 
correctly

Hi all,



I have an ASP.NET MVC2 project in Visual Studio 2010 RC and added a WiX 
v3.5.1419 Setup project to the solution. I added the MVC project as a reference 
to the Setup project and ensured the reference properties were set to 
Harvest=True and Project Output=BinariesContentSatellites. During the build, 
Heat.exe is executed to generate the obj/Debug/_WebProject.wxs file, but the 
contents of this file and the effect of the resulting .msi is such that the 
binaries (ie WebProject.dll, etc) are installed in the base install folder 
instead of under the required /bin/ folder.



My suspicion is that the MVC2 project is not being detected as a web project 
but as a normal C# project instead. Is this a bug or is there something I'm 
doing wrong?



Thank you,



Jason Stangroome
Readify | Senior Developer

Head Office: Suite 408, Life.Labs Building, 190 Harbour Esplanade, Docklands 
VIC 3008, Australia
M: +61 422 924 675 | E: 
jason.stangro...@readify.net<mailto:jason.stangro...@readify.net> | W: 
www.readify.net<http://www.readify.net/>



MIS Email Signature 
Banner<http://readify.net/about-readify/press/readify-makes-2008-mis-strategic-100-list/>




------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval Try the new software tools for 
yourself. Speed compiling, find bugs proactively, and fine-tune applications 
for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval Try the new software tools for 
yourself. Speed compiling, find bugs proactively, and fine-tune applications 
for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to