MSBuild conditions: detect whether project file is built as project reference or standalone executable
I’m dealing with the NETSDK1152: Found multiple publish output files with the same relative path
error while building a rather complex project. My project A depends on some classes in project B, both are to be compiled as executables, with their own appsettings.json
. It’s not an option to rename things, and I don’t have time to make big refactorings.
VSCode ‘csproj’ actions only if the target is Windows
I am helping refactor some code so that it builds on both Windows and Linux.
All is well until an external, 3rd party, tool is needed.
Under windows this has been copied to the output folder via some lines in the csproj file