.NET6 Windows Support

Starting from version 2022.2 the Eyeshot installer includes .NET6-Windows assemblies for both WinForms and WPF platforms.

Prerequisites

Prerequisites to build .NET applications:

Upgrade .NET Framework Applications

To convert a .NET Framework project to .NET, you can use the net-upgrade assistant offered by Microsoft.

Open the Developer Command Prompt for VS 2022 and use the below command to install the tool.

dotnet tool install -g upgrade-assistant

Once installed, move to the directory containing the .NET Framework project and use the below command to convert it to the new Microsoft.NET.Sdk format.

upgrade-assistant upgrade .\yourproject.csproj

Follow the instruction of the tool for completing the conversion.

ConvertToNetProject.gif

Once completed the conversion, you need to open the project, change the target framework to .net6.0-windows, and add the NuGet packages according to the .json files shipped with Eyeshot .net6 assemblies (you can find them in the subfolder Bin\net6.0-windows of the Eyeshot installation path)

mceclip2.png

 

mceclip3.png

In the source code folder of the Arrows sample, you can find a converted Visual Studio project file ready to use.

Design-Time Support

Currently, there is no design-time support for Eyeshot .NET6-Windows assemblies and Microsoft does not allow manually adding a custom control to the Toolbox yet (see here).
Moreover, Microsoft has not released the new WinForms Designer SDK docs yet (we're keeping our eyes here).

Anyway, most of the code targeting .NET Framework will work in .NET projects without modifications.
So, a temporary workaround is to create a separate project targeting .NET Framework and use it to launch the old designer for your .NET project's forms.

Was this article helpful?
3 out of 3 found this helpful
Have more questions? Submit a request

Comments

12 comments
  • Great News.

    Will you bring Eyeshot to the Mac then?

    0
  • Hi Stefan,

    Currently, the goal is to give the possibility to use the new language features shipped with .NET6 but only in Windows O.S., sorry.

    0
  • Marcello, is there any plan to match compatibility of the whole .NET 6 environment ? I know that mean implement Metal for Mac and probably focus Vulkan or OpenGL for linux.

    I'm just asking, i am not requesting.

    0
  • Hi Francis,

    Not in the short term, sorry.

    0
  • This might interest you. The framework is compatible for many platform. Might help sprout some ideas.

    https://github.com/dotnet/Silk.NET 

    1
  • Good news, will check it soon!

    0
  • Sounds very interesting. Does this mean, we can use Eyeshot in a MAUI application? Of course only for Windows, but still ist this possible?

    0
  • Hi Rainer,

    Unfortunately no. For using Eyeshot in a MAUI application we need to rewrite the rendering code using a library like the one Francis suggested. 

    As I wrote, it's not planned in the short term, sorry.

    0
  • Dear all, great to hear some news on this matter.

    Are we talking about the geometric kernel only or you also updated the UI components?

    0
  • Hi Matteo,

    We also updated the UI components but only for use on Windows O.S.

    0
  • Thank you @Marcello, sounds great. We'll give it a try as soon as possible, very looking forward to it. Personally, I appreciate the fact that you decided to speed up the development in this area, so thank you very much to the whole team.

    1
  • I also just want to congratulate the DevDept team for making this possible for us. I was able to run Eyeshot in a .NET6 WPF environment with C# language features reserved to .NET Core, such as Span<T>. This is a very important milestone for our team, as we will continue to develop WPF on MS Windows targets, however we can now migrate from .NET framework to .NET6.

    1

Please sign in to leave a comment.