Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build of net4XXX target frameworks on mono #344

Open
baronfel opened this issue Apr 9, 2019 · 0 comments
Open

Fix build of net4XXX target frameworks on mono #344

baronfel opened this issue Apr 9, 2019 · 0 comments

Comments

@baronfel
Copy link

baronfel commented Apr 9, 2019

Description

When building a project generated from this repo on net46x/net47x, you get the infamous missing reference assemblies error:

/usr/share/dotnet/sdk/2.2.202/Microsoft.Common.CurrentVersion.targets(1183,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.7" 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. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/home/me/Foo/tests/Foo.Tests/Foo.Tests.fsproj]

This can be fixed by setting the FrameworkPathOverride to the matching mono base library directory, the logic of which is handily captured here. This file should be copied and added as an Import include in the project files for the sample projects in this repo, like MiniScaffold does, to sidestep this very issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant