ElectronNET / electron.net-api-demos

Explore the Electron.NET APIs
MIT License
315 stars 79 forks source link

How to build the demo for NET 6? #31

Closed ZedZipDev closed 1 year ago

ZedZipDev commented 2 years ago

I try to build the app in VS2022 for NET 6 and receive

1>------ Rebuild All started: Project: ElectronNET-API-Demos, Configuration: Release Any CPU ------
Restored D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\ElectronNET-API-Demos.csproj (in 80 ms).
1>D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\ElectronHostHook\connector.ts(2,33): error TS2503: Build:Cannot find namespace 'SocketIO'.
1>D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\ElectronHostHook\excelCreator.ts(1,24): error TS2307: Build:Cannot find module 'exceljs' or its corresponding type declarations.
1>D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\ElectronHostHook\excelCreator.ts(2,37): error TS2307: Build:Cannot find module 'exceljs' or its corresponding type declarations.
1>D:\MyProjects4\Blazor\electron.net-api-demos-master\ElectronNET-API-Demos\ElectronHostHook\index.ts(7,25): error TS2503: Build:Cannot find namespace 'SocketIO'.

How to fix it?

GregorBiswanger commented 1 year ago

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!