diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-28 00:51:17 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-28 00:51:17 +0100 |
| commit | d5cf794076899803b9a34eb46d3b2e34f3e3cfbc (patch) | |
| tree | 783e637acbeab9c65777c345ae834a93ab7fc86a /CrowIDE/src/Project.cs | |
| parent | 8e82014a444722660692bbf730017651ddb6c88c (diff) | |
change styling grammar for value now enclose in double quoteStyleModif
Diffstat (limited to 'CrowIDE/src/Project.cs')
| -rw-r--r-- | CrowIDE/src/Project.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CrowIDE/src/Project.cs b/CrowIDE/src/Project.cs index 1cbdecbf..0da5dc19 100644 --- a/CrowIDE/src/Project.cs +++ b/CrowIDE/src/Project.cs @@ -439,10 +439,14 @@ namespace Crow.Coding // } public void GetStyling () { - foreach (ProjectFile pi in flattenNodes.OfType<ProjectFile> ().Where (pp=>pp.Type == ItemType.EmbeddedResource && pp.Extension == ".style")) { - using (Stream s = new MemoryStream (System.Text.Encoding.UTF8.GetBytes(pi.Source))) { - new StyleReader (solution.Styling, s, pi.ResourceID); + try { + foreach (ProjectFile pi in flattenNodes.OfType<ProjectFile> ().Where (pp=>pp.Type == ItemType.EmbeddedResource && pp.Extension == ".style")) { + using (Stream s = new MemoryStream (System.Text.Encoding.UTF8.GetBytes(pi.Source))) { + new StyleReader (solution.Styling, s, pi.ResourceID); + } } + } catch (Exception ex) { + Console.WriteLine (ex.ToString ()); } foreach (ProjectReference pr in flattenNodes.OfType<ProjectReference>()) { Project p = solution.Projects.FirstOrDefault (pp => pp.ProjectGuid == pr.ProjectGUID); |