installer icon indicating copy to clipboard operation
installer copied to clipboard

Asp.net runtime missing in arm64 builds.

Open InitusJames opened this issue 7 years ago • 12 comments

pine64@pine64:/build_webapi$ dotnet --version 3.0.100-preview-010046 pine64@pine64:/build_webapi$ sudo dotnet webapi.dll It was not possible to find any compatible framework version The specified framework 'Microsoft.AspNetCore.App', version '3.0.0-preview-18630-0234' was not found.

  • Check application dependencies and target a framework version installed at: /usr/share/dotnet/
  • Installing .NET Core prerequisites might help resolve this problem: https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  • The .NET Core framework and SDK can be installed from: https://aka.ms/dotnet-download

InitusJames avatar Jan 11 '19 21:01 InitusJames

I am not sure what your question is here. But dotnet --version indicates to you the version of the SDK that is being picked up right now. It does not represent the version of the runtime.

For that, you can either run dotnet --list-runtimes or you can look at the runtime section of dotnet --info.

If fails, because your application is expecting to run against a runtime that is not installed in the box.

Also, any particular reason you are running your application as sudo? strictly speaking, that should not be necessary and I would actually argue against it.

livarcocc avatar Jan 11 '19 22:01 livarcocc

Hey, thanks for the reply. I should have made additional points. I followed the steps to install .netcore 3.0 preview on a Pine64 SBC. It went well and I tested the Hello World successfully.

I created a new dotnet new webapi project template, I ran a build against it. I attempted to execute the dll and that is what I pasted previously.

Not sure if it was a bug or not, just trying to be helpful. I am just assuming that if I used dotnet to create and build it should also execute that same build... this is why I posted.

Here is the info dump .NET Core SDK (reflecting any global.json): Version: 3.0.100-preview-010046 Commit: 77865edb2c

Runtime Environment: OS Name: ubuntu OS Version: 16.04 OS Platform: Linux RID: ubuntu.16.04-arm64 Base Path: /usr/share/dotnet/sdk/3.0.100-preview-010046/

Host (useful for support): Version: 3.0.0-preview-27308-3 Commit: 2f528e5f15

.NET Core SDKs installed: 3.0.100-preview-010046 [/usr/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.NETCore.App 3.0.0-preview-27308-3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

InitusJames avatar Jan 11 '19 23:01 InitusJames

We had a bug where for asp.net, we were not using the right version. That should be fixed now though. I see there is not asp.net runtime installed for your machine, which is not expected. You can see that in the .NET Core runtimes installed section there.

livarcocc avatar Jan 11 '19 23:01 livarcocc

Re-opening to investigate why we are missing asp.net runtime in arm64.

livarcocc avatar Jan 11 '19 23:01 livarcocc

These are the steps I followed

curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-l inux-arm64.tar.gz sudo mkdir -p /usr/share/dotnet sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

I found them here, perhaps this is not the correct install steps? https://gist.github.com/richlander/467813274cea8abc624553ee72b28213

InitusJames avatar Jan 11 '19 23:01 InitusJames

This is entirely on our side and it was a great catch. @InitusJames thanks for the bug report.

livarcocc avatar Jan 11 '19 23:01 livarcocc

Ok, great. I'll keep an eye out for a fix, thank you.

InitusJames avatar Jan 11 '19 23:01 InitusJames

No! :(

InitusJames avatar Jan 12 '19 00:01 InitusJames

I assume though that asp.net will eventually be included just not in the preview?

InitusJames avatar Jan 12 '19 00:01 InitusJames

When you install latest, you are picking up nightly builds of the SDK, which may include regressions like this. We have a change already under code review to include it back. This was not intentional.

livarcocc avatar Jan 12 '19 00:01 livarcocc

ok, thanks for the clarification.

InitusJames avatar Jan 12 '19 00:01 InitusJames

Fixed. Will be available in our next builds in about 40 minutes.

livarcocc avatar Jan 12 '19 00:01 livarcocc