I use VS2017 and web deploy. I have two solutions : a web app that we deploy on an Azure VM, and a C# solution which is the engine of the web app.
The web app has references of the engine, but it needs also to have dlls in App_Data to work (my coworker speaks about runtime problem). So every time I publish, I need to manualy copy-paste dll to the VM App_Data directory.
I want to automatize this process, I tried some approaches of this problem :
- Puting batch script in web app properties => build => afterbuild, in order to automatically copy dll from bin/debug to App_Data. It creates files, but when I publish, App_data files are ignored
- Edit the pubxml file from C:/MyProject/Properties/PublishProfiles/mypp.pubxml, but I didn't found relevant infos or documentation to push farther.
- Using Azure RunBooks, but I didn't find the option to launch it after publishing.
I look for either some help or documentation about publishing I didn't already found, or maybe some trick for azure runbook.
Don't hesitate to point out typos, I'm quite tired at the moment.