Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet restore fails #1

Open
a-stankevich opened this issue Feb 25, 2019 · 1 comment
Open

dotnet restore fails #1

a-stankevich opened this issue Feb 25, 2019 · 1 comment

Comments

@a-stankevich
Copy link

dotnet restore fails with weird error message:

C:\doc\dev\electron.net-musicplayer-sample\MyElectronMusicPlayer\MyElectronMusicPlayer.csproj : error NU1202: Package ElectronNET.CLI 0.0.11 is not compatible
 with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package ElectronNET.CLI 0.0.11 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) / any [C:\doc\dev\electron.n
et-musicplayer-sample\MyElectronMusicPlayer.sln]
C:\doc\dev\electron.net-musicplayer-sample\MyElectronMusicPlayer\MyElectronMusicPlayer.csproj : error NU1212: Invalid project-package combination for Electron
NET.CLI 0.0.11. DotnetToolReference project style can only contain references of the DotnetTool type  [C:\doc\dev\electron.net-musicplayer-sample\MyElectronMu
sicPlayer.sln]

dotnet sdk installed on machine: 2.1.500, 2.1.504, 2.2.104.
dotnet version 2.1.500 is selected for this specific build by using global.json file.

Any ideas how to get this working?
Thanks

@a-stankevich
Copy link
Author

Fixed by removing line with DotNetCliToolReference from csproj file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant