mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Error occurred during dotnet publish: 1 #255
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @srameh on GitHub (Jan 26, 2019).
Has anyone found a solution for this?
It used to work with CLI 0.0.9. But stopped working after upgrade to 2.1.
I have tired all posted solutions here with no luck. I have upgraded and downgraded the versions but no luck.
@duncanawoods commented on GitHub (Jan 29, 2019):
Can you post the full output? There should be an error message.
The last time this happened to me, it was just due to overlooking a build error and it wasn't immediately obvious from the output either. Best to double check with a
dotnet build.@srameh commented on GitHub (Feb 1, 2019):
@duncanawoods , thank you for the reply. The dotnet build does not show any errors. There are warnings but it is common. I tried it with a new vanilla app and still get the same error regardless of .net core version. Electron CLI is installed globally. Could it be my Windows development environment?
@duncanawoods commented on GitHub (Feb 4, 2019):
As I say, post the output of the tool otherwise I can't help. The warnings may be relevant and errors can appear before warnings which is what tripped me up before with the same question.
@srameh commented on GitHub (Feb 4, 2019):
@duncanawoods
Here is the output:
@duncanawoods commented on GitHub (Feb 4, 2019):
Thanks.
The thing that stands out is that there are two version of .net core involved:
There is 2.0
and 2.2
I struggle to keep track with how sdk versions are set at build, run and publish but it sounds like there is mismatch happening between e.g.
Take a look at:
https://docs.microsoft.com/en-us/dotnet/core/versions/selection
dotnet publsh?@srameh commented on GitHub (Feb 5, 2019):
I managed to get rid of the warnings and update all projects to core 2.2.
Now the
Electornize startcommand does not give the error, it starts the web server but the Electron Window does not open. Looking at the output folder, I noticed that it actually does NOT generate the Electron related folders/files.I will share the output and my .csproj content in a bit.
@gfs commented on GitHub (Mar 30, 2019):
0.0.11 currently works with 2.1. You should try 2.1.9 (2.1.505 SDK)
@srameh commented on GitHub (Apr 2, 2019):
Thank you GFS, I have it all setup and working.
@asandersSAP commented on GitHub (Jul 12, 2019):
@srameh I know this issue has been closed but can you share your solution for how you got it to work? Maybe it's only your .csproj file?
@srameh commented on GitHub (Jul 12, 2019):
I Installed the CLI globally. Here is the .csproj entry:
$(IncludeRazorContentInPack) $(IncludeRazorContentInPack) $(IncludeRazorContentInPack) PreserveNewest