Skip to content

Commit 02fde1a

Browse files
committed
Removed unnecessary build from build script
1 parent 6de2351 commit 02fde1a

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

build/Program.fs

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -90,45 +90,31 @@ Target.create BuildTarget <| fun _ ->
9090
})
9191

9292
let startGraphQLServer (project : string) port (streamRef : DataRef<Stream>) =
93-
DotNet.build
94-
(fun options -> {
95-
options with
96-
Configuration = configuration
97-
MSBuildParams = { options.MSBuildParams with DisableInternalBinLog = true }
98-
})
99-
project
100-
101-
CreateProcess.fromRawCommandLine "dotnet" $"run --project {project} --configuration {configurationString} --urls=http://localhost:%i{port}/"
93+
CreateProcess.fromRawCommandLine "dotnet" $"run --project {project} --no-build --configuration {configurationString} --urls=http://localhost:%i{port}/"
10294
|> CreateProcess.withStandardInput (CreatePipe streamRef)
10395
|> Proc.start
10496
|> ignore
10597

10698
System.Threading.Thread.Sleep (2000)
10799

108100
let runTests (project : string) (args : string) =
109-
DotNet.build
110-
(fun options -> {
111-
options with
112-
Framework = Some DotNetMoniker
113-
Configuration = configuration
114-
MSBuildParams = { options.MSBuildParams with DisableInternalBinLog = true }
115-
})
116-
project
117-
118-
let customParams = String.Join (' ', "--no-build -v=normal", args)
119-
120101
DotNet.test
121102
(fun options ->
122103
{
123104
options with
105+
NoBuild = true
124106
Framework = Some DotNetMoniker
125107
Configuration = configuration
126108
MSBuildParams = {
127109
options.MSBuildParams with
128110
DisableInternalBinLog = true
129111
Verbosity = Some Normal
112+
Properties = [
113+
if embedAll then
114+
("DebugType", "embedded")
115+
("EmbedAllSources", "true")
116+
]
130117
}
131-
Common = { options.Common with CustomParams = Some customParams }
132118
}
133119
.WithCommon
134120
DotNetCli.setVersion)
@@ -262,6 +248,7 @@ let pack id =
262248
options with
263249
Common = { options.Common with Version = Some release.NugetVersion }
264250
NoLogo = true
251+
NoBuild = true
265252
OutputPath = Some packageDir
266253
MSBuildParams = {
267254
options.MSBuildParams with

0 commit comments

Comments
 (0)