.NET nanoFramework implements support for 1-Wire protocol using UART, therefore it requires both TX and RX UART pins to work. On the pre-build firmware images it's configured to use pins 16 and 17 as you've mentioned.
You have to connect those together and also add a 4.7k pull up resistor.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…