Skip to content

Cannot build Visual F# Tools tools with build vs, MSB4066 "GenerateSource" is unrecognized. #3638

@abelbraaksma

Description

@abelbraaksma

I receive the following error on 13 projects:

VisualFSharp\vsintegration\src\FSharp.Editor\FSharp.Editor.fsproj(32,52): error MSB4066: The attribute "GenerateSource" in element is unrecognized.

Repro steps

In my case, following the instructions in DEVGUIDE.md and just running build vs got me this error. I though perhaps I needed to downgrade to MSBUILD 12 as mentioned there are a prerequisite, but that didn't change anything.

Note that build (without params) just works. It fails with build vs.

Expected behavior

Build should just succeed.

Actual behavior

Error as mentioned.

Here's a full log in case that will shed some more light on this: build_vs.log

Known workarounds

None so far

Related information

It seems like my system does not contain the build task to generate sources from resx files anymore. However, I have several projects that do generate sources. I've reinstalled MSBUILD and have yet to find out where this task is located and/or why it is failing to recognize this. Google gave zilch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions