the example doesn't work #820

Closed
opened 2026-01-29 16:49:31 +00:00 by claunia · 7 comments
Owner

Originally created by @PrestigeDevop on GitHub (Sep 2, 2022).

Originally assigned to: @GregorBiswanger on GitHub.

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

image

what am I missing here ?

Originally created by @PrestigeDevop on GitHub (Sep 2, 2022). Originally assigned to: @GregorBiswanger on GitHub. is this clean template ( clean code ) um.. I might need some help here is there ![image](https://user-images.githubusercontent.com/85388342/188175529-d9284fbb-0954-456d-8ddc-48c6a5a83bb8.png) what am I missing here ?
claunia added the question label 2026-01-29 16:49:31 +00:00
Author
Owner

@PrestigeDevop commented on GitHub (Sep 2, 2022):

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 commented on GitHub (Sep 2, 2022): 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
Author
Owner

@PrestigeDevop commented on GitHub (Sep 3, 2022):

update : when I try Electron API demo with
image
image

@PrestigeDevop commented on GitHub (Sep 3, 2022): update : when I try Electron API demo with ![image](https://user-images.githubusercontent.com/85388342/188267910-a5a530e5-47ef-47dd-a4e4-daa2af8ee97e.png) ![image](https://user-images.githubusercontent.com/85388342/188267926-5d6feb0c-bc0a-4d02-b820-a0518eba5bdc.png)
Author
Owner

@PrestigeDevop commented on GitHub (Sep 3, 2022):

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 commented on GitHub (Sep 3, 2022): ``` 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 ```
Author
Owner

@PrestigeDevop commented on GitHub (Sep 5, 2022):

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 commented on GitHub (Sep 5, 2022): 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://user-images.githubusercontent.com/85388342/188510424-5abbdd4a-3ccd-405d-b067-02f79159d8c2.png) https://github.com/NuGet/NuGetGallery/issues/9218
Author
Owner

@PrestigeDevop commented on GitHub (Sep 10, 2022):

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

@PrestigeDevop commented on GitHub (Sep 10, 2022): currently I'm using https://github.com/medhatelmasry/ElectronServerBlazorEf , however I couldn't enable hot reload ..
Author
Owner

@rtaylor72 commented on GitHub (Nov 1, 2022):

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 commented on GitHub (Nov 1, 2022): 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!
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 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!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#820