msbuild - Is there a "ZIP project" in Visual Studio? -
in visual studio there several "setup , deployment" projects, 1 of these "cab project".
but want simple "zip project" enables me add folders + dll's solution , package in zip file easy distribution on web.
is there such project type ?
when want create myself, resources , references should use build ?
edit
@cheeso
created dummy 'class library' project has dependencies on sub projects. in dummy project used post-build event zip dll's using 7-zip. hoping there better solution this.
the msbuild extension pack offers compression tasks use.
for example, edit project file, uncommenting 'afterbuild' target , including appropriate compression task packages content want.
<project> ... <!-- modify build process, add task inside 1 of targets below , uncomment it. other similar extension points exist, see microsoft.common.targets. <target name="beforebuild"> </target> --> <target name="afterbuild"> <itemgroup> <!-- set collection of files zip--> <filestozip include="c:\yourcontent\*"/> </itemgroup> <msbuild.extensionpack.compression.dnzip taskaction="create" compressfiles="@(filestozip)" zipfilename="c:\yourzipfile.zip"/> </target> </project>
Comments
Post a Comment