2017-05-25 83 views
1

我正在試圖在openshift中使用VS-2017社區構建一個示例webapi項目,它使用.netcore 1.1模板,但是它的構建錯誤。openshift .netcore 1.1編譯錯誤

Cloning " https://github.com/kuntal-b/netcoreWebAPI " ... Commit: 84b604df745890311a7d23451c4bbef6552d1fb1 (2) Author: [email protected] Date: Thu May 25 23:11:27 2017 +0530 Pulling image "registry.access.redhat.com/dotnet/[email protected]:7c775cc11b280105f51bf2622ed79036c7f961e1cb9db23c4b17c66606154f7b" ... Pulling image "registry.access.redhat.com/dotnet/[email protected]:7c775cc11b280105f51bf2622ed79036c7f961e1cb9db23c4b17c66606154f7b" ... ---> Copying application source ... ---> Installing dependencies ... warn : The folder '/opt/app-root/src' does not contain a project to restore. ---> Building application ... Couldn't find 'project.json' in '.' error: build error: non-zero (13) exit code from registry.access.redhat.com/dotnet/[email protected]:7c775cc11b280105f51bf2622ed79036c7f961e1cb9db23c4b17c66606154f7b

建築應用...找不到在「project.json ''錯誤: .net core 1.1模板沒有project.json文件。

+0

萬一有幫助,有在https://blog.openshift.com/category/technologies/dotnet/ –

回答

0

與dotnetcore一起使用s2i只能在openshift中使用舊的基於project.json的項目。這將被固定一次.net標準2.0發佈。

檢查:https://github.com/redhat-developer/s2i-dotnetcore/issues/46

+0

支持dotnetcore 2.0有一系列關於使用的dotNet與OpenShift的博客文章已發佈:https://developers.redhat.com/blog/2017/08/22/red-hat-releases-net-core-2-0/ 希望它有幫助! –