我有一个构建.net应用程序的dockerfile:
defineclass()
第一个msbuild运作良好,但第二个则无效:
容器xxx在CreateProcess期间遇到错误:Windows系统调用失败:系统找不到指定的文件。 (0x2)额外信息:{“ CommandLine”:“ MSBuild.exe Application.sln”,“ WorkingDirectory”:“ C:\ build”,“ CreateStdInPipe”:true,“ CreateStdOutPipe”:true,“ CreateStdErrPipe”:true,“ ConsoleSize“:[0,0]}
我已经尝试通过完整路径:FROM myPersonalRegistry/msbuild:14.0
SHELL ["powershell"]
#Copy .net application source code
COPY . 'C:\\build\\'
WORKDIR 'C:\\build\\'
RUN ["nuget", "restore", "-ConfigFile", "NuGet.Config"]
# Build with full Path
RUN ["C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe", "Application.sln"]
# Try to build using PATH env variable
RUN setx PATH '%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin\'
RUN ["MSBuild.exe", "Application.sln"]
,但没有成功。
请,我做错了什么?我想了解