Open naseem1amjad opened 2 months ago
@naseem1amjad , I'm able to build this solution by
1) setting all projects to target 4.8,
2) disabling the C++ proj optimization and
3) Disabling signing in all .csproj files
https://github.com/clawsoftware/clawPDF/compare/master...demitry:clawPDF:feature-demitry-nsis
I am using Visual Studio 2022 on Windows 10 (having C#, C++ and Installation Package installed) to build ClawPDF but getting errors (14 errors in Release and 15 errors in Debug)
Extra Error in DEBUG mode:
Error: D8016 '/ZI' and '/GL' command-line options are incompatible clawmon C:\clawPDF-master\src\clawmon\monitor\cl 1
Please note that I also installed .NET Framework 4.5 using workaround as stated in https://stackoverflow.com/questions/70022194/open-net-framework-4-5-project-in-vs-2022-is-there-any-workaround I guess, V4.5 was required for SystemInterface and SystemWrapper Rest of the projects are requiring v4.6.2
Here are the screenshots:
(Release)
(Debug)
(Visual Studio)
Kindly help me in building the solution.
Thanks Naseem
P.S. I also tried stable version but still unable to build the solution. Here is the full list of errors:
Severity Code Description Project File Line Suppression State Details Error The tag 'DataGridComboBoxColumnWithBindingHack' does not exist in XML namespace 'clr-namespace:clawSoft.clawPDF.Shared.ViewModels.Wrapper;assembly=clawPDF.Shared'. Line 34 Position 26. clawPDF C:\clawPDF-stable\clawPDF\Views\UserControls\PrinterTab.xaml 34 Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props. SystemInterface C:\clawPDF-stable\SystemWrapper\SystemInterface\SystemInterface.csproj 244 Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\clawPDF.Settings\signClawPDF.pfx'. clawPDF.Settings Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\ftplib\signClawPDF.pfx'. ftplib Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props. SystemWrapper C:\clawPDF-stable\SystemWrapper\SystemWrapper\SystemWrapper.csproj 260 Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\clawPDF.Mail\signClawPDF.pfx'. clawPDF.Mail Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\clawPDF.Utilities\signClawPDF.pfx'. clawPDF.Utilities Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\PDFProcessor\signClawPDF.pfx'. PDFProcessing Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\clawPDF.Core\signClawPDF.pfx'. clawPDF.Core Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\clawPDF.Bridge\signClawPDF.pfx'. clawPDF.Bridge Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\clawPDF.Shared\signClawPDF.pfx'. clawPDF.Shared Error Unable to get MD5 checksum for the key file "signClawPDF.pfx". Could not find file 'C:\clawPDF-stable\SetupHelper\signClawPDF.pfx'. SetupHelper Error The tag 'ActionControl' does not exist in XML namespace 'clr-namespace:clawSoft.clawPDF.Shared.Views.ActionControls;assembly=clawPDF.Shared'. Line 1 Position 31. clawPDF C:\clawPDF-stable\clawPDF\Views\ActionControls\EmailClientActionControl.xaml 1 Error The type reference cannot find a public type named 'TabHeaderControl'. Line 45 Position 68. clawPDF C:\clawPDF-stable\clawPDF\Views\ApplicationSettingsWindow.xaml 45 Error The type reference cannot find a public type named 'TabHeaderControl'. Line 84 Position 77. clawPDF C:\clawPDF-stable\clawPDF\Views\ProfileSettingsWindow.xaml 84 Error The tag 'CurrentProfileViewModel' does not exist in XML namespace 'clr-namespace:clawSoft.clawPDF.Shared.ViewModels.UserControls;assembly=clawPDF.Shared'. Line 11 Position 10. clawPDF C:\clawPDF-stable\clawPDF\Views\UserControls\AutosaveTab.xaml 11 Error XDG0008 The name "PrinterTabViewModel" does not exist in the namespace "clr-namespace:clawSoft.clawPDF.ViewModels.UserControls". clawPDF C:\clawPDF-stable\clawPDF\Views\UserControls\PrinterTab.xaml 14 Error XDG0006 Shared attribute in namespace 'http://schemas.microsoft.com/winfx/2006/xaml' can be used only in compiled resource dictionaries. clawPDF C:\clawPDF-stable\clawPDF\Views\UserControls\PrinterTab.xaml 17 Error XDG0008 The name "DataGridComboBoxColumnWithBindingHack" does not exist in the namespace "clr-namespace:clawSoft.clawPDF.Shared.ViewModels.Wrapper;assembly=clawPDF.Shared". clawPDF C:\clawPDF-stable\clawPDF\Views\UserControls\PrinterTab.xaml 34 Error XDG0006 Shared attribute in namespace 'http://schemas.microsoft.com/winfx/2006/xaml' can be used only in compiled resource dictionaries. clawPDF C:\clawPDF-stable\clawPDF\Views\UserControls\PrinterTab.xaml 88 Error The tag 'CurrentProfileViewModel' does not exist in XML namespace 'clr-namespace:clawSoft.clawPDF.Shared.ViewModels.UserControls;assembly=clawPDF.Shared'. Line 14 Position 10. clawPDF C:\clawPDF-stable\clawPDF\Views\UserControls\SaveTab.xaml 14 Error D8016 '/ZI' and '/GL' command-line options are incompatible clawmon C:\clawPDF-stable\clawmon\monitor\cl 1