ReportDesigner: NETSDK1136 Error on opening report

1 Answer 20 Views
Report Designer (standalone)
Chris
Top achievements
Rank 1
Chris asked on 16 Sep 2025, 12:05 PM | edited on 16 Sep 2025, 12:15 PM

Hello,

we have an existing and large reporting project which we moved from .NET Framework 4 to .net 8 now (<TargetFramework>net8.0-windows</TargetFramework>). Build the project in Visual Studio is fine and successful.

When I try to open a report of this project in the ReportDesigner by selecting the .cs file I get a dialog in which thje correct Designer und project file is shown. Pressing Finish leads to the following error which I do not understand because the TargetFramework point to a windows plattform:

Build in progressMSBuild-Version 17.14.18+a338add32 für .NET Framework
Der Buildvorgang wurde am 16.09.2025 13:43:02 gestartet.
Projekt "D:\Workspace\MainNext\Components\Report\de.ser.Reporting\de.ser.Reporting\de.ser.Reporting.csproj" auf Knoten "1" (Standardziele).
C:\Program Files\dotnet\sdk\9.0.304\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(142,5): error NETSDK1136: Die Zielplattform muss auf Windows festgelegt werden (üblicherweise durch Einbeziehen von "-windows" in die TargetFramework-Eigenschaft), wenn Windows Forms oder WPF verwendet wird oder auf Projekte oder Pakete verwiesen wird, die dies tun. [D:\Workspace\MainNext\Components\Report\de.ser.Reporting\de.ser.Reporting\de.ser.Reporting.csproj]
Die Erstellung des Projekts "D:\Workspace\MainNext\Components\Report\de.ser.Reporting\de.ser.Reporting\de.ser.Reporting.csproj" ist abgeschlossen (Standardziele) -- FEHLER.
Fehler beim Buildvorgang.
"D:\Workspace\MainNext\Components\Report\de.ser.Reporting\de.ser.Reporting\de.ser.Reporting.csproj" (Standardziel) (1) ->
(_CheckForInvalidWindowsDesktopTargetingConfiguration Ziel) -> 
  C:\Program Files\dotnet\sdk\9.0.304\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(142,5): error NETSDK1136: Die Zielplattform muss auf Windows festgelegt werden (üblicherweise durch Einbeziehen von "-windows" in die TargetFramework-Eigenschaft), wenn Windows Forms oder WPF verwendet wird oder auf Projekte oder Pakete verwiesen wird, die dies tun. [D:\Workspace\MainNext\Components\Report\de.ser.Reporting\de.ser.Reporting\de.ser.Reporting.csproj]
    0 Warnung(en)
    1 Fehler
Verstrichene Zeit 00:00:01.77

How to solve this error?

Regards,

Chris

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 19 Sep 2025, 07:43 AM

Hi Chris,

If I understand correctly, this build error is thrown despite the target framework being net8.0-windows for the main project that you build, is that correct? Have you checked whether you do not have any project references where their target frameworks require windows as well, but it is not present?

Generally, we recommend storing the reports in a separate class library project. Please try moving your reports to such a project - Create a .NET class library using Visual Studio - .NET | Microsoft Learn, and try using that project when opening the reports in the Standalone Report Designer for .NET.

If the issue persists, would it be possible to send us a sample project where the issue is reproducible so that we can debug it locally?

I look forward to your next update. 

Regards,
Dimitar
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.

Tags
Report Designer (standalone)
Asked by
Chris
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or