Unity使用Rider作为IDE的体验

时间:2017-12-04 19:20:18   收藏:0   阅读:1265
    private static void UpgradeProjectFile(string projectFile)
    {
        …
        FixSystemXml(projectContentElement, xmlns);
        FixSystemThreading(projectContentElement, xmlns);
        …
    }

    private static void FixSystemThreading(XElement projectContentElement, XNamespace xmlns)
    {
        var references = projectContentElement
            .Elements(xmlns + "ItemGroup")
            .Elements(xmlns + "Reference")
            .Where(a => a.Attribute("Include").Value == "System.Threading");
        foreach (var reference in references)
        {
            reference.Remove();
        }
    }
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!