c++ - Create CoApp .autopkg to copy files from redist package files to a subdirectory of the $(TargetDir) -
i trying package legacy c++ project coapp. project requires redistributable .dll's package copied subdirectory of $(targetdir).
i can see following in generated myproj.redist.targets file:
<target name="myproj_redist_afterbuild" aftertargets="afterbuild"> <copy sourcefiles="$(msbuildthisfiledirectory)../..//build/native/bin/myprojfoo.dll" destinationfolder="$(targetdir)" skipunchangedfiles="true" /> <copy sourcefiles="$(msbuildthisfiledirectory)../..//build/native/bin/myprojbar.dll" destinationfolder="$(targetdir)" skipunchangedfiles="true" /> </target> i need be:
<target name="myproj_redist_afterbuild" aftertargets="afterbuild"> <copy sourcefiles="$(msbuildthisfiledirectory)../..//build/native/bin/myprojfoo.dll" destinationfolder="$(targetdir)\myproj" skipunchangedfiles="true" /> <copy sourcefiles="$(msbuildthisfiledirectory)../..//build/native/bin/myprojbar.dll" destinationfolder="$(targetdir)\myproj" skipunchangedfiles="true" /> </target> how do in .autopkg file?
i have tried modifying bin rule use : #add-folder : ::nuget.[redist]targets.[${condition}].copytooutput;
i found answer in coapp issues list. feature has been added, online documetation has not been updated. see: issue 27 on coapp in github
Comments
Post a Comment