今天在看ProC#7的时候,有一章需要引用到PresentationFramework.dll这个程序集。
在微软的docs网站上找到了这个参考例子:
csc -lib:c:\ -reference:t2.dll t2.cs
所以,依葫芦画瓢,需要找到PresentationFramework.dll的位置就可以了。
找到的位置如下:
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework\....\PresentationFramework.dll
最后通过编译,可以调用System.Windows.MessageBox方法。