FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

Project .net standard referenced in .net framework project

Open HenriqueTelesOpenline opened this issue 2 years ago • 1 comments

Hi!

The project of my report is in .net standard and my app is in .net framework.

Debugging this line:

report.Prepare()

It returns an error:

image

Translating:

'(Memo16): Error CS0012: Type 'System.Enum' is defined in an assembly not used as reference. Add assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' as a reference. (192,4): Error CS0012: Type 'System.Object' is defined in an assembly not used as reference. Add assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' as a reference. (207,8): Error CS0012: Type'System.Decimal' is defined in an assembly not used as reference. Add assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' as a reference. (308,13): Error CS1717: Assignment made to the same variable. Did you intend to assign another element? '

When I reference my report project (net standard) in a .net core app, it works fine. But when I reference my report project (net standard) in my .net framework 4.8 app, returns this message in prepare statement.

There is a specific configuration I need to do in My project ?

HenriqueTelesOpenline avatar May 19 '22 19:05 HenriqueTelesOpenline

Hello!

We will try to reproduce the problem

Best regards Marat

MaratAlaev avatar Jul 06 '22 10:07 MaratAlaev

Hello, is this issue still relevant?

Alekarfes avatar Jan 11 '24 08:01 Alekarfes