I have 4 appsettings.json in my .NetCore application:
- appsettings.json
- appsettings.Development.json
- appsettings.Test.json
- appsettings.Production.json
All of appsettings has Do not copy property, but I notice when publishing the application, all of appsettings files are copied over to publish folder. For example, appsettings.Production.json is copied to publish folder even I am publishing using Test environment.
It doesn't hurt but I want to know whether is it possible to copy just appsettings.json and appsettings.Test.json when publishing using Test environment?