Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include/Exclude files when creating Azure package

Tags:

azure

I am creating an azure package using Visual Studio (right click on azure project -> package). I would like to include and exclude some files in the package similar to this: How do you include additional files using VS2010 web deployment packages? What do I need to do to get this working for the azure package function?

like image 494
e2e8 Avatar asked Nov 14 '22 03:11

e2e8


1 Answers

Windows Azure deployment package (CSPKG) file is different then regular VS publish package even though CSPKG file is actually a zip file. You can rename CSPKG to zip and see what is inside however you can not add or delete files this way as your package will be corrupt.

The best way to add files to your CSPKG is to add those files in your VS project and then in those file properties set "copy local as true" means add these files to final output. This way when you build the CSPKG the files will be there.

like image 126
AvkashChauhan Avatar answered Jan 10 '23 08:01

AvkashChauhan