Skip to content

Commit cc57e77

Browse files
drvinkenricosada
authored andcommitted
Only run dotnet.exe for DNC targets (#824)
fix build targeting .NET if .net core sdk is not installed
1 parent 94390ce commit cc57e77

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

fcs/build.cmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
setlocal
44
cd fcs
55
.paket\paket.bootstrapper.exe
6-
dotnet restore tools.fsproj
76
if errorlevel 1 (
87
endlocal
98
exit /b %errorlevel%

fcs/build.fsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ Target "Test.NetStd" (fun _ ->
136136
Target "Nuget.AddNetStd" (fun _ ->
137137
let nupkg = sprintf "%s/FSharp.Compiler.Service.%s.nupkg" releaseDir release.AssemblyVersion
138138
let netcoreNupkg = sprintf "FSharp.Compiler.Service.netstandard/bin/Release/FSharp.Compiler.Service.%s.nupkg" release.AssemblyVersion
139+
runCmdIn __SOURCE_DIRECTORY__ "dotnet" "restore tools.fsproj"
139140
runCmdIn __SOURCE_DIRECTORY__ "dotnet" "mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
140141
)
141142

0 commit comments

Comments
 (0)