I found one about – ignoring a project
However, I do not want to publish some individual files or folders (inside web application) to Azure. For example InternalOnly.aspx, /LocalOnlyFolder/
Is there any way I can set a list of files or folders not to publish?
Thank in advance!
Any file you dont want to publish, you just need to set the file property to “copy to output directory as DO NOT COPY”. This way when you will package the application that particular file will not be part of package and will never be on Azure.
AS you can see the ASPX will not be in package: