You can create your own .targets file that sets the properties that you want to distribute for all your projects.
In your regular .targets file, set the property:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> <OutputPath>$(SolutionDir)\bin\Debug</OutputPath> </PropertyGroup>
You still have to include this target file in each .csproj file, as well as delete the previously set OutputPath property (otherwise, it will override the one installed in your .targets file).
<Import Project="<PathToYourTargetsFile>"/>
While this is still related to editing each .csproj file, itβs a little more convenient than setting this property directly in each file, especially if you think there may be more settings that you want each project to have in common In the future, in any added projects, developers had to remember this .targets file.
source share