微服务:如何编译eShopOnContainer项目

时间:2018-06-14 22:05:09

标签: .net azure microservices core

我尝试编译项目eShopOnContainer。编译时我有很多错误。我已经安装了docker并在他们的网站上注册免费试用版。

我还安装了

  

.NET Core 2.1 SDK(v2.1.300-preview2) - Windows x64安装程序

我最终遇到了这些错误。

Severity    Code    Description Project File    Line    Suppression State
Error   CS0246  The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)    WebHost.Customization   C:\Users\klam0\AppData\Local\Temp\.NETCoreApp,Version=v2.1.AssemblyAttributes.cs    2   Active 

Error       The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. Ordering.BackgroundTasks    C:\Program Files\dotnet\sdk\2.1.201\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 135 
Error       The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. WebMVC  C:\Program Files\dotnet\sdk\2.1.201\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 135 
Error       The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. WebSPA  C:\Program Files\dotnet\sdk\2.1.201\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 135 
Error       The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. Ordering.SignalrHub C:\Program Files\dotnet\sdk\2.1.201\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 135 
Error       The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. FunctionalTests C:\Program Files\dotnet\sdk\2.1.201\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 135 

(以上错误被修改为miminal)。

我不知道是导致错误的错误的最后一部分。

The current .NET SDK does not support targeting .NET Core 2.1.  Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1. Web.Shopping.HttpAggregator C:\Program Files\dotnet\sdk\2.1.201\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 135 

0 个答案:

没有答案