I have a Visual Studio 2019 project with some nuget-packages. This project work very well with the build configuration Release and Debug. Now I have created my own custom build configurations. The problem is that now the project don’t link to some nuget-packages. I also found out why. When I look in *.targets file of some nuget-packages, I see something like this:
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Link>
…
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Link>
…
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Link>
…
</Link>
I think it’s no good solution to manipulate the *.targets file. So I look for a solution, that my custom build configurations inherits the Libraries form Release or Debug. Is this possible and if so how?