Unable to build (The given key was not present in the dictionary.) #224

Closed
opened 2026-01-29 16:34:14 +00:00 by claunia · 8 comments
Owner

Originally created by @Khaoz-Topsy on GitHub (Oct 23, 2018).

Hi,

I am struggling to get Electron.Net to build my project, I can use dotnet electronize start and that works properly but I cannot seem to get it to build. My project is dotnet core MVC
image

ElectronNET.CLI Version: 0.0.9.0
Microsoft.AspNetCore 2.1.1

Originally created by @Khaoz-Topsy on GitHub (Oct 23, 2018). Hi, I am struggling to get Electron.Net to build my project, I can use ```dotnet electronize start``` and that works properly but I cannot seem to get it to build. My project is dotnet core MVC ![image](https://user-images.githubusercontent.com/15005470/47358158-3f165980-d6c9-11e8-93e7-21bc19d2fd2e.png) ElectronNET.CLI Version: 0.0.9.0 Microsoft.AspNetCore 2.1.1
Author
Owner

@robertmuehsig commented on GitHub (Oct 23, 2018):

Can you share the your sample application?

@robertmuehsig commented on GitHub (Oct 23, 2018): Can you share the your sample application?
Author
Owner

@Khaoz-Topsy commented on GitHub (Oct 23, 2018):

Thanks for the super fast reply 😀
Here is most of the application
https://github.com/Khaoz-Topsy/electron.NetTimesheetsApp

@Khaoz-Topsy commented on GitHub (Oct 23, 2018): Thanks for the super fast reply 😀 Here is most of the application https://github.com/Khaoz-Topsy/electron.NetTimesheetsApp
Author
Owner

@Khaoz-Topsy commented on GitHub (Oct 23, 2018):

In pushing the code to that github repo, I used hyper instead of bash, and then it built. So it seems that I am only unable to use dotnet electonize build /target win in bash

@Khaoz-Topsy commented on GitHub (Oct 23, 2018): In pushing the code to that github repo, I used hyper instead of bash, and then it built. So it seems that I am only unable to use ```dotnet electonize build /target win``` in bash
Author
Owner

@kwakuduahc1 commented on GitHub (Oct 25, 2018):

The problem is your .csproj. I ran into the same issue today. I had inadvertently modified a part of my csproj i couldn't remember.

Try copying and pasting a working csproj of a different project that works. If the need be, reinstall all nuget packages that will be missing.

Then lastly, avoid updating the netcore packages, e.g. entityframework etc. This project only works with netcore 2 and updating any dependency to a different version can be fatal

@kwakuduahc1 commented on GitHub (Oct 25, 2018): The problem is your .csproj. I ran into the same issue today. I had inadvertently modified a part of my csproj i couldn't remember. Try copying and pasting a working csproj of a different project that works. If the need be, reinstall all nuget packages that will be missing. Then lastly, avoid updating the netcore packages, e.g. entityframework etc. This project only works with netcore 2 and updating any dependency to a different version can be fatal
Author
Owner

@Khaoz-Topsy commented on GitHub (Oct 25, 2018):

Well without changing the files, I can run dotnet electonize build /target win from hyper or the cmd, but not from bash

@Khaoz-Topsy commented on GitHub (Oct 25, 2018): Well without changing the files, I can run `dotnet electonize build /target win` from hyper or the cmd, but not from bash
Author
Owner

@robertmuehsig commented on GitHub (Dec 5, 2018):

We updated our nuget packages: Maybe this will help (and make sure to read the readme, because the ElectronNET CLI is now a global dotnet tool.

@robertmuehsig commented on GitHub (Dec 5, 2018): We updated our nuget packages: Maybe this will help (and make sure to read the readme, because the ElectronNET CLI is now a global dotnet tool.
Author
Owner

@robertmuehsig commented on GitHub (Jan 1, 2019):

If the issue is still not solved just let me know.

@robertmuehsig commented on GitHub (Jan 1, 2019): If the issue is still not solved just let me know.
Author
Owner

@pedromrpinto commented on GitHub (Mar 27, 2019):

I had the same issue with version 0.0.11.0

I was using the following comand in git bash:
electronize build /target win
using windows cmd solved the issue

@pedromrpinto commented on GitHub (Mar 27, 2019): I had the same issue with version 0.0.11.0 I was using the following comand in git bash: `electronize build /target win` using windows cmd solved the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#224