Cannot compile the 2023 R3 libraries

1 Answer 112 Views
General Discussions
Andrew
Top achievements
Rank 1
Andrew asked on 27 Jul 2023, 01:13 AM

With every new release, we recompile the libraries so that we can set the application name to meet licensing requirements.

However, with 2023 R3, the compilation is failing due to four instances of a call to FunctionBase.LinearInterpolate in BrushRenderer.cs which leads to the following compilation error:

Fixed\UI\BrushRenderer.cs(233,50): error CS0117: 'Telerik.Windows.Documents.Fixed.Model.Common.Functions.FunctionBase' does not contain a definition for 'LinearInterpolate'

The LinearInterpolate method is definitely not defined in FunctionBase, would appreciate any available help on this.

 

Fixed\UI\BrushRenderer.cs(233,50): error CS0117: 'Telerik.Windows.Documents.Fixed.Model.Common.Functions.FunctionBase' does not contain a definition for 'LinearInterpolate' [C:\agent\_work\13\s\Source\Controls\PdfViewer\FixedDocumentViewers\Telerik.Windows.Controls.FixedDocumentViewers_WPF.csproj] [C:\agent\_work\13\s\Source\Build\BuildControls.proj]
Fixed\UI\BrushRenderer.cs(233,50): error CS0117: 'Telerik.Windows.Documents.Fixed.Model.Common.Functions.FunctionBase' does not contain a definition for 'LinearInterpolate' [C:\agent\_work\13\s\Source\Controls\PdfViewer\FixedDocumentViewers\Telerik.Windows.Controls.FixedDocumentViewers_WPF.csproj] [C:\agent\_work\13\s\Source\Build\BuildControls.proj]

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin Ivanov
Telerik team
answered on 28 Jul 2023, 06:41 AM

Hello Andrew,

Recently, there were some changes in the infrastructure of the source code. In relation to this, can you please try the following steps to build the source code:

  1. Download and unzip the Telerik_UI_for_WPF_Source_2023_2_606.zip file.
  2. Download and unzip the Telerik_UI_for_WPF_2023_2_606_DPL_Source.zip file.
  3. In the UI for WPF source code folder, uncomment the ValidatePassPhrase method and update the source code using the PowerShell script or manually, as described here.
  4. In the DPL source code folder, uncomment the ValidatePassPhrase method and update the source code as described here. The article talks about the WPF source code folder, but the paths are almost identical in the new folders.
  5. In the DPL source code folder, run the following two files in the same order as below:
    1. Build\BatFiles\GetLatestMSBuildPath.bat
    2. Build\BatFiles\Build_NET40_DocumentProcessing.bat
  6. Copy the DPL binaries from the Binaries/WPF folder of the DPL source code to the Binaries/WPF folder of the WPF source code. The Binaries/WPF directory in the WPF source code doesn't exist, so you will need to create it manually.
  7. In the WPF source code, open the Build/Imports/WPFImportsAtEnd.targets file and comment the line related to StyleCop. The following one:
    <!-- Source Analysis -->
    <!-- <Import Project="..\Tools\StyleCop.MSBuild.5.0.0\build\StyleCop.MSBuild.targets" Condition=" '$(NoSA)' == '' " /> -->
  8. In the WPF source, run the corresponding build file (ex: Build_WPF45_Xamlless.bat)

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Andrew
Top achievements
Rank 1
commented on 28 Jul 2023, 06:58 AM

Thanks for the suggestion, I will give this a go and report back.
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or