How do i stop dotnet from adding Debug net6.0 subfolder to my output path?

I'm making a project with plugin system, and I need the output path to be exactly the one I specify, without additional subfolders, but when I compile dotnet adds this Debug\net6.0\ subfolder to the output path and it makes the output path messy
8 Replies
phaseshift
phaseshift2y ago
I don't think you need to stop that What is your actual problem Do you know about 'dotnet publish'?
Aragubas (Erased)
hm yes, but I would like to have the debug build not create this extra directories
phaseshift
phaseshift2y ago
So what is wrong with dotnet publish
Aragubas (Erased)
isn't dotnet publish a release build only mode? because I still want to debug the plugin
phaseshift
phaseshift2y ago
No
Aragubas (Erased)
Ooo 👀 so dotnet publish doesn't generate these extra directories?
phaseshift
phaseshift2y ago
You can pick the directory to publish to. Look at the docs 👍
Aragubas (Erased)
Ok! thanks!