How to set the output path of several visual C# projects

后端 未结 4 1918
时光说笑
时光说笑 2020-12-24 07:08

I have a solution that contains several c# projects and I would like to be able to set the output path and other properties on all the projects together in a single place. P

4条回答
  •  -上瘾入骨i
    2020-12-24 07:31

    Set the $(OutputPath) property in a common property sheet. Then delete that entry in all the project files you want to it to affect. Then import that property sheet into all your projects.

    For hundreds of projects that can be very tedious. Which is why I wrote a tool to help with this:

    https://github.com/chris1248/MsbuildRefactor

提交回复
热议问题