sayedihashimi / package-web

Extensions for ASP.NET web projects package creation
32 stars 18 forks source link

web.config's missing after publish #28

Closed robertmuehsig closed 11 years ago

robertmuehsig commented 11 years ago

After I ran the Publish-Interactive.ps1 script all *.configs are gone. If I deploy the same package via VS everything is fine.

Missing files: web.config in root folder ~/Views/web.config some other .config files I added as "content" in my project.

Any ideas what happend?

sayedihashimi commented 11 years ago

There is a skip command passed to msdeploy.exe to prevent transforms from being published. It should not impact web.config, and especially not other .config files.

Can you clarify what you mean by the files are gone? Did you mean the files are not published, or the source files are deleted?

robertmuehsig commented 11 years ago

The source files (= files that are already published on the server) are gone after I execute the powershell. I will try to create a demo project.

sayedihashimi commented 11 years ago

Hey Robert I looked into it a bit and realized that I was not passing in -enableRule:doNotDelete. I've made a fix and released a new version (1.14) can you try it out and let me know if it resolves the issue for you?

sayedihashimi commented 11 years ago

Closing this as it should be fixed. Please re-open if that's not the case.