Completed
Last Updated: 13 Mar 2024 09:45 by ADMIN
Release 2024.1.130 (2024 Q1)
Stefan
Created on: 11 Dec 2023 14:06
Category: UI for WPF
Type: Bug Report
0
Common: Telerik UI for WPF`s source code can not be built in Debug70/Debug70.NoXaml configurations

Steps to reproduce: 

1. Download Telerik_UI_for_WPF_Source_[Version].zip

2. Modify the Release70 configuration to Debug70 in the following script - Build_WPF70_Xamlless.bat

3. Execute the bat file to reproduce the error:

Telerik_UI_for_WPF_Source_[Version]\Core\Controls\Input\Touch\TouchManagerV3\TouchManager.TouchMode.cs(242,9): error CS1519: Invalid token '{' in class, record, struct, or interface member declaration [D:\temp\tic\Telerik_UI_for_WPF_Source_2023_3_1114\Core\Controls\Controls_NetCore_5cmyf5ge_wpftmp.csproj::TargetFramework=net7.0-windows]

 

As I workaround I would suggest editing the NetCoreConfigurations.targets with the following property groups: 

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug70|AnyCPU' ">
    <TargetFrameworks>net7.0-windows</TargetFrameworks>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <OutputPath>bin\$(Configuration)\</OutputPath>
    <DefineConstants>DEBUG;WPF;NETCORE;CODE_ANALYSIS;WPF45;WPF40</DefineConstants>
    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
    <WarningsAsErrors />
    <SourceAnalysisTreatErrorsAsWarnings>true</SourceAnalysisTreatErrorsAsWarnings>
    <StyleCopEnabled>false</StyleCopEnabled>
    <TargetFrameworkVersionString>70</TargetFrameworkVersionString>
  </PropertyGroup>

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug70.NoXaml|AnyCPU' ">
    <TargetFrameworks>net7.0-windows</TargetFrameworks>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <OutputPath>bin\$(Configuration)\</OutputPath>
    <DefineConstants>DEBUG;WPF;NETCORE;CODE_ANALYSIS;WPF45;WPF40;NOXAML</DefineConstants>
    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
    <WarningsAsErrors />
    <SourceAnalysisTreatErrorsAsWarnings>true</SourceAnalysisTreatErrorsAsWarnings>
    <StyleCopEnabled>false</StyleCopEnabled>
    <NoXaml>true</NoXaml>
    <GenerateImplicitStyles>true</GenerateImplicitStyles>
    <TargetFrameworkVersionString>70</TargetFrameworkVersionString>
  </PropertyGroup> 

The file can be found here: Telerik_UI_for_WPF_Source_[Version]\Build\Imports\NetCoreConfigurations.targets.

0 comments