Error: The reference assemblies for .NETFramework,Version=v4.7.1 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
This is the error i face in Vs code in Ubuntu. I could not download .NETFramework v4.7.1 . only avaialble for window.
Full detail :
Starting OmniSharp server at 5/7/2020, 7:12:33 PM
Target: /home/prakash/Documents/Unity_Projects/test18422/test18422.sln
OmniSharp server started.
Path: /home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/run
PID: 29575
Starting OmniSharp on ubuntu 19.10 (x64)
DotNetPath set to dotnet
Located 1 MSBuild instance(s)
1: StandAlone 16.4 - "/home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin"
MSBUILD_EXE_PATH environment variable set to '/home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
Registered MSBuild instance: StandAlone 16.4 - "/home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin"
CscToolExe = csc.exe
MSBuildToolsPath = /home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin
CscToolPath = /home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/Roslyn
BypassFrameworkInstallChecks = true
MSBuildExtensionsPath = /home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild
Detecting Cake files in '/home/prakash/Documents/Unity_Projects/test18422'.
Could not find any Cake files
Detecting projects in '/home/prakash/Documents/Unity_Projects/test18422/test18422.sln'.
Queue project update for '/home/prakash/Documents/Unity_Projects/test18422/Assembly-CSharp.csproj'
Detecting CSX files in '/home/prakash/Documents/Unity_Projects/test18422'.
Could not find any CSX files
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
Loading project: /home/prakash/Documents/Unity_Projects/test18422/Assembly-CSharp.csproj
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
Configuration finished.
Omnisharp server running using Stdio at location '/home/prakash/Documents/Unity_Projects/test18422' on host 29421.
The reference assemblies for .NETFramework,Version=v4.7.1 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
Failed to load project file '/home/prakash/Documents/Unity_Projects/test18422/Assembly-CSharp.csproj'.
/home/prakash/Documents/Unity_Projects/test18422/Assembly-CSharp.csproj
/home/prakash/.vscode/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 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
Attempted to update project that is not loaded: /home/prakash/Documents/Unity_Projects/test18422/Assembly-CSharp.csproj
@PrakTech You make a good point. This isn't a helpful error message when on MacOS or Linux. For these platforms you can install the stable release of Mono (6.8.0 from https://www.mono-project.com/download/stable/#download-lin) to install the .NET 4.7.1 reference assemblies that Unity projects require.
@cartermp Can we update this error or the linked website to include instructions for non-Windows platforms?
@JoeRobich you are right . Linux needs mono install along with dotnet core sdk to work out . Thanks for solution.
@JoeRobich Thanks!
Most helpful comment
@JoeRobich you are right . Linux needs mono install along with dotnet core sdk to work out . Thanks for solution.