error NU1202: error NU1212 #752

Closed
opened 2026-01-29 16:47:43 +00:00 by claunia · 4 comments
Owner

Originally created by @bbhxwl on GitHub (Jan 26, 2022).

error NU1202: 包 ElectronNET.CLI 13.5.1 与 netcoreapp2.2 (.NETCoreApp,Version=v2.2) 不兼容。 包 ElectronNET.CLI 13.5.1 支持: net5.0 (.NETCoreApp,Version=v5.0) / any
I:\project\WebApplication1\WebApplication1\WebApplication1.csproj : error NU1212: ElectronNET.CLI 13.5.1 的项目包组合无 效。DotnetToolReference 项目类型仅可包含 DotnetTool 类型的引用
未能还原 I:\project\WebApplication1\WebApplication1\WebApplication1.csproj (用时 241 ms)。
已还原 I:\project\WebApplication1\WebApplication1\WebApplication1.csproj (用时 478 ms)。

Error occurred during dotnet publish: 1

image
image

Originally created by @bbhxwl on GitHub (Jan 26, 2022). error NU1202: 包 ElectronNET.CLI 13.5.1 与 netcoreapp2.2 (.NETCoreApp,Version=v2.2) 不兼容。 包 ElectronNET.CLI 13.5.1 支持: net5.0 (.NETCoreApp,Version=v5.0) / any I:\project\WebApplication1\WebApplication1\WebApplication1.csproj : error NU1212: ElectronNET.CLI 13.5.1 的项目包组合无 效。DotnetToolReference 项目类型仅可包含 DotnetTool 类型的引用 未能还原 I:\project\WebApplication1\WebApplication1\WebApplication1.csproj (用时 241 ms)。 已还原 I:\project\WebApplication1\WebApplication1\WebApplication1.csproj (用时 478 ms)。 Error occurred during dotnet publish: 1 ![image](https://user-images.githubusercontent.com/26525599/151094621-ca564d60-1b0b-46d4-a562-ba47a2411a1c.png) ![image](https://user-images.githubusercontent.com/26525599/151094691-ccee2207-31d4-4cde-a0b7-9b8e2814de1e.png)
claunia added the bug label 2026-01-29 16:47:43 +00:00
Author
Owner

@danatcofo commented on GitHub (Jan 26, 2022):

It's not a netcoreapp2.2 package. Incompatible with your solution. Upgrade to a netcore v5 app.

This is not a bug, it's by design.

@danatcofo commented on GitHub (Jan 26, 2022): It's not a netcoreapp2.2 package. Incompatible with your solution. Upgrade to a netcore v5 app. This is not a bug, it's by design.
Author
Owner

@bbhxwl commented on GitHub (Jan 26, 2022):

It's not a netcoreapp2.2 package. Incompatible with your solution. Upgrade to a netcore v5 app.

This is not a bug, it's by design.

I didn't set 2.2. I know what the problem is. The old version of the Chinese article I read needs to set the project file. It seems that I don't need it now, but I still didn't succeed

@bbhxwl commented on GitHub (Jan 26, 2022): > It's not a netcoreapp2.2 package. Incompatible with your solution. Upgrade to a netcore v5 app. > > This is not a bug, it's by design. I didn't set 2.2. I know what the problem is. The old version of the Chinese article I read needs to set the project file. It seems that I don't need it now, but I still didn't succeed
Author
Owner

@danatcofo commented on GitHub (Jan 26, 2022):

Well there isn't any other information in what you posted as the bug that indicates anything differently. Nothing to go on beyond the obvious necoreapp2.2 in the error message.

@danatcofo commented on GitHub (Jan 26, 2022): Well there isn't any other information in what you posted as the bug that indicates anything differently. Nothing to go on beyond the obvious necoreapp2.2 in the error message.
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#752