If-else aka choose-when-otherwise in .csproj

I had to be able to switch from a direct DLL reference to a NuGet package based on a <Condition> of my Project (csproj) file.
It can be achieved with <Choose><When><Otherwise>.

Open the .csproj with your favorite editor.

	<!--When in Debug mode, use direct DLL's else use the NuGet-->
		<When Condition="'$(Configuration)' == 'Debug'">	
				<Reference Include="My.Project">
				<PackageReference Include="My.Project" Version="1.0.0-beta" />