Topics
24 Jan 2023, 15:33
 473
 1
Replies

4666350
02 Jan 2025, 17:37 ( Updated at: 02 Jan 2025, 19:00 )

RE: Cannot add Winform to .Net 6 cBot

PanagiotisCharalampous said: 

Hi yuval.ein,

I mean I did not find a solution to your problem :)

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

I know this is an old thread but the issue is still current. The solution is to put the following code into the project file of your code library (this is for both WPF and Forms - edit as appropriate). Assuming that your code doesn't use features from the higher version.

  <ItemGroup>
   <FrameworkReference Update="Microsoft.WindowsDesktop.App;Microsoft.WindowsDesktop.App.WPF;Microsoft.WindowsDesktop.App.WindowsForms" TargetingPackVersion="6.0.0" />
 </ItemGroup>

 

Best regards 

Andy


@4666350

4666350
24 Jan 2023, 17:45

Events not triggering

Yes, I've got problems since update to 4.6.1.12976. OnBar and OnTick don't trigger, and subscribing to the actual events makes no difference.

OS Name    Microsoft Windows 10 Home
Version    10.0.19044 Build 19044

Best regards

 

Andy


@4666350