dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.75k stars 1.07k forks source link

.NET developer pack 4.8 not available for Ubuntu? #18646

Open Jay991 opened 3 years ago

Jay991 commented 3 years ago

I'm trying to compile the onlyoffice Community server code on an Ubuntu droplet. After installing .NET 5.0 with runtime, I'm having difficult installing the .NET Developer pack version 4.8. As the the below shows that the pack is much needed:

# dotnet run 
/usr/share/dotnet/sdk/5.0.301/Microsoft.Common.CurrentVersion.targets(1216,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/root/CommunityServer/common/ASC.Common/ASC.Common.csproj]

The build failed. Fix the build errors and run again.

Where do I get a developer pack that is compatible with Ubuntu 20?

mairaw commented 3 years ago

I think this error message might be misleading. You can't run .NET Framework on Ubuntu. @rainersigwald any tips?

Can you run dotnet --info and paste the output here? I'm thinking you might be missing the .NET 5 SDK. Is the project targeting .NET 5?

rainersigwald commented 3 years ago

You can't run .NET Framework on Ubuntu.

That's true, though you should be able to build for it, because the reference assembly package should be automatically referenced by the SDK since dotnet/sdk#10981.

That said, this error message is misleading. Filed https://github.com/dotnet/msbuild/issues/6647 to track.

I'm going to move this to the SDK repo since I think the reference should be added automatically by the SDK and that doesn't seem to be working here.

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

creeloper27 commented 1 year ago

Any update on this?

DareDevilStudios commented 1 year ago

officially the dotnet framework 4.8 is only supported by windows. I have an application in dotnet framework 4.8 and now my client needs them in dotnet core 6.0 because its supported in linux. so do anyone any distributions that can handle dotnet framework 4.8? it would be of great help