2017-05-25 87 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/ 希望它有帮助! –