You are not logged in.

#1 2021-01-31 13:04:12

hmogni
Member
From: .ma
Registered: 2019-08-28
Posts: 15

Unable to run C#.net project

Hello,

I have cloned a c#.net project from Github (school assignment), I have installed both dotnet-runtime and dotnet-sdk as stated in the official Arch wiki,

this is the output of dotnet --version

3.1.108

and this is the output of dotnet --list-sdks

3.1.108 [/usr/share/dotnet/sdk]

when I execute dotnet run I get the following error

error MSB3644: The reference assemblies for .NETFramework,Version=v3.1.108 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application.

The value of TargetedFrameworkVersion on my csproj file was initially set to v4.7.2, I have changed it to v3.1.108 to match the version installed on my system (I was getting the same error when it was set to v4.7.2)

How can I fix this error? I have searched on the official wiki and StackOverflow without any progress.

PS: If I do a dotnet new console it compiles and runs successfully (using mono to run).

Thank you beforehand for any help.

Last edited by hmogni (2021-01-31 13:10:06)

Offline

Board footer

Powered by FluxBB