开发者

How do I exclude files from my Azure deployment package?

开发者 https://www.devze.com 2023-03-16 05:23 出处:网络
I have some xml documentation files in my bin directory corresponding to referenced dlls.I want to keep the benefits of having the good intellisense while developing, but I\'d like to exclude the xml

I have some xml documentation files in my bin directory corresponding to referenced dlls. I want to keep the benefits of having the good intellisense while developing, but I'd like to exclude the xml from my deployment package to re开发者_StackOverflow社区duce its file size. Is there a way to prevent that file from being included in the azure cspkg file, but still keep the good intellisense?


The simplest way to do this would be to add a Post-Build Event to delete all XML Files from the output directory. This would run before the package file is created.

In your post build event you would want something like....

if $(ConfigurationName) == Release DEL "$(TargetDir)*.xml"

That should get rid of these files before it is packaged up.

0

精彩评论

暂无评论...
验证码 换一张
取 消