@@ -90,45 +90,31 @@ Target.create BuildTarget <| fun _ ->
90
90
})
91
91
92
92
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}/"
102
94
|> CreateProcess.withStandardInput ( CreatePipe streamRef)
103
95
|> Proc.start
104
96
|> ignore
105
97
106
98
System.Threading.Thread.Sleep ( 2000 )
107
99
108
100
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
-
120
101
DotNet.test
121
102
( fun options ->
122
103
{
123
104
options with
105
+ NoBuild = true
124
106
Framework = Some DotNetMoniker
125
107
Configuration = configuration
126
108
MSBuildParams = {
127
109
options.MSBuildParams with
128
110
DisableInternalBinLog = true
129
111
Verbosity = Some Normal
112
+ Properties = [
113
+ if embedAll then
114
+ ( " DebugType" , " embedded" )
115
+ ( " EmbedAllSources" , " true" )
116
+ ]
130
117
}
131
- Common = { options.Common with CustomParams = Some customParams }
132
118
}
133
119
.WithCommon
134
120
DotNetCli.setVersion)
@@ -262,6 +248,7 @@ let pack id =
262
248
options with
263
249
Common = { options.Common with Version = Some release.NugetVersion }
264
250
NoLogo = true
251
+ NoBuild = true
265
252
OutputPath = Some packageDir
266
253
MSBuildParams = {
267
254
options.MSBuildParams with
0 commit comments