File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -161,15 +161,16 @@ Task SetupHelpForTests {
161
161
}
162
162
163
163
Task Build FindDotNet, CreateBuildInfo, {
164
+ # NOTE: We use /p:UseSharedCompilation=false to work around a bug with CodeQL.
164
165
Exec { & dotnet restore $VerbosityArgs }
165
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f $script :NetRuntime.Standard }
166
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS7 }
166
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f $script :NetRuntime.Standard }
167
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS7 }
167
168
if (-not $script :IsNix ) {
168
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
169
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
169
170
}
170
171
171
172
# Build PowerShellEditorServices.VSCode module
172
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.VSCode\PowerShellEditorServices.VSCode.csproj -f $script :NetRuntime.Standard }
173
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.VSCode\PowerShellEditorServices.VSCode.csproj -f $script :NetRuntime.Standard }
173
174
}
174
175
175
176
Task Test TestServer, TestE2E
You can’t perform that action at this time.
0 commit comments