这是我第一个使用 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 项目有。我的解决方案中有以下库,
我需要添加任何包或其他库吗?