Skip to content

Commit 060581f

Browse files
KevinRansombaronfel
authored andcommitted
Merge pull request #8390 from dotnet/merges/master-to-feature/and-bang
Merge master to feature/and-bang
2 parents 6272697 + 9eeaa25 commit 060581f

File tree

5 files changed

+28
-11
lines changed

5 files changed

+28
-11
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<!-- Used as a diagnostic tool to view the state of the NuGet package cache as it existed immediately after a restore/build. -->
4+
5+
<PropertyGroup>
6+
<TargetFramework>netcoreapp3.1</TargetFramework>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageRootFiles Include="$(NuGetPackageRoot)/**" />
11+
</ItemGroup>
12+
13+
<Target Name="_DumpPackageRootDirectoryListing"
14+
AfterTargets="Build">
15+
<PropertyGroup>
16+
<PackageRootArtifactDirectory>$(ArtifactsDir)NugetPackageRootContents</PackageRootArtifactDirectory>
17+
<PackageRootContentsFile>$(PackageRootArtifactDirectory)/package_contents.txt</PackageRootContentsFile>
18+
</PropertyGroup>
19+
<MakeDir Directories="$(PackageRootArtifactDirectory)" Condition="!Exists('$(PackageRootArtifactDirectory)')" />
20+
<WriteLinesToFile File="$(PackageRootContentsFile)" Lines="@(PackageRootFiles)" />
21+
</Target>
22+
</Project>

fcs/build.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ Target.create "BuildVersion" (fun _ ->
6464

6565
Target.create "Build" (fun _ ->
6666
runDotnet __SOURCE_DIRECTORY__ "build" "../src/buildtools/buildtools.proj -v n -c Proto"
67-
let fslexPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fslex/Proto/netcoreapp2.1/fslex.dll"
68-
let fsyaccPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fsyacc/Proto/netcoreapp2.1/fsyacc.dll"
67+
let fslexPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fslex/Proto/netcoreapp3.0/fslex.dll"
68+
let fsyaccPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fsyacc/Proto/netcoreapp3.0/fsyacc.dll"
6969
runDotnet __SOURCE_DIRECTORY__ "build" (sprintf "FSharp.Compiler.Service.sln -nodereuse:false -v n -c Release /p:DisableCompilerRedirection=true /p:FsLexPath=%s /p:FsYaccPath=%s" fslexPath fsyaccPath)
7070
)
7171

src/fsharp/CompileOps.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,8 +2333,8 @@ type TcConfigBuilder =
23332333
isInvalidationSupported = isInvalidationSupported
23342334
copyFSharpCore = defaultCopyFSharpCore
23352335
tryGetMetadataSnapshot = tryGetMetadataSnapshot
2336-
includePathAdded = includePathAdded
23372336
useFsiAuxLib = isInteractive
2337+
includePathAdded = includePathAdded
23382338
}
23392339

23402340
member tcConfigB.ResolveSourceFile(m, nm, pathLoadedFrom) =
@@ -5148,7 +5148,6 @@ module ScriptPreprocessClosure =
51485148
let getWarningNumber = fun () (m, s) -> nowarns <- (s, m) :: nowarns
51495149
let addReferencedAssemblyByPath = fun () (m, s) -> tcConfigB.AddReferencedAssemblyByPath(m, s)
51505150
let addDependencyManagerText = fun () (packageManagerPrefix,m,s) -> tcConfigB.AddDependencyManagerText(packageManagerPrefix,m,s)
5151-
51525151
let addLoadedSource = fun () (m, s) -> tcConfigB.AddLoadedSource(m, s, pathOfMetaCommandSource)
51535152
try
51545153
ProcessMetaCommandsFromInput (getWarningNumber, addReferencedAssemblyByPath, addDependencyManagerText, addLoadedSource) (tcConfigB, inp, pathOfMetaCommandSource, ())
@@ -5234,7 +5233,9 @@ module ScriptPreprocessClosure =
52345233

52355234
let tcConfigResult, noWarns = ApplyMetaCommandsFromInputToTcConfigAndGatherNoWarn (tcConfig, parsedScriptAst, pathOfMetaCommandSource)
52365235
tcConfig <- tcConfigResult // We accumulate the tcConfig in order to collect assembly references
5237-
5236+
5237+
yield! resolveDependencyManagerSources filename
5238+
52385239
let postSources = tcConfig.GetAvailableLoadedSources()
52395240
let sources = if preSources.Length < postSources.Length then postSources.[preSources.Length..] else []
52405241

src/fsharp/FSharp.Compiler.Private.Scripting/FSharpScript.fs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ type FSharpScript(?additionalArgs: string[]) =
3636
[<CLIEvent>]
3737
member __.DependencyFailed = fsi.DependencyFailed
3838

39-
member __.ProvideInput = stdin.ProvideInput
40-
41-
member __.OutputProduced = outputProduced.Publish
42-
43-
member __.ErrorProduced = errorProduced.Publish
44-
4539
member __.Fsi = fsi
4640

4741
member __.Eval(code: string, ?cancellationToken: CancellationToken) =

src/fsharp/LexFilter.fs

100755100644
File mode changed.

0 commit comments

Comments
 (0)