我可以在dotnet core 2中使用Bluemix Cloud Foundry应用程序吗?

时间:2017-08-30 18:01:31

标签: .net-core ibm-cloud cloudfoundry asp.net-core-2.0

档案 - >新 - >项目 - > Asp.Net Core 2.0

cf push

   /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.Extensions.Logging.Debug 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.Logging.Debug 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.Extensions.Configuration.EnvironmentVariables 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.Configuration.EnvironmentVariables 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.Extensions.Configuration.CommandLine 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.Configuration.CommandLine 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore.Authorization.Policy 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.Authorization.Policy 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore.Server.Kestrel 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.Server.Kestrel 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.Extensions.Configuration.UserSecrets 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.Configuration.UserSecrets 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore.CookiePolicy 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.CookiePolicy 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.Extensions.Logging.Configuration 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.Logging.Configuration 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.Extensions.Configuration.FileExtensions 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.Extensions.Configuration.FileExtensions 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore.Cryptography.KeyDerivation 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.Cryptography.KeyDerivation 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore.Server.IISIntegration 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.Server.IISIntegration 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore.Authorization 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.Authorization 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]
       /tmp/app/.dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Package Microsoft.AspNetCore.Authentication 2.0.0 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Microsoft.AspNetCore.Authentication 2.0.0 supports: netstandard2.0 (.NETStandard,Version=v2.0) [/tmp/app/Enerbits.csproj]

...

还有更多这样的错误:(

更新:

我使用来自https://github.com/cloudfoundry/dotnet-core-buildpack.git

的更新buildpack

如果我先发布项目然后调用cf push,我可以从我的机器部署,但Bluemix管道部署任务以另一个错误结束:

   2017-08-30T23:57:48.25-0300 [STG/0] OUT        Copied 18937 files from /tmp/app/.cloudfoundry/0/nuget to /tmp/cache
   2017-08-30T23:57:48.25-0300 [STG/0] OUT        OK
   2017-08-30T23:57:48.25-0300 [STG/0] OUT -----> Cleaning staging area
   2017-08-30T23:57:48.25-0300 [STG/0] OUT        Removing /tmp/app/.cloudfoundry/0/nuget
   2017-08-30T23:57:48.25-0300 [STG/0] OUT        Removing /tmp/app/.cloudfoundry/0/node
   2017-08-30T23:57:48.25-0300 [STG/0] OUT        OK
   2017-08-30T23:57:48.25-0300 [STG/0] OUT ASP.NET Core buildpack is done creating the droplet
   2017-08-30T23:59:07.01-0300 [STG/0] ERR Failed to compress build artifacts: signal: broken pipe
   2017-08-30T23:59:07.02-0300 [STG/0] OUT Exit status 1
   2017-08-30T23:59:07.16-0300 [STG/0] ERR Staging failed: Exited with status 1
   2017-08-30T23:59:07.19-0300 [STG/0] OUT Destroying container
   2017-08-30T23:59:11.33-0300 [STG/0] OUT Successfully destroyed container

0 个答案:

没有答案