1

これは 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

私は私のソリューションの2つのプロジェクトです。Web プロジェクトにはエラーはありませんが、Data プロジェクトにはエラーがあります。私のソリューションには以下のライブラリがあります。

DLLが利用可能

パッケージやその他のライブラリを追加する必要がありますか?

4

0 に答える 0