Skip to content

Commit f73e30f

Browse files
committed
fix a few packaing issues after the rebase
1 parent ce057be commit f73e30f

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

Diff for: fcs/build.fsx

+23-8
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,23 @@ Target.create "Restore" (fun _ ->
5757
runDotnet __SOURCE_DIRECTORY__ "restore" "FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj -v n"
5858
)
5959

60+
let outputs =[
61+
"FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj"
62+
"../src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj"
63+
"FSharp.Compiler.Service.MSBuild.v12/FSharp.Compiler.Service.MSBuild.v12.fsproj"
64+
]
65+
6066
Target.create "Build" (fun _ ->
6167
runDotnet __SOURCE_DIRECTORY__ "build" "../src/buildtools/buildtools.proj -v n -c Proto"
6268
let fslexPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fslex/Proto/netcoreapp3.1/fslex.dll"
6369
let fsyaccPath = __SOURCE_DIRECTORY__ + "/../artifacts/bin/fsyacc/Proto/netcoreapp3.1/fsyacc.dll"
64-
runDotnet (Path.Combine(__SOURCE_DIRECTORY__, "FSharp.Compiler.Service")) "build" (sprintf "FSharp.Compiler.Service.fsproj -nodereuse:false -v n -c Release /p:DisableCompilerRedirection=true /p:FsLexPath=%s /p:FsYaccPath=%s" fslexPath fsyaccPath)
70+
71+
let build relPath =
72+
let dir, proj = Path.getDirectory relPath, Path.GetFileName relPath
73+
runDotnet (Path.Combine(__SOURCE_DIRECTORY__, dir)) "build" (sprintf "%s -nodereuse:false -v n -c Release /p:DisableCompilerRedirection=true /p:FsLexPath=%s /p:FsYaccPath=%s" proj fslexPath fsyaccPath)
74+
75+
outputs
76+
|> List.iter build
6577
)
6678

6779
Target.create "Test" (fun _ ->
@@ -74,13 +86,16 @@ Target.create "Test" (fun _ ->
7486
)
7587

7688
Target.create "NuGet" (fun _ ->
77-
DotNet.pack (fun packOpts ->
78-
{ packOpts with
79-
Configuration = DotNet.BuildConfiguration.Release
80-
Common = packOpts.Common |> withDotnetExe |> DotNet.Options.withVerbosity (Some DotNet.Verbosity.Normal)
81-
MSBuildParams = { packOpts.MSBuildParams with
82-
Properties = packOpts.MSBuildParams.Properties @ [ "Version", assemblyVersion; "VersionPrefix", assemblyVersion; "PackageReleaseNotes", release.Notes |> String.concat "\n" ] }
83-
}) "FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj"
89+
outputs
90+
|> List.iter (
91+
DotNet.pack (fun packOpts ->
92+
{ packOpts with
93+
Configuration = DotNet.BuildConfiguration.Release
94+
Common = packOpts.Common |> withDotnetExe |> DotNet.Options.withVerbosity (Some DotNet.Verbosity.Normal)
95+
MSBuildParams = { packOpts.MSBuildParams with
96+
Properties = packOpts.MSBuildParams.Properties @ [ "Version", assemblyVersion; "VersionPrefix", assemblyVersion; "PackageReleaseNotes", release.Notes |> String.concat "\n" ] }
97+
})
98+
)
8499
)
85100

86101
Target.create "GenerateDocs" (fun _ ->

Diff for: src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Nuget.fsproj

+1-11
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@
4545
</Target>
4646

4747
<ItemGroup>
48-
<EmbeddedText Include="DependencyManager.txt" />
49-
<Compile Include="$(FSharpSourcesRoot)\utils\CompilerLocationUtils.fs" />
50-
<Compile Include="AssemblyResolveHandler.fsi" />
51-
<Compile Include="AssemblyResolveHandler.fs" />
52-
<Compile Include="$(FSharpSourcesRoot)\utils\CompilerLocationUtils.fs" />
53-
<Compile Include="NativeDllResolveHandler.fsi" />
54-
<Compile Include="NativeDllResolveHandler.fs" />
55-
<Compile Include="DependencyProvider.fsi" />
56-
<Compile Include="DependencyProvider.fs" />
5748
<EmbeddedText Include="FSDependencyManager.txt" />
5849
<Compile Include="$(FSharpSourcesRoot)\fsharp\FSharp.DependencyManager.Nuget\FSharp.DependencyManager.ProjectFile.fs" />
5950
<Compile Include="$(FSharpSourcesRoot)\fsharp\FSharp.DependencyManager.Nuget\FSharp.DependencyManager.Utilities.fs" />
@@ -66,8 +57,7 @@
6657
</ItemGroup>
6758

6859
<ItemGroup>
69-
<PackageReference Include="FSharp.Core" Version="$(FcsFSharpCorePkgVersion)" />
70-
<ProjectReference Include="$(MSBuildThisFileDirectory)..\FSharp.Core\FSharp.Core.fsproj" />
60+
<PackageReference Update="FSharp.Core" Version="$(FcsFSharpCorePkgVersion)" />
7161
<PackageReference Include="System.Runtime.Loader" Version="$(SystemRuntimeLoaderVersion)" />
7262
</ItemGroup>
7363

Diff for: src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ type FSharpDependencyManager (outputDir:string option) =
168168
sprintf """ #r "nuget:FSharp.Data";; // %s 'FSharp.Data' %s""" (SR.loadNugetPackage()) (SR.highestVersion())
169169
|]
170170

171-
member __.ResolveDependencies(scriptExt:string, packageManagerTextLines:string seq, tfm: string) : bool * string list * string list =
171+
member __.ResolveDependencies(scriptExt:string, packageManagerTextLines:string seq, tfm: string, rid: string) : obj =
172172

173173
let scriptExt, poundRprefix =
174174
match scriptExt with

0 commit comments

Comments
 (0)