aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Core/MsBuild/MsBuildProjectReaderWriter.cs
Commit message (Collapse)AuthorAgeFilesLines
* Correct style errors in CoreAli Can Demiralp2025-07-141-3/+3
| | | | | Change-Id: I17570e5eab6c0902691c521af408e30aa7dd1a7f Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Remove unused includes and correct include order in CoreAli Can Demiralp2025-06-241-3/+2
| | | | | Change-Id: If8d6f6d39679474756e9ec31feae3e19bbbaac19 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update copyright comments to 2025Ali Demiralp2025-03-181-4/+2
| | | | | Change-Id: I9ab1f8919a3d28cb546cd71bfdc8da1f6ae9e123 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Refactor registry paths in Core and PackageAli Can Demiralp2024-07-291-1/+1
| | | | | Change-Id: I5a211d400c04f9d33dc69ae1aaf11f842f3eae86 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Use more safe string.Equals(...) functionKarsten Heimrich2024-07-261-4/+4
| | | | | | | Do not throw if the first string object to be compared is null. Change-Id: If5524796d88858afce6172ead46c607c225db216 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Add IDC integration to Qt/MSBuildAli Can Demiralp2024-06-171-0/+22
| | | | | | Fixes: QTVSADDINBUG-962 Change-Id: Ia033082f1484ba6126e5509cccadadc0d2cf0387 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Introduce and use none throwing {File|Directory} helper functionsKarsten Heimrich2024-05-171-8/+8
| | | | | Change-Id: I91f66c8c75a2be043b760b668280a82281fb946f Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Correct conversion of moc_predef steps and set output path to $(IntDir)Ali Can Demiralp2024-04-091-2/+5
| | | | | | | | | | | | | The project importer was ignoring moc_predef steps since it was searching for "moc.exe" within their commands, which does not exist, since predefs are handled by cl and not moc.exe. This is no longer the case. Furthermore the predef output was hard-coded to "debug\" and "release\" directories under the project root. This has been changed to respect the $(IntDir). Fixes: QTVSADDINBUG-987 Change-Id: Ibc6b01d68a7cd27bad3c3148a0562ef399ac743b Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add a new and rename existing constants specifying registry pathsKarsten Heimrich2024-03-271-1/+1
| | | | | Change-Id: I35a0183cc00945b9a0a57212d657de4eaddc9b16 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Change source license to LicenseRef-Qt-Commercial or GPL-3.0-onlyAli Can Demiralp2024-02-281-1/+1
| | | | | | | | ... WITH Qt-GPL-exception. Fixes: QTVSADDINBUG-1179 Change-Id: I74fe451eec352af13436548cfd9a28f832fc0757 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update license year from 2023 to 2024Ali Can Demiralp2024-01-091-1/+1
| | | | | Change-Id: I38700243f7ef55239b247945324e4e0a978b097f Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Adjust namespace of Utils class to match folder structureKarsten Heimrich2024-01-081-1/+1
| | | | | | Change-Id: I462c9cc4b96aaf354f77739da64202e2a7dc8af2 Reviewed-by: Ali Can Demiralp <ali.demiralp@qt.io> Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Shuffle around constant registry path valuesKarsten Heimrich2024-01-081-2/+1
| | | | | Change-Id: I674906eeea61bd36eec593a3b2f85ba46fce8664 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix null reference exception while converting a projectKarsten Heimrich2023-10-121-1/+2
| | | | | | | | | | The project in question was a Win32Proj project to be converted to QtV3 project. The project did contain a "ItemDefinitionGroup" without attributes, crashing the conversion process while trying to access the "Condition" attribute. Change-Id: I3b8559e474c2769b15ab4dff32f74a3c099e56c3 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix broken .vcxproj when auto-generating .qrc filesKarsten Heimrich2023-09-271-2/+7
| | | | | | | | | | | Importing a .pro file may result in a "corrupted" .vcxproj file after automatic .qrc file generation. The generated MSBuild contains an ExcludedFromBuild tag which we have not taken into account, but must. Fixes: QTVSADDINBUG-1113 Change-Id: I65983ae2ae40f7cb2c586c5658a46db7908f359d Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix importing a project with no filters or solution fileKarsten Heimrich2023-09-271-2/+2
| | | | | Change-Id: Ic59164f4b7be144a39550048397877257b154c56 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Enable option to convert non-Qt VC projectsMiguel Costa2023-08-301-3/+3
| | | | | | Fixes: QTVSADDINBUG-27 Change-Id: Ib4408d5c149965828f08435f0442f27561549f71 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Refactor project conversionMiguel Costa2023-08-281-529/+23
| | | | | Change-Id: I15f831d6e38fa29e9136fc122ebd5f18dbaaeffb Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Implement converting custom build steps for lreleaseKarsten Heimrich2023-08-231-1/+33
| | | | | | Task-number: QTVSADDINBUG-408 Change-Id: If75fca720782c271253081f54ef23866bb71a6d1 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Generate project format conversion reportMiguel Costa2023-08-161-16/+99
| | | | | | | | | | | | | | | | | | | | | | | | Generated conversion reports show which files were modified during the conversion, and allow viewing differences of pre- and post-conversion file contents. Reports will also show changes made during each step (i.e. call to Commit()) of the conversion procedure. Reports are formatted as XAML files, containing a FlowDocument object that can be displayed on a WPF rich-text control. Additional metadata is added to allow viewing pre-conversion file contents (which makes the conversion report also an effective backup of the project). When a project is converted (including from an imported .pro file), a conversion report file is generated next to the project file and with the same name, but with the extension '.qtvscr'. The user is notified of the successful conversion, and given the option to open the report. For that purpose, an editor for '.qtvscr' files (ConversionReportViewer) is also provided. Generated reports can thus be viewed at any time by opening them in the VS IDE (provided that the Qt VS Tools extension remains installed). Change-Id: Id5f360b85b51feddb020c131e4b013aea97f9bb0 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Refactor MsBuildProjectReaderWriterMiguel Costa2023-08-161-107/+78
| | | | | Change-Id: Id3da1d3e74bee3a4a465abf579a04d3982faa77b Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix updating the project format can result in multiple entriesKarsten Heimrich2023-07-211-2/+4
| | | | | | | | | Fixes the unconditional addition of the MultiProcessorCompilation entry. If the value already exists, don't add it again. Fixes: QTVSADDINBUG-1077 Change-Id: Ie2e3fcce07c12195777b822ae323f8bca198ace9 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Rename all QtProject{and related classes} to MsBuildProject{...}Karsten Heimrich2023-06-291-23/+23
| | | | | Change-Id: I7e730590938754892ae223c75bdb2d4611568055 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Rename MsBuildProject to MsBuildProjectReaderWriterKarsten Heimrich2023-06-291-0/+1713
Change-Id: I1c22e2300650a03eda603a7b29cfcdcbe5e7d5b2 Reviewed-by: Miguel Costa <miguel.costa@qt.io>