You are not logged in.

#1 2020-04-05 17:18:59

XDimensioN0
Member
Registered: 2018-10-23
Posts: 12

Code OSS and C# extension issue

Hi

I have Code OSS 1,43,2 installed along with Nuget Package Manager (1.1.6) and C# Omnisharp (1.21.16). I have two C# projects in my Workspace: One console application and one class library. In the console application project, I have many errors reported: The type or namespace name 'System" could not be found (are you missing a using directive or or an assembly reference ?). This problem appeared after I have installed mono-msbuild package since I need msbuild for my class library
project (precisely for DocFX). I tried some potential solutions on the net like adding MSBuildSDKsPath in my ~/.bashrc file

 export MSBuildSDKsPath="/usr/share/dotnet/sdk/$(dotnet --version)/Sdks"

I also checkec if there is any Omnisharp.log file but there is not.
Here is the output of dotnet --info

.NET Core SDK (reflecting any global.json):
 Version:   3.1.103
 Commit:    6f74c4a1dd

 Runtime Environment:
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.103/

Host (useful for support):
  Version: 3.1.3
  Commit:  ed88943d24

.NET Core SDKs installed:
  3.1.103 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

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

and the version of mono

Mono JIT compiler version 6.4.0 (makepkg/fe64a4765e6 Sat 16 Nov 2019 04:59:42 PM UTC)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          supported, not enabled.
	Suspend:       hybrid
	GC:            sgen (concurrent by default)

and the version of msbuild

Microsoft (R) Build Engine version 16.5.0-ci for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

Any help or suggestion is welcome.
Thanks in advance

Offline

Board footer

Powered by FluxBB