每当我对我创建的结构进行修改时,我必须在更改发生之前退出会话。有没有更好的方法来做到这一点?
Add-Type @"
public struct Computer {
public string Name;
public string ProductName;
public string InstallDate;
public string LastBootTime;
public string ServicePack;
public string ProductVersion;
public string OSArchitecture;
public string Manufacturer;
public string Model;
public string Memory;
}
"@发布于 2012-10-15 19:52:56
这是一个.NET限制。据我所知,加载到appDomain中的程序集不能卸载。这就是您必须关闭powershell控制台并重新启动nes会话的原因。
https://stackoverflow.com/questions/12894902
复制相似问题