You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After you edited the .csproj-file, you need to restore your NuGet packages within your Project. Run the follwoing command in your ASP.NET Core folder:
102
-
103
-
```
104
-
dotnet restore
105
-
```
106
-
107
91
* Make sure you have __node.js v8.6.0__ and on __macOS/Linux__ the electron-packager installed!
108
92
109
93
sudo npm install electron-packager --global
110
94
111
95
At the first time, you need an Electron.NET project initialization. Type the following command in your ASP.NET Core folder:
112
96
113
97
```
114
-
dotnet electronize init
98
+
electronize init
115
99
```
116
100
117
101
* Now a electronnet.manifest.json should appear in your ASP.NET Core project
118
102
* Now run the following:
119
103
120
104
```
121
-
dotnet electronize start
105
+
electronize start
122
106
```
123
107
### Note
124
108
> Only the first electronize start is slow. The next will go on faster.
@@ -136,26 +120,26 @@ In this YouTube video, we show you how you can create a new project, use the Ele
136
120
137
121
## Build
138
122
139
-
Here you need the Electron.NET CLI too. Type following command in your ASP.NET Core folder:
123
+
Here you need the Electron.NET CLI as well. Type the following command in your ASP.NET Core folder:
140
124
141
125
```
142
-
dotnet electronize build /target win
126
+
electronize build /target win
143
127
```
144
128
145
129
There are additional platforms available:
146
130
147
131
```
148
-
dotnet electronize build /target win
149
-
dotnet electronize build /target osx
150
-
dotnet electronize build /target linux
132
+
electronize build /target win
133
+
electronize build /target osx
134
+
electronize build /target linux
151
135
```
152
136
153
137
Those three "default" targets will produce x64 packages for those platforms.
154
138
155
139
For certain NuGet packages or certain scenarios you may want to build a pure x86 application. To support those things you can define the desired [.NET Core runtime](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog), the [electron platform](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#platform) and [electron architecture](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#arch) like this:
0 commit comments