문제

I have an application that is deployed via ClickOnce deployment.

I have used NANT in order to automate the publish process.

This is the Build part:

<target name="Build Client" depends="Clean" description="Build">
  <echo message="Building..." />    
  <exec program="${msbuildExe}" workingdir="." verbose="true">
    <arg value="${projectFile}" />
    <arg value="/target:Clean;Publish" />
    <arg value="/p:PublishDir=${testPublishFolder}" />
    <arg value="/p:ApplicationVersion=${version}" />
    <arg value="/p:Publisher=&quot;${publisherName}&quot;" />
    <arg value="/p:Product=&quot;${productName}&quot;" />
    </exec>
  <echo message="Built" />
</target>

Why is this creating Client.application (manifest file) only on root of the deployment folder, while publishing from VisuaStudio (clickOnce) creates identical file in the ApplicationFiles subfolder.

Thanks.

도움이 되었습니까?

해결책

Since nobody answered ...

   <!--COPY APPLICATION MANIFEST TO APPLICATIONFILES FOLDER-->
      <target name="CopyTestApplicationManifestToApplicationFilesFolder"     depends="Dependency target name" description="Update">
      <echo message="Copying..." />
      <copy 
        file="source file"
        tofile="target file" />
       <echo message="Copied" />
     </target>

I just copied it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top