Skip to content

Can't build using VS Build Tools 2022 version 17.0.1 #12467

@thansen24

Description

@thansen24

I have an existing F# library that is targeting 4.7.2 .net framework. This compiles fine in the VS 2022 IDE, but it won't compile using the VS Build Tools 2022 on our build server. Using VS 2017 and 2019 it compiled in both the IDE and Build Tools.

I receive the following error:

The target "Clean" does not exist in the project.

I think what's missing from the Build Tools install is:

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VisualStudio\v17.0\FSharp\Microsoft.FSharp.targets

When I look at the IDE install paths, they look correct. This does exist:

C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\v17.0\FSharp\Microsoft.FSharp.targets

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions