azuredatastudio: Database Project on Ubuntu 22.04 Cannot find .NET Core SDK 3.1 or higher
- Azure Data Studio Version: 1.39.1
- OS Version: Ubuntu 22.04
Steps to Reproduce:
- clone git repo locally
- build or publish throws "The .NET SDK cannot be located. Project build will not work. Please install .NET Core SDK version 3.1 or higher or update the .NET SDK location in settings if already installed.
Does this issue occur when all extensions are disabled?: Yes/No
Yes
This project does publish correctly under Windows.
dotnet --info
.NET SDK (reflecting any global.json): Version: 6.0.110 Commit: ce0a42998a
Runtime Environment: OS Name: ubuntu OS Version: 22.04 OS Platform: Linux RID: ubuntu.22.04-x64 Base Path: /usr/lib/dotnet/dotnet6-6.0.110/sdk/6.0.110/
global.json file: Not found
Host: Version: 6.0.10 Architecture: x64 Commit: 5a400c212a
.NET SDKs installed: 6.0.110 [/usr/lib/dotnet/dotnet6-6.0.110/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.10 [/usr/lib/dotnet/dotnet6-6.0.110/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.10 [/usr/lib/dotnet/dotnet6-6.0.110/shared/Microsoft.NETCore.App]
Download .NET: https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-info
Updated path in settings:
/usr/lib/dotnet/dotnet6-6.0.110/sdk/6.0.110/
Build output:
When I set the path in settings I get the same error and when I look at the path used it has “/dotnet” appended.
“/usr/lib/dotnet/dotnet6-6.0.110/sdk/6.0.110/dotnet” build “/home/gscheife/Projects/DataStation/DataStation.Database/DS_Exports/DS_Exports.sqlproj” /p:NetCoreBuild=true /p:NETCoreTargetsPath=“/home/gscheife/.azuredatastudio/extensions/microsoft.sql-database-projects-0.19.0/BuildDirectory” stderr: /bin/sh: 1: /usr/lib/dotnet/dotnet6-6.0.110/sdk/6.0.110/dotnet: not found stderr:
“/usr/lib/dotnet/dotnet6-6.0.110/sdk/6.0.110/dotnet” build “/home/gscheife/Projects/DataStation/DataStation.Database/DS_Exports/DS_Exports.sqlproj” /p:NetCoreBuild=true /p:NETCoreTargetsPath=“/home/gscheife/.azuredatastudio/extensions/microsoft.sql-database-projects-0.19.0/BuildDirectory” … exited with code: 127 “/usr/lib/dotnet/dotnet6-6.0.110/sdk/6.0.110/dotnet” build “/home/gscheife/Projects/DataStation/DataStation.Database/DS_Exports/DS_Exports.sqlproj” /p:NetCoreBuild=true /p:NETCoreTargetsPath=“/home/gscheife/.azuredatastudio/extensions/microsoft.sql-database-projects-0.19.0/BuildDirectory” … errored out: Process exited with code 127
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (8 by maintainers)
@jbtcode Sure you can go ahead and create a new issue to track it. In the meantime, can you try setting “/usr/share/dotnet” as the dotnet path- and see if that works?