public void XamlEmptyXName() { // [Python Tools] Adding attribute through XAML in IronPython application crashes VS. // http://pytools.codeplex.com/workitem/743 PythonAnalyzer analyzer = new PythonAnalyzer(InterpreterFactory, Interpreter); string xamlPath = TestData.GetPath(@"TestData\Xaml\EmptyXName.xaml"); string pyPath = TestData.GetPath(@"TestData\Xaml\EmptyXName.py"); var xamlEntry = analyzer.AddXamlFile(xamlPath); var pyEntry = analyzer.AddModule("EmptyXName", pyPath); xamlEntry.ParseContent(new FileStreamReader(xamlPath), null); using (var parser = Parser.CreateParser(new FileStreamReader(pyPath), PythonLanguageVersion.V27, new ParserOptions() { BindReferences = true })) { pyEntry.UpdateTree(parser.ParseFile(), null); } pyEntry.Analyze(CancellationToken.None); }