这是我第一次使用DOT NET CORE 2.0的应用程序,是时候在测试服务器上发布了它。该应用程序在本地工作正常,我能够在IIS上构建本地系统,但是当我尝试通过Buildmaster或Jenkins进行构建时,我遇到了错误。
2017-10-16T14:21:12.0143770Z C:\Program Files\dotnet\sdk\2.0.0\Microsoft.Common.CurrentVersion.targets(1987,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Extensions.Configuration.Abstractions". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:12.0233989Z C:\Program Files\dotnet\sdk\2.0.0\Microsoft.Common.CurrentVersion.targets(1987,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Extensions.DependencyInjection.Abstractions". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8326218Z ConfigureRepositoryCollection.cs(3,17): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8326218Z ConfigureRepositoryCollection.cs(4,17): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8326218Z ConfigureRepositoryCollection.cs(5,17): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8346216Z Repository\ChecklistRepository.cs(8,17): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8346216Z Repository\ReportRepository.cs(2,17): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8346216Z ConfigureRepositoryCollection.cs(14,75): error CS0246: The type or namespace name 'IServiceCollection' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8346216Z ConfigureRepositoryCollection.cs(14,104): error CS0246: The type or namespace name 'IConfiguration' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8346216Z ConfigureRepositoryCollection.cs(14,23): error CS0246: The type or namespace name 'IServiceCollection' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8356414Z Repository\ChecklistRepository.cs(17,9): error CS0246: The type or namespace name 'IConfiguration' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8356414Z Repository\ChecklistRepository.cs(18,36): error CS0246: The type or namespace name 'IConfiguration' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8356414Z Repository\ReportRepository.cs(17,9): error CS0246: The type or namespace name 'IConfiguration' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.8356414Z Repository\ReportRepository.cs(18,33): error CS0246: The type or namespace name 'IConfiguration' could not be found (are you missing a using directive or an assembly reference?) [d:\a\1\s\ChecklistTrainingTracking.Data\ChecklistTrainingTracking.Data.csproj]
2017-10-16T14:21:13.9166247Z ##[error]Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1
2017-10-16T14:21:13.9166247Z ##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\1\s\ChecklistTraningTracking.sln
我是我解决方案中的两个项目。 Web项目没有任何错误,但Data项目有。 我的解决方案中有以下库,
我是否需要添加任何包或其他库?