DotNetOnLinux icon indicating copy to clipboard operation
DotNetOnLinux copied to clipboard

Speakr app does not build with dotnet version 2 on Fedora 25

Open tuxdna opened this issue 8 years ago • 2 comments

$ pwd
/tmp/DotNetOnLinux/DockerExamples/Speakr

$ dotnet restore
  Restoring packages for /tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj...
  Restoring packages for /tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj...
  Restoring packages for /tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj...
  Restoring packages for /tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj...
/opt/dotnet/sdk/2.0.0-preview1-005977/NuGet.targets(97,5): error : Unable to resolve 'dotnet-publish-iis (>= 1.0.0)' for '.NETCoreApp,Version=v2.0'. [/tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj]
/opt/dotnet/sdk/2.0.0-preview1-005977/NuGet.targets(97,5): error : Value cannot be null. [/tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj]
/opt/dotnet/sdk/2.0.0-preview1-005977/NuGet.targets(97,5): error : Parameter name: path [/tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj]
/opt/dotnet/sdk/2.0.0-preview1-005977/NuGet.targets(97,5): error : Unable to resolve 'Microsoft.EntityFrameworkCore.Commands (>= 1.0.0)' for '.NETStandardApp,Version=v1.5'. [/tmp/DotNetOnLinux/DockerExamples/Speakr/Speakr.csproj]

$ dotnet --version
2.0.0-preview1-005977

tuxdna avatar Jun 12 '17 07:06 tuxdna

I can't get .NET Core to work on MY Fedora 25 machine. If you can point me in the right direction for getting .NET running on Fedora 25 (In other words, HOW did you get it working?), I'll fix this issue. Thanks.

DonSchenck avatar Jun 13 '17 20:06 DonSchenck

@DonSchenck Yes, there is an issue related to libicu version available on Fedora 25. Therefore I used the 2.x preview version as suggested here

  • https://github.com/dotnet/coreclr/issues/4087#issuecomment-307409211

All you need to do is follow these instructions:

sudo dnf install libunwind libicu
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?linkid=848738
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
dotnet new console -o hwapp
cd hwapp
dotnet restore
dotnet run

I hope that helps 👍

tuxdna avatar Jun 13 '17 21:06 tuxdna