[MacSDK] Add F# targets to VisualStudio/v17.0 directory (#21218)
commit66e81934b75c8c131f62ca08caaf0f77f8561cf7
authorMatt Ward <matt.ward@microsoft.com>
Mon, 27 Sep 2021 14:22:27 +0000 (27 15:22 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Sep 2021 14:22:27 +0000 (27 10:22 -0400)
tree65b8b4cd6e857644b76ab7a048853d0a0c86510f
parent0c979e6d769bda97bfba41c29324f727e72e27d8
[MacSDK] Add F# targets to VisualStudio/v17.0 directory (#21218)

.NET 6 RC 2 adds an MSBuild check to see that the VisualStudioVersion
property is below 17.0 and reports a not supported warning if this is
the case. Updating the VisualStudioVersion to 17.0 used in Visual
Studio for Mac 17.0 to fix this warning breaks F# SDK projects and
classic F# projects since Mono's MSBuild tries to load F# targets
files from a directory which does not exist:

   xbuild/Microsoft/VisualStudio/v17.0/FSharp

Adding a v17.0 directory to Mono allows Visual Studio for Mac 17.0
to define VisualStudioVersion to be 17.0 and restore and build F#
projects.
packaging/MacSDK/fsharp.py