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
phaseshift3y ago
I don't think you need to stop that What is your actual problem Do you know about 'dotnet publish'?
Harley Sky Saphri
hm yes, but I would like to have the debug build not create this extra directories
phaseshift
phaseshift3y ago
So what is wrong with dotnet publish
Harley Sky Saphri
isn't dotnet publish a release build only mode? because I still want to debug the plugin
phaseshift
phaseshift3y ago
No
Harley Sky Saphri
Ooo 👀 so dotnet publish doesn't generate these extra directories?
phaseshift
phaseshift3y ago
You can pick the directory to publish to. Look at the docs 👍
Harley Sky Saphri
Ok! thanks!

Did you find this page helpful?