❔ Checking Compatibility?!

I'm planning a Crystal Reports proxy for WinForms application developed in .net7. The thing is i need to have a multipart solution that can call reports and show its result, in case if .net 3+ Crystal Reports is not supported in any way... I've checked online but still couldn't find any useful nuget or 3rd party solution for that. What I'm planning is to have a .net standard application that can hold a WinForms form and show report however i like, all my reporting requirements can be boiled down to just 4 constructors and a few configs that can be done on runtime. I'm stuck on the point where i need to add Form class to .net standard, in add new file dialogue box there is no option to do so, also if i copy past a file it throws errors that are not resolved by any ways that im used to.
7 Replies
ohthatstheone
ohthatstheoneOP2y ago
.net standard because any .net framework dll/library is not supported in .net core 6/7
Anton
Anton2y ago
well you still won't be able to load these dlls from a .net 7 app even if you do it from a .net standard class library. Also, .net standard can't reference .net framework either
Trinitek
Trinitek2y ago
it is technically possible to reference a Framework WinForms control library from a NET 7 WinForms app toolbox support is questionable though and you may have control visibility issues
Trinitek
Trinitek2y ago
confirmed
Trinitek
Trinitek2y ago
and the reference in the NET 7 project file isn't anything more than
<ItemGroup>
<ProjectReference Include="..\FrameworkControls\FrameworkControls.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FrameworkControls\FrameworkControls.csproj" />
</ItemGroup>
there is some built-in compatibility with Framework packages that makes this work, so it's hopefully not too surprising
Anton
Anton2y ago
but it's not guaranteed and some features have a chance of just not working
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server