Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

the example doesn't work

Open PrestigeDevop opened this issue 1 year ago • 5 comments

is this clean template ( clean code ) um.. I might need some help here is there

image

what am I missing here ?

PrestigeDevop avatar Sep 02 '22 15:09 PrestigeDevop

it seems that the packages aren't installed correctly , when I try to install them manually it failed with dotnet 2.0 doesn't exist ( this is the first time I see this ) , I deleted obj folder and localnugtpackage.json it didn't help any idea , or working sample

PrestigeDevop avatar Sep 02 '22 16:09 PrestigeDevop

update : when I try Electron API demo with image image

PrestigeDevop avatar Sep 03 '22 11:09 PrestigeDevop

F:\New folder\ElectronCORE>electronize start
Start Electron Desktop Application...
Arguments:

dotnet publish  -r win-x64 -c "Debug" --output "F:\New folder\ElectronCORE\obj\Host\bin" /p:PublishReadyToRun=false /p:PublishSingleFile=false /p:DisabledWarnings=true
MSBuild version 17.3.0-preview-22329-01+77c72dd0f for .NET
F:\New folder\ElectronCORE\ElectronNET.sln : Solution file error MSB4249: Unable to build website project "ElectronNET.Host". The ASP.NET compiler is only available on the .NET Framework version of MSBuild.


Error occurred during dotnet publish: 1

PrestigeDevop avatar Sep 03 '22 11:09 PrestigeDevop

So it seems that I had to restrict dotnet sdk to v5 using globl.json also deleting Nuget package catch and performing https://github.com/dotnet/msbuild/issues/7940#issuecomment-1236172029

hmm now it seems that https://status.nuget.org/ has some issue

image

https://github.com/NuGet/NuGetGallery/issues/9218

PrestigeDevop avatar Sep 05 '22 20:09 PrestigeDevop

currently I'm using https://github.com/medhatelmasry/ElectronServerBlazorEf , however I couldn't enable hot reload ..

PrestigeDevop avatar Sep 10 '22 19:09 PrestigeDevop

I am also running into this same error: dotnet publish -r win-x64 -c "Debug" --output "....\Electron.NET-master\obj\Host\bin" /p:PublishReadyToRun=false /p:PublishSingleFile=false /p:DisabledWarnings=true MSBuild version 17.4.0-preview-22470-08+6521b1591 for .NET C:_Source\Other\Electron.NET-master\Electron.NET-master\ElectronNET.sln : Solution file error MSB4249: Unable to build website project "ElectronNET.Host". The ASP.NET compiler is only available on the .NET Framework version of MSBuild.

The ElectronNET.Host project references .NET Framework 4.8 in the solution file, and I think is the cause of this issue. Adding a global.json file in the solution directory is not working. Any help with this?

Thanks!

rtaylor72 avatar Nov 01 '22 18:11 rtaylor72