这是我简单的.gitlab-ci.yml配置:
image: mono:latest
stages:
- build
- test
build:
stage: build
script:
- 'nuget restore'
- 'msbuild'
test:
stage: test
script:
- 'nuget restore'
- 'mstest TododoroTest/'
它在我的本地计算机上运行良好,但是当我在gitlab服务器上运行它时,出现以下错误:
2215 /root/.nuget/packages/microsoft.aspnetcore.razor.design/2.1.1/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(69,5): error MSB6003: at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() [/builds/bohdandrahan/tododoro/Tododoro/Tododoro.csproj]
2216 /root/.nuget/packages/microsoft.aspnetcore.razor.design/2.1.1/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(69,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x000c9] in <500e55e726744e86928c26788df44b0c>:0 [/builds/bohdandrahan/tododoro/Tododoro/Tododoro.csproj]
2217 /root/.nuget/packages/microsoft.aspnetcore.razor.design/2.1.1/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(69,5): error MSB6003: at Microsoft.AspNetCore.Razor.Tasks.DotNetToolTask.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x00017] in <5fcb83fde5054e47b09a262ea58cf5fa>:0 [/builds/bohdandrahan/tododoro/Tododoro/Tododoro.csproj]
2218 /root/.nuget/packages/microsoft.aspnetcore.razor.design/2.1.1/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(69,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute () [0x003ad] in <500e55e726744e86928c26788df44b0c>:0 [/builds/bohdandrahan/tododoro/Tododoro/Tododoro.csproj]