Web conversion files are copied to root + bin

I recently upgraded my project to vs 2010.
One of the main reasons for this is to add web conversion files.

With my project updated: I clicked the Add Config Transforms button, I updated a simple value from my configuration for testing purposes, and I published my project on the file system.

I expected to find 1 converted web.config in my root folder.
What I found was 1 converted web.config + with all my config conversion files:
Web.Debug.config, web.Release.config and web.Test.config
Also strange: all these files were also sent to the bin folder. Does anyone know what I'm doing wrong? This seems like normal if I create a completely new web project, but I want to fix an existing updated project.

+3
source share
1 answer

Kind of a dumb cause, but the Copy to output directory property affects all versions for this web.config.
Changing it to Do Not Copy solves my problem.

0
source

Source: https://habr.com/ru/post/1793569/


All Articles