Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion setup/Swix/Microsoft.FSharp.Compiler/Files.swr
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ folder "InstallDir:Common7\IDE\CommonExtensions\Microsoft\FSharp"
file source="$(BinariesFolder)\net40\bin\Microsoft.FSharp.NetSdk.targets"
file source="$(BinariesFolder)\net40\bin\Microsoft.FSharp.Targets"
file source="$(BinariesFolder)\net40\bin\Microsoft.Portable.FSharp.Targets"
file source="$(FSharpTreeRoot)\vsintegration\src\SupportedRuntimes\SupportedRuntimes.xml"
file source="$(BinariesFolder)\net40\bin\System.Collections.Immutable.dll"
file source="$(BinariesFolder)\net40\bin\System.Reflection.Metadata.dll"
file source="$(BinariesFolder)\net40\bin\System.ValueTuple.dll"
5 changes: 2 additions & 3 deletions vsintegration/src/FSharp.ProjectSystem.FSharp/Project.fs
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,9 @@ namespace rec Microsoft.VisualStudio.FSharp.ProjectSystem
member this.ListAvailableFSharpCoreVersions(_) = Array.empty }

let service =
match Internal.Utilities.FSharpEnvironment.BinFolderOfDefaultFSharpCompiler(None) with
| None -> nullService
| Some path ->
try
// SupportedRuntimes is deployed alongside the ProjectSystem dll
let path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
let supportedRuntimesXml = System.Xml.Linq.XDocument.Load(Path.Combine(path, "SupportedRuntimes.xml"))
let tryGetAttr (el : System.Xml.Linq.XElement) attr =
match el.Attribute(System.Xml.Linq.XName.Get attr) with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<Compile Include="MSBuildUtilities.fs" />
<Compile Include="AppConfigHelper.fs" />
<Compile Include="Project.fs" />
<None Include="..\SupportedRuntimes\SupportedRuntimes.xml" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
Expand Down