添加引用:AspNetMMCExt
添加名字空间:using Microsoft.Aspnet.Snapin;
AspNetManagementUtility aspnet = new AspNetManagementUtility();
![](/Images/OutliningIndicators/None.gif)
string verList;
aspnet.AcquireVersionList(out verList, 0);
![](/Images/OutliningIndicators/None.gif)
Console.WriteLine(verList);
添加名字空间:using Microsoft.Aspnet.Snapin;
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)