Ignore files in Windows Azure virtual application

前端 未结 4 592
执念已碎
执念已碎 2021-01-03 07:48

I want to have a virtual application inside a site. I have modified my ServiceDefinition.csdef as


        

        
4条回答
  •  太阳男子
    2021-01-03 07:51

    1. Create a WebDeploy Profile
    2. Enlist all the files to exclude next to on the .csproj like thisbin\file1.dll;file3.csv. Detailed info here
    3. If you want, define a relative path for the publish drop location on the .pubxml file (generally found under Properties\PublishProfiles under the web project) such as bin\WebDeployDropLocation
    4. Provide the drop location to ServiceDefinitioin.csdef like this: under . Documentation here.
    5. Publish the WebProject and verify the files, Create Package from the WebRole project.
    6. Edit the file name of the resulting .cspkg, change it to a .zip file to verify the contents

提交回复
热议问题