Deploy config files alongside with dotnet tool install

oserin 21 Reputation points
2022-05-19T12:48:32.23+00:00

Hello,

I am basically packing my build that consists also in xml and json configuration files that my cli looks for in the same directory as my exe binary (maybe not the best way to handle the info in these configuration files ?).

It all works well when I build and execute since the build folder will have these configuration files but when I install it via dotnet only the exe files are deployed to the path that I specify and the config files being put under .store/name of app/version/.net framework version and so on.

I was wondering if there was a way to specify to also deploy these specific config files in the same path when I use dotnet tool install (or update).

Any idea if possible at all ?
Kind Regards

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
0 comments No comments
{count} votes