diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2022-01-14 14:23:37 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2022-01-18 12:27:02 +0000 |
commit | eec5a70d60a5344056f62999b546efbb7483c596 (patch) | |
tree | 7e59135c0150940dadab8269e087b5ed0ac44f7b /QtVsTools.Core | |
parent | 2c6d704451a524204633aa4f747c0b0ece2a875d (diff) |
Make Visual Studio copy the resource file, remove dead code
Change-Id: Id0c2109568b7fb19c08852d2719a0af276cc27a0
Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Diffstat (limited to 'QtVsTools.Core')
-rw-r--r-- | QtVsTools.Core/QtProject.cs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/QtVsTools.Core/QtProject.cs b/QtVsTools.Core/QtProject.cs index 1302c5ef..53264389 100644 --- a/QtVsTools.Core/QtProject.cs +++ b/QtVsTools.Core/QtProject.cs @@ -29,13 +29,11 @@ using EnvDTE; using Microsoft.VisualStudio.VCProjectEngine; using System; -using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; -using System.Threading.Tasks; using System.Windows.Forms; using System.Xml; using QtVsTools.Core.QtMsBuild; @@ -2234,35 +2232,6 @@ namespace QtVsTools.Core } } - public static string CreateQrcFile(string projectDir, string className, string destName) - { - var fullDestName = projectDir + "\\" + destName; - - if (!File.Exists(fullDestName)) { - FileStream s = null; - try { - s = File.Open(fullDestName, FileMode.CreateNew); - if (s.CanWrite) { - using (var sw = new StreamWriter(s)) { - s = null; - sw.WriteLine("<RCC>"); - sw.WriteLine(" <qresource prefix=\"" + className + "\">"); - sw.WriteLine(" </qresource>"); - sw.WriteLine("</RCC>"); - } - } - } finally { - if (s != null) - s.Dispose(); - } - var attribs = File.GetAttributes(fullDestName); - File.SetAttributes(fullDestName, attribs & (~FileAttributes.ReadOnly)); - } - - var fi = new FileInfo(fullDestName); - return fi.FullName; - } - public void AddActiveQtBuildStep(string version, string defFile = null) { if (FormatVersion < Resources.qtMinFormatVersion_ClProperties) |