Skip to content

Problems with target net461 on Linux #9

@bratfizyk

Description

@bratfizyk

Hi Tomasz,

First thing - the tutorial looks great. Thanks for creating it. Well done !
I've got a problem running it: I follow the instructions for creating a project with VS Code, but hit a problem at a very beginning. After creating the "suave" project, I get the following error when I try to compile it:

error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed.

(this occurs happens after using "./build.sh").

I believe this is because I'm missing the net461 target, which is used by the project by default.
My configuration: mono (5.10.1.20), dotnet core (2.1.4), Linux Mint (18.3).

I solved this by substituting "net461" in SuaveMusicStore.fsproj with "netcoreapp2.0", but I guess I shouldn't need to do that and there's a better solution to make this work "out of the box".

Kind Regards,
Arek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions