我正在尝试在VS调试立即窗口中使用下面的对象来显示对象的展开视图(请参见Visual Studio how to serialize object from debugger):
#Create netns, set lo up
ip netns add pia
ip netns exec pia ip link set dev lo up
#Create bridge, disable stp, set br0 up
brctl addbr br0
brctl stp br0 off
ip link set dev br0 up
#Create links between v-ethernet devices and bridge's v-ethernet
# veth1 = v-ethernet for root ns
# veth2 = v-ethernet for pia ns
# br-veth# are the bridge interface connections
ip link add veth1 type veth peer name br-veth1
ip link add veth2 type veth peer name br-veth2
brctl addif br0 br-veth1
brctl addif br0 br-veth2
#Assign veth2 to pia ns
ip link set veth2 netns pia
#Set interfaces up and assign addresses
ifconfig veth1 10.1.1.1/24 up
ifconfig br-veth1 10.1.1.2/24 up
ifconfig br-veth2 10.1.2.1/24 up
ip netns exec pia ifconfig veth2 10.1.2.2/24 up
尝试时,出现以下错误:错误CS0103:名称“ Newtonsoft”在当前上下文中不存在
在当前情况下如何添加Newtonsoft?注意:我已经尝试在正在调试的项目中添加Newtonsoft作为参考,但是仍然遇到相同的错误。