NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 252 forks source link

[Bug]: Directory.build.props cannot be used in docker conainers or Azure pipelines #11500

Closed Joren-Thijs-KasparSolutions closed 2 years ago

Joren-Thijs-KasparSolutions commented 2 years ago

NuGet Product Used

dotnet.exe

Product Version

.NET SDK Version: 6.0.101 Commit: ef49f6213a Runtime Environment: OS Name: debian OS Version: 11 OS Platform: Linux RID: debian.11-x64 Base Path: /usr/share/dotnet/sdk/6.0.101/ Host (useful for support): Version: 6.0.1 Commit: 3a25a7f1cc .NET SDKs installed: 6.0.101 [/usr/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App] NuGet Command Line 6.0.0.280

Worked before?

I works locally and in Visual Studio

Impact

It's more difficult to complete my work

Repro Steps & Context

Context

I recently updated our NET5 solution to NET6. To do this I introduced a Directory.build.props file where i moved all the common properties to.

<Project>
 <PropertyGroup>
   <TargetFrameworks>net6.0</TargetFrameworks>
   <Nullable>enable</Nullable>
   <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
   <IsPackable>false</IsPackable>
 </PropertyGroup>
</Project>

Our domain project for example has an empty csproj file now

<Project Sdk="Microsoft.NET.Sdk">

</Project>

Other projects still have other properties or package refrences.

<Project Sdk="Microsoft.NET.Sdk">

  <ItemGroup>
    <PackageReference Include="Elastic.CommonSchema.Serilog" Version="1.5.3" />
    <PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
    <PackageReference Include="Serilog.Sinks.Elasticsearch" Version="8.4.1" />
  </ItemGroup>

</Project>

The solution structure is as follows

.\Case.sln
.\Directory.build.props
.\Api.Grpc\Api.Grpc.csproj
.\Api.Grpc.Client\Api.Grpc.Client.csproj
.\Configuration\Configuration.csproj
.\Data\Data.csproj
.\Domain\Domain.csproj

Building this solution works fine in Visual Studio and in the terminal with VS Code. Both on Windows and in Linux.

However when trying to build this code inside a docker container or in the Azure pipeline cli it fails. Below the Test step will attempt to restore the project and fail with /usr/share/dotnet/sdk/6.0.101/NuGet.targets(130,5): error : Invalid framework identifier ''. [/src/Kaspar123.Case.sln

azure-pipelines.yml

pool:
  vmImage: "ubuntu-latest"

variables:
  DOCKER_BUILDKIT: 1

stages:
  - stage: Setup_NET6_SDK
    jobs:
      - job: Setup_NET6_SDK
        steps:
          - task: UseDotNet@2
            displayName: "Use .NET 6 sdk"
            inputs:
              packageType: sdk
              version: 6.0.x
              installationPath: $(Agent.ToolsDirectory)/dotnet
  - stage: Test
    jobs:
      - job: Test
        steps:
          - task: NuGetAuthenticate@0
          - task: DotNetCoreCLI@2
            inputs:
              command: "test"

Docker example:


FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS build
WORKDIR /src

# Install the nuget credential provider
RUN apt-get update && apt-get install -y locales \
    && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
    && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8 \
    # Download the artifact credential provider
    && wget -qO- https://raw.githubusercontent.com/Microsoft/artifacts-credprovider/master/helpers/installcredprovider.sh | bash

# Copy the nuget.config that has the package source for the private store. Make sure the secrets are not included here.
COPY nuget.config .

COPY ./*.sln ./
COPY */*.csproj ./
COPY Directory.build.props ./
RUN for file in $(ls *.csproj); do mkdir -p ${file%.*} && mv $file ${file%.*}; done

FROM build AS restore
RUN dotnet restore
...

This seems similar to this issue https://github.com/NuGet/Home/issues/10423#issuecomment-803608441 And this post https://stackoverflow.com/questions/67115762/azuredevops-pipeline-dotnetcorecli-restore-ignores-directory-build-props-file

But none ever propose a fix to make nuget use the Directory.build.props file.

Is there a reason for this behaviour and is there a fix? I don't want to move the TargetFramework properties back to individual csproj files because this causes dulpicate configuration work.

Verbose Logs

dotnet resore --verbose diag:

(The terminal could only buffer so much so this is as far up as i can show the logs)

AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=RestoreSpec
                             f27210eb-fcad-45ad-92dc-b4855fd18723
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     ConfigFilePaths=/src/nuget.config;/root/.nuget/NuGet/NuGet.Config
                                     Configuration=Debug
                                     CrossTargeting=
                                     FallbackFolders=
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     NoWarn=1701;1702
                                     NuGetLockFilePath=
                                     OriginalItemSpec=/src/Configuration/Configuration.csproj
                                     OutputPath=/src/Configuration/obj/
                                     PackagesPath=/root/.nuget/packages/
                                     Platform=AnyCPU
                                     ProjectName=Configuration
                                     ProjectPath=/src/Configuration/Configuration.csproj
                                     ProjectStyle=PackageReference
                                     ProjectUniqueName=/src/Configuration/Configuration.csproj
                                     RestoreLegacyPackagesDirectory=
                                     RestoreLockedMode=
                                     RestorePackagesWithLockFile=
                                     RuntimeIdentifiers=;
                                     RuntimeSupports=
                                     SkipContentFileWrite=true
                                     SkipNonexistentProjects=False
                                     Sources=https://pkgs.dev.azure.com/Kaspar-Solutions/Kaspar-Solutions/_packaging/KasparSolutions/nuget/v3/index.json;https://api.nuget.org/v3/index.json
                                     ToolsVersion=
                                     TreatWarningsAsErrors=false
                                     Type=ProjectSpec
                                     ValidateRuntimeAssets=false
                                     Version=1.0.0
                                     WarningsAsErrors=;NU1605
                                     _CentralPackageVersionsEnabled=
                             47a053b0-965b-44ed-985e-abce35a2593b
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Elastic.CommonSchema.Serilog
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Configuration/Configuration.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Configuration/Configuration.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=1.5.3
                             1522140a-a1d9-4474-a797-fe12604ea01b
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Serilog.AspNetCore
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Configuration/Configuration.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Configuration/Configuration.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=4.1.0
                             a461821c-2df3-45dc-acd5-605eb34fe911
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Serilog.Sinks.Elasticsearch
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Configuration/Configuration.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Configuration/Configuration.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=8.4.1
                             491f638d-ad37-4d96-9591-a72dafd81e46
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     AssetTargetFallback=
                                     CLRSupport=
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Configuration/Configuration.csproj
                                     PackageTargetFallback=
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Configuration/Configuration.csproj
                                     RuntimeIdentifierGraphPath=/usr/share/dotnet/sdk/6.0.101/RuntimeIdentifierGraph.json
                                     SkipNonexistentProjects=False
                                     TargetFramework=
                                     TargetFrameworkIdentifier=_
                                     TargetFrameworkMoniker=_,Version=v0.0
                                     TargetFrameworkProfile=
                                     TargetFrameworkVersion=v0.0
                                     TargetPlatformIdentifier=Windows
                                     TargetPlatformMinVersion=7.0
                                     TargetPlatformMoniker=Windows,Version=7.0
                                     TargetPlatformVersion=7.0
                                     ToolsVersion=
                                     Type=TargetFrameworkInformation
                             b4420010-6e35-4887-8ac9-93b4fa1827f8
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     ConfigFilePaths=/src/nuget.config;/root/.nuget/NuGet/NuGet.Config
                                     Configuration=Debug
                                     CrossTargeting=
                                     FallbackFolders=
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     NoWarn=1701;1702
                                     NuGetLockFilePath=
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     OutputPath=/src/Data/obj/
                                     PackagesPath=/root/.nuget/packages/
                                     Platform=AnyCPU
                                     ProjectName=Data
                                     ProjectPath=/src/Data/Data.csproj
                                     ProjectStyle=PackageReference
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     RestoreLegacyPackagesDirectory=
                                     RestoreLockedMode=
                                     RestorePackagesWithLockFile=
                                     RuntimeIdentifiers=;
                                     RuntimeSupports=
                                     SkipContentFileWrite=true
                                     SkipNonexistentProjects=False
                                     Sources=https://pkgs.dev.azure.com/Kaspar-Solutions/Kaspar-Solutions/_packaging/KasparSolutions/nuget/v3/index.json;https://api.nuget.org/v3/index.json
                                     ToolsVersion=
                                     TreatWarningsAsErrors=false
                                     Type=ProjectSpec
                                     ValidateRuntimeAssets=false
                                     Version=1.0.0
                                     WarningsAsErrors=;NU1605
                                     _CentralPackageVersionsEnabled=
                             c3b2f543-0efb-4d4f-bb39-ee846d695370
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     ProjectPath=/src/Domain/Domain.csproj
                                     ProjectReferenceUniqueName=/src/Domain/Domain.csproj
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=ProjectReference
                             4bbfd6ed-4af3-409c-9934-af43ce62bcaf
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=FluentValidation
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=10.3.6
                             5540371e-1946-47f0-8f96-59c858a07a1f
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=MassTransit
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=7.3.0
                             12ffed4e-b080-4aab-aaa0-0b9900212353
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.Extensions.DependencyInjection.Abstractions
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.0
                             823afab7-bcff-43d7-a41f-e659ca7ada5c
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.EntityFrameworkCore.Design
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.1
                             160eec2c-7ab8-4bf2-89b7-8821bfc09ef1
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.EntityFrameworkCore.Relational
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.1
                             9ee7cf44-7beb-4688-a49b-5f34cdea831b
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.EntityFrameworkCore.SqlServer
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.1
                             e7f1c064-3f84-4efc-9782-fc02dae47ea8
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.EntityFrameworkCore.Tools
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     Platform=AnyCPU
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.1
                             b6defdab-4472-4ad3-bb46-51034fff56d3
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     AssetTargetFallback=
                                     CLRSupport=
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Data/Data.csproj
                                     PackageTargetFallback=
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     RuntimeIdentifierGraphPath=/usr/share/dotnet/sdk/6.0.101/RuntimeIdentifierGraph.json
                                     SkipNonexistentProjects=False
                                     TargetFramework=
                                     TargetFrameworkIdentifier=_
                                     TargetFrameworkMoniker=_,Version=v0.0
                                     TargetFrameworkProfile=
                                     TargetFrameworkVersion=v0.0
                                     TargetPlatformIdentifier=Windows
                                     TargetPlatformMinVersion=7.0
                                     TargetPlatformMoniker=Windows,Version=7.0
                                     TargetPlatformVersion=7.0
                                     ToolsVersion=
                                     Type=TargetFrameworkInformation
                             b32f400a-7dc3-4191-bb67-39f21b621b1b
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     ConfigFilePaths=/src/nuget.config;/root/.nuget/NuGet/NuGet.Config
                                     Configuration=Debug
                                     CrossTargeting=
                                     FallbackFolders=
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     NoWarn=1701;1702
                                     NuGetLockFilePath=
                                     OriginalItemSpec=/src/Domain/Domain.csproj
                                     OutputPath=/src/Domain/obj/
                                     PackagesPath=/root/.nuget/packages/
                                     Platform=AnyCPU
                                     ProjectName=Domain
                                     ProjectPath=/src/Domain/Domain.csproj
                                     ProjectStyle=PackageReference
                                     ProjectUniqueName=/src/Domain/Domain.csproj
                                     RestoreLegacyPackagesDirectory=
                                     RestoreLockedMode=
                                     RestorePackagesWithLockFile=
                                     RuntimeIdentifiers=;
                                     RuntimeSupports=
                                     SkipContentFileWrite=true
                                     SkipNonexistentProjects=False
                                     Sources=https://pkgs.dev.azure.com/Kaspar-Solutions/Kaspar-Solutions/_packaging/KasparSolutions/nuget/v3/index.json;https://api.nuget.org/v3/index.json
                                     ToolsVersion=
                                     TreatWarningsAsErrors=false
                                     Type=ProjectSpec
                                     ValidateRuntimeAssets=false
                                     Version=1.0.0
                                     WarningsAsErrors=;NU1605
                                     _CentralPackageVersionsEnabled=
                             baecfae6-8d21-4957-9dae-18334978887d
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     AssetTargetFallback=
                                     CLRSupport=
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Domain/Domain.csproj
                                     PackageTargetFallback=
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Domain/Domain.csproj
                                     RuntimeIdentifierGraphPath=/usr/share/dotnet/sdk/6.0.101/RuntimeIdentifierGraph.json
                                     SkipNonexistentProjects=False
                                     TargetFramework=
                                     TargetFrameworkIdentifier=_
                                     TargetFrameworkMoniker=_,Version=v0.0
                                     TargetFrameworkProfile=
                                     TargetFrameworkVersion=v0.0
                                     TargetPlatformIdentifier=Windows
                                     TargetPlatformMinVersion=7.0
                                     TargetPlatformMoniker=Windows,Version=7.0
                                     TargetPlatformVersion=7.0
                                     ToolsVersion=
                                     Type=TargetFrameworkInformation
                             65b6ce1c-d99a-4d53-b30a-0c6bf0706eb2
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     ConfigFilePaths=/src/nuget.config;/root/.nuget/NuGet/NuGet.Config
                                     Configuration=Debug
                                     CrossTargeting=
                                     FallbackFolders=
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     NoWarn=1701;1702
                                     NuGetLockFilePath=
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     OutputPath=/src/Api.gRPC/obj/
                                     PackagesPath=/root/.nuget/packages/
                                     Platform=AnyCPU
                                     ProjectName=Api.gRPC
                                     ProjectPath=/src/Api.gRPC/Api.gRPC.csproj
                                     ProjectStyle=PackageReference
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     RestoreLegacyPackagesDirectory=
                                     RestoreLockedMode=
                                     RestorePackagesWithLockFile=
                                     RuntimeIdentifiers=;
                                     RuntimeSupports=
                                     SkipContentFileWrite=true
                                     SkipNonexistentProjects=False
                                     Sources=https://pkgs.dev.azure.com/Kaspar-Solutions/Kaspar-Solutions/_packaging/KasparSolutions/nuget/v3/index.json;https://api.nuget.org/v3/index.json
                                     ToolsVersion=
                                     TreatWarningsAsErrors=false
                                     Type=ProjectSpec
                                     ValidateRuntimeAssets=false
                                     Version=1.0.0
                                     WarningsAsErrors=;NU1605
                                     _CentralPackageVersionsEnabled=
                             69620943-1255-4727-ac28-f1aff5165fd2
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectPath=/src/Configuration/Configuration.csproj
                                     ProjectReferenceUniqueName=/src/Configuration/Configuration.csproj
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=ProjectReference
                             182d0bd7-4071-4645-9d47-8b156f6409ca
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectPath=/src/Data/Data.csproj
                                     ProjectReferenceUniqueName=/src/Data/Data.csproj
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=ProjectReference
                             cef8623b-d4a2-46ae-902b-b41b98449de6
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectPath=/src/Domain/Domain.csproj
                                     ProjectReferenceUniqueName=/src/Domain/Domain.csproj
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=ProjectReference
                             02446528-a838-41f1-86e8-21a6a2ce3657
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=FluentValidation.DependencyInjectionExtensions
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=10.3.6
                             e1c7618a-8670-4cb1-b27b-e491f6a05838
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=gRPC.AspNetCore
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=2.41.0
                             ce0cf141-2ca5-422b-bb2c-56a3fa4dccf5
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Grpc.Tools
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=2.43.0
                             e48d6591-7e98-4880-8b0b-4396022b113f
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Kaspar123.Common.Logging
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=0.2.3
                             2d7e231c-2dc0-433c-a888-8ce75b9889a1
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=MassTransit.AspNetCore
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=7.3.0
                             4f6a8ef3-90a2-4e22-944b-8899b0747cf4
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.AspNetCore.Authentication.JwtBearer
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.1
                             0ee10c50-6bcc-4c94-8f44-e1c4720bee2a
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.EntityFrameworkCore.Design
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.1
                             30015cab-891b-46b5-9efc-39ac5ce0d0d0
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.VisualStudio.Azure.Containers.Tools.Targets
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=1.14.0
                             6e752884-2314-4108-99b4-cb1e0f4b80f9
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     AssetTargetFallback=
                                     CLRSupport=
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC/Api.gRPC.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC/Api.gRPC.csproj
                                     PackageTargetFallback=
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC/Api.gRPC.csproj
                                     RuntimeIdentifierGraphPath=/usr/share/dotnet/sdk/6.0.101/RuntimeIdentifierGraph.json
                                     SkipNonexistentProjects=False
                                     TargetFramework=
                                     TargetFrameworkIdentifier=_
                                     TargetFrameworkMoniker=_,Version=v0.0
                                     TargetFrameworkProfile=
                                     TargetFrameworkVersion=v0.0
                                     TargetPlatformIdentifier=Windows
                                     TargetPlatformMinVersion=7.0
                                     TargetPlatformMoniker=Windows,Version=7.0
                                     TargetPlatformVersion=7.0
                                     ToolsVersion=
                                     Type=TargetFrameworkInformation
                             c398548f-f567-41bd-a5ed-bbc2ae6c8b64
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     ConfigFilePaths=/src/nuget.config;/root/.nuget/NuGet/NuGet.Config
                                     Configuration=Debug
                                     CrossTargeting=
                                     FallbackFolders=
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     NoWarn=1701;1702
                                     NuGetLockFilePath=
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     OutputPath=/src/Api.gRPC.Client/obj/
                                     PackagesPath=/root/.nuget/packages/
                                     Platform=AnyCPU
                                     ProjectName=Kaspar123.Case.Api.gRPC.Client
                                     ProjectPath=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     ProjectStyle=PackageReference
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     RestoreLegacyPackagesDirectory=
                                     RestoreLockedMode=
                                     RestorePackagesWithLockFile=
                                     RuntimeIdentifiers=;
                                     RuntimeSupports=
                                     SkipContentFileWrite=true
                                     SkipNonexistentProjects=False
                                     Sources=https://pkgs.dev.azure.com/Kaspar-Solutions/Kaspar-Solutions/_packaging/KasparSolutions/nuget/v3/index.json;https://api.nuget.org/v3/index.json
                                     ToolsVersion=
                                     TreatWarningsAsErrors=false
                                     Type=ProjectSpec
                                     ValidateRuntimeAssets=false
                                     Version=1.0.0
                                     WarningsAsErrors=;NU1605
                                     _CentralPackageVersionsEnabled=
                             9e2229b9-2125-471d-803e-de78a86fc5e2
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=GitVersion.MsBuild
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=5.8.1
                             a731220e-fcba-49ec-9d3f-5e6a3b5a3f44
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Grpc.AspNetCore
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=2.41.0
                             d7d02458-cb2d-44c0-876f-35bd71260d78
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Grpc.Net.Client
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=2.41.0
                             2f702398-99cd-484b-9f1a-ad325861701a
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Grpc.Tools
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=2.43.0
                             2088e518-4d01-44e3-a9da-e911a26f74cf
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=IdentityModel.AspNetCore
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=4.1.2
                             964feed6-4db7-4a97-9091-0a873c0cc1a1
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.Extensions.Configuration
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.0
                             3be90dca-1067-4e3c-93b9-8a3ae34828aa
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.Extensions.Configuration.Binder
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.0
                             d77cc2fb-8d41-4d64-807d-dfa2295413aa
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     Configuration=Debug
                                     Id=Microsoft.Extensions.DependencyInjection
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     SkipNonexistentProjects=False
                                     ToolsVersion=
                                     Type=Dependency
                                     VersionRange=6.0.0
                             45a94a87-d54b-46f6-a5e9-03dc161a632a
                                     AdditionalProperties=Configuration=Debug; Platform=AnyCPU
                                     AssetTargetFallback=
                                     CLRSupport=
                                     Configuration=Debug
                                     MSBuildSourceProjectFile=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     MSBuildSourceTargetName=_IsProjectRestoreSupported
                                     OriginalItemSpec=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     PackageTargetFallback=
                                     Platform=AnyCPU
                                     ProjectUniqueName=/src/Api.gRPC.Client/Api.gRPC.Client.csproj
                                     RuntimeIdentifierGraphPath=/usr/share/dotnet/sdk/6.0.101/RuntimeIdentifierGraph.json
                                     SkipNonexistentProjects=False
                                     TargetFramework=
                                     TargetFrameworkIdentifier=_
                                     TargetFrameworkMoniker=_,Version=v0.0
                                     TargetFrameworkProfile=
                                     TargetFrameworkVersion=v0.0
                                     TargetPlatformIdentifier=Windows
                                     TargetPlatformMinVersion=7.0
                                     TargetPlatformMoniker=Windows,Version=7.0
                                     TargetPlatformVersion=7.0
                                     ToolsVersion=
                                     Type=TargetFrameworkInformation (TaskId:36)
                     Task Parameter:RestoreRecursive=True (TaskId:36)
                     Task Parameter:HideWarningsAndErrors=False (TaskId:36)
09:38:16.884   6:6>Target "CollectFrameworkReferences: (TargetId:25)" in file "/usr/share/dotnet/sdk/6.0.101/NuGet.targets" from project "/src/Data/Data.csproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
09:38:16.884   6:6>Done building target "CollectFrameworkReferences" in project "Data.csproj".: (TargetId:25)
09:38:16.941     1>Restore: (TargetId:38)
                     (in) RestoreGraphItems Count '45' (TaskId:36)
                     (in) RestoreDisableParallel 'False' (TaskId:36)
                     (in) RestoreNoCache 'False' (TaskId:36)
                     (in) RestoreIgnoreFailedSources 'False' (TaskId:36)
                     (in) RestoreRecursive 'True' (TaskId:36)
                     (in) RestoreForce 'False' (TaskId:36)
                     (in) HideWarningsAndErrors 'False' (TaskId:36)
                     (in) RestoreForceEvaluate 'False' (TaskId:36)
                     (in) RestorePackagesConfig 'False' (TaskId:36)
09:38:16.884   6:6>Target "CollectCentralPackageVersions: (TargetId:26)" in file "/usr/share/dotnet/sdk/6.0.101/NuGet.targets" from project "/src/Data/Data.csproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
09:38:16.884   6:6>Done building target "CollectCentralPackageVersions" in project "Data.csproj".: (TargetId:26)
                   Target "PrepRestoreForStoreProjects" skipped, due to false condition; ('$(StorePackageName)' != '') was evaluated as ('' != '').
09:38:16.884   6:6>Target "_GenerateProjectRestoreGraphPerFramework: (TargetId:27)" in file "/usr/share/dotnet/sdk/6.0.101/NuGet.targets" from project "/src/Data/Data.csproj" (target "_GenerateProjectRestoreGraphCurrentProject" depends on it):      
                   Using "GetRestoreProjectReferencesTask" task from assembly "/usr/share/dotnet/sdk/6.0.101/NuGet.Build.Tasks.dll".
                   Task "GetRestoreProjectReferencesTask" (TaskId:14)
                     Task Parameter:ProjectUniqueName=/src/Data/Data.csproj (TaskId:14)
                     Task Parameter:ParentProjectPath=/src/Data/Data.csproj (TaskId:14)
                     Task Parameter:
                         ProjectReferences=
                             ../Domain/Domain.csproj
                                     OutputItemType=
                                     ReferenceSourceTarget=ProjectReference
                                     Targets= (TaskId:14)
                     (in) ProjectUniqueName '/src/Data/Data.csproj' (TaskId:14)
                     (in) TargetFrameworks '' (TaskId:14)
                     (in) ProjectReferences '../Domain/Domain.csproj' (TaskId:14)
                     (in) ParentProjectPath '/src/Data/Data.csproj' (TaskId:14)
                     Output Item(s):
                         _RestoreGraphEntry=
                             c3b2f543-0efb-4d4f-bb39-ee846d695370
                                     ProjectPath=/src/Domain/Domain.csproj
                                     ProjectReferenceUniqueName=/src/Domain/Domain.csproj
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=ProjectReference (TaskId:14)
                   Done executing task "GetRestoreProjectReferencesTask". (TaskId:14)
                   Using "GetRestorePackageReferencesTask" task from assembly "/usr/share/dotnet/sdk/6.0.101/NuGet.Build.Tasks.dll".
                   Task "GetRestorePackageReferencesTask" (TaskId:15)
                     Task Parameter:ProjectUniqueName=/src/Data/Data.csproj (TaskId:15)
                     Task Parameter:
                         PackageReferences=
                             FluentValidation
                                     Version=10.3.6
                             MassTransit
                                     Version=7.3.0
                             Microsoft.Extensions.DependencyInjection.Abstractions
                                     Version=6.0.0
                             Microsoft.EntityFrameworkCore.Design
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     PrivateAssets=all
                                     Version=6.0.1
                             Microsoft.EntityFrameworkCore.Relational
                                     Version=6.0.1
                             Microsoft.EntityFrameworkCore.SqlServer
                                     Version=6.0.1
                             Microsoft.EntityFrameworkCore.Tools
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     PrivateAssets=all
                                     Version=6.0.1 (TaskId:15)
                     (in) ProjectUniqueName '/src/Data/Data.csproj' (TaskId:15)
                     (in) TargetFrameworks '' (TaskId:15)
                     (in) PackageReferences 'FluentValidation;MassTransit;Microsoft.Extensions.DependencyInjection.Abstractions;Microsoft.EntityFrameworkCore.Design;Microsoft.EntityFrameworkCore.Relational;Microsoft.EntityFrameworkCore.SqlServer;Microsoft.EntityFrameworkCore.Tools' (TaskId:15)
                     Output Item(s):
                         _RestoreGraphEntry=
                             4bbfd6ed-4af3-409c-9934-af43ce62bcaf
                                     Id=FluentValidation
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=Dependency
                                     VersionRange=10.3.6
                             5540371e-1946-47f0-8f96-59c858a07a1f
                                     Id=MassTransit
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=Dependency
                                     VersionRange=7.3.0
                             12ffed4e-b080-4aab-aaa0-0b9900212353
                                     Id=Microsoft.Extensions.DependencyInjection.Abstractions
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=Dependency
                                     VersionRange=6.0.0
                             823afab7-bcff-43d7-a41f-e659ca7ada5c
                                     Id=Microsoft.EntityFrameworkCore.Design
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=Dependency
                                     VersionRange=6.0.1
                             160eec2c-7ab8-4bf2-89b7-8821bfc09ef1
                                     Id=Microsoft.EntityFrameworkCore.Relational
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=Dependency
                                     VersionRange=6.0.1
                             9ee7cf44-7beb-4688-a49b-5f34cdea831b
                                     Id=Microsoft.EntityFrameworkCore.SqlServer
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=Dependency
                                     VersionRange=6.0.1
                             e7f1c064-3f84-4efc-9782-fc02dae47ea8
                                     Id=Microsoft.EntityFrameworkCore.Tools
                                     IncludeAssets=runtime; build; native; contentfiles; analyzers; buildtransitive
                                     PrivateAssets=all
                                     ProjectUniqueName=/src/Data/Data.csproj
                                     Type=Dependency
                                     VersionRange=6.0.1 (TaskId:15)
                   Done executing task "GetRestorePackageReferencesTask". (TaskId:15)
                   Task "GetCentralPackageVersionsTask" skipped, due to false condition; ( '$(PackageReferenceCompatibleProjectStyle)' == 'true' AND '$(_CentralPackageVersionsEnabled)' == 'true' ) was evaluated as ( 'True' == 'true' AND '' == 'true' ).
                   Using "GetRestorePackageDownloadsTask" task from assembly "/usr/share/dotnet/sdk/6.0.101/NuGet.Build.Tasks.dll".
                   Task "GetRestorePackageDownloadsTask" (TaskId:16)
                     Task Parameter:ProjectUniqueName=/src/Data/Data.csproj (TaskId:16)
                     (in) ProjectUniqueName '/src/Data/Data.csproj' (TaskId:16)
                     (in) TargetFrameworks '' (TaskId:16)
                     (in) PackageDownloads '' (TaskId:16)
                   Done executing task "GetRestorePackageDownloadsTask". (TaskId:16)
                   Using "GetRestoreFrameworkReferencesTask" task from assembly "/usr/share/dotnet/sdk/6.0.101/NuGet.Build.Tasks.dll".
                   Task "GetRestoreFrameworkReferencesTask" (TaskId:17)
                     Task Parameter:ProjectUniqueName=/src/Data/Data.csproj (TaskId:17)
                     (in) ProjectUniqueName '/src/Data/Data.csproj' (TaskId:17)
                     (in) TargetFrameworks '' (TaskId:17)
                     (in) FrameworkReferences '' (TaskId:17)
                   Done executing task "GetRestoreFrameworkReferencesTask". (TaskId:17)
                   Added Item(s): 
                       _RestoreGraphEntry=
                           b6defdab-4472-4ad3-bb46-51034fff56d3
                                   AssetTargetFallback=
                                   CLRSupport=
                                   PackageTargetFallback=
                                   ProjectUniqueName=/src/Data/Data.csproj
                                   RuntimeIdentifierGraphPath=/usr/share/dotnet/sdk/6.0.101/RuntimeIdentifierGraph.json
                                   TargetFramework=
                                   TargetFrameworkIdentifier=_
                                   TargetFrameworkMoniker=_,Version=v0.0
                                   TargetFrameworkProfile=
                                   TargetFrameworkVersion=v0.0
                                   TargetPlatformIdentifier=Windows
                                   TargetPlatformMinVersion=7.0
                                   TargetPlatformMoniker=Windows,Version=7.0
                                   TargetPlatformVersion=7.0
                                   Type=TargetFrameworkInformation
09:38:16.901   6:6>Done building target "_GenerateProjectRestoreGraphPerFramework" in project "Data.csproj".: (TargetId:27)
09:38:16.901   6:6>Target "_GenerateProjectRestoreGraphCurrentProject: (TargetId:28)" in file "/usr/share/dotnet/sdk/6.0.101/NuGet.targets" from project "/src/Data/Data.csproj" (target "_GenerateRestoreDependencies" depends on it):
09:38:16.901   6:6>Done building target "_GenerateProjectRestoreGraphCurrentProject" in project "Data.csproj".: (TargetId:28)
09:38:16.901   6:6>Target "_GenerateRestoreDependencies: (TargetId:29)" in file "/usr/share/dotnet/sdk/6.0.101/NuGet.targets" from project "/src/Data/Data.csproj" (target "_GenerateProjectRestoreGraph" depends on it):
09:38:16.901   6:6>Done building target "_GenerateRestoreDependencies" in project "Data.csproj".: (TargetId:29)
09:38:16.901   6:6>Target "_GenerateProjectRestoreGraph: (TargetId:30)" in file "/usr/share/dotnet/sdk/6.0.101/NuGet.targets" from project "/src/Data/Data.csproj" (entry point):
09:38:16.901   6:6>Done building target "_GenerateProjectRestoreGraph" in project "Data.csproj".: (TargetId:30)
09:38:16.901   6:6>Done Building Project "/src/Data/Data.csproj" (_GenerateProjectRestoreGraph target(s)).
09:38:16.985     1>/usr/share/dotnet/sdk/6.0.101/NuGet.targets(130,5): error : Invalid framework identifier ''. [/src/Kaspar123.Case.sln]
09:38:16.999     1>NuGet.Frameworks.FrameworkException: Invalid framework identifier ''.
   at NuGet.Frameworks.NuGetFramework.GetShortFolderName(IFrameworkNameProvider mappings)
   at NuGet.Frameworks.NuGetFramework.GetShortFolderName()
   at NuGet.Commands.MSBuildRestoreUtility.<>c__DisplayClass6_0.<GetPackageSpec>b__0(TargetFrameworkInformation tfi)
   at NuGet.Shared.Extensions.ForEach[T](IEnumerable`1 enumeration, Action`1 action)
   at NuGet.Commands.MSBuildRestoreUtility.GetPackageSpec(IEnumerable`1 items)
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at NuGet.Commands.MSBuildRestoreUtility.GetDependencySpec(IEnumerable`1 items)
   at NuGet.Build.Tasks.RestoreTask.ExecuteAsync(ILogger log) (TaskId:36)
                   Done executing task "RestoreTask" -- FAILED. (TaskId:36)
09:38:17.000     1>Done building target "Restore" in project "Kaspar123.Case.sln" -- FAILED.: (TargetId:38)
09:38:17.000     1>Done Building Project "/src/Kaspar123.Case.sln" (Restore target(s)) -- FAILED.
Deferred Messages
09:38:17.002     0>
Detailed Build Summary
======================
     (TaskId:0)

                     ============================== Build Hierarchy (IDs represent configurations) =====================================================
                     Id                  : Exclusive Time   Total Time   Path (Targets)
                     ----------------------------------------------------------------------------------------------------------------------------------- (TaskId:0)
                     0                   : 0.275s           3.146s       /src/Kaspar123.Case.sln (Restore)  (TaskId:0)
                     | 1                 : 1.539s           1.539s       /src/Api.gRPC/Api.gRPC.csproj (_IsProjectRestoreSupported)  (TaskId:0)
                     | 5                 : 0.794s           0.794s       /src/Configuration/Configuration.csproj (_IsProjectRestoreSupported)  (TaskId:0)
                     | 4                 : 0.733s           0.733s       /src/Domain/Domain.csproj (_IsProjectRestoreSupported)  (TaskId:0)
                     | 3                 : 0.804s           0.804s       /src/Data/Data.csproj (_IsProjectRestoreSupported)  (TaskId:0)
                     | 2                 : 0.733s           0.733s       /src/Api.gRPC.Client/Api.gRPC.Client.csproj (_IsProjectRestoreSupported)  (TaskId:0)
                     | 7                 : 0.078s           0.078s       /src/Api.gRPC.Client/Api.gRPC.Client.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | 8                 : 0.136s           0.136s       /src/Data/Data.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | 6                 : 0.028s           0.142s       /src/Api.gRPC/Api.gRPC.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | | 9               : 0.000s           0.000s       /src/Domain/Domain.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | | 8               : 0.000s           0.000s       /src/Data/Data.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | . 10              : 0.000s           0.000s       /src/Configuration/Configuration.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | 10                : 0.072s           0.072s       /src/Configuration/Configuration.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | 9                 : 0.078s           0.078s       /src/Domain/Domain.csproj (_GenerateRestoreProjectPathWalk)  (TaskId:0)
                     | 16                : 0.241s           0.241s       /src/Api.gRPC.Client/Api.gRPC.Client.csproj (_GenerateRestoreGraphProjectEntry)  (TaskId:0)
                     | 15                : 0.103s           0.103s       /src/Api.gRPC/Api.gRPC.csproj (_GenerateRestoreGraphProjectEntry)  (TaskId:0)
                     | 14                : 0.215s           0.215s       /src/Domain/Domain.csproj (_GenerateRestoreGraphProjectEntry)  (TaskId:0)
                     | 13                : 0.191s           0.191s       /src/Data/Data.csproj (_GenerateRestoreGraphProjectEntry)  (TaskId:0)
                     | 12                : 0.209s           0.209s       /src/Configuration/Configuration.csproj (_GenerateRestoreGraphProjectEntry)  (TaskId:0)
                     | 18                : 0.119s           0.119s       /src/Data/Data.csproj (_GenerateProjectRestoreGraph)  (TaskId:0)
                     | 21                : 0.131s           0.131s       /src/Api.gRPC.Client/Api.gRPC.Client.csproj (_GenerateProjectRestoreGraph)  (TaskId:0)
                     | 20                : 0.048s           0.048s       /src/Api.gRPC/Api.gRPC.csproj (_GenerateProjectRestoreGraph)  (TaskId:0)
                     | 19                : 0.143s           0.143s       /src/Domain/Domain.csproj (_GenerateProjectRestoreGraph)  (TaskId:0)
                     . 17                : 0.144s           0.144s       /src/Configuration/Configuration.csproj (_GenerateProjectRestoreGraph)  (TaskId:0)

                     ============================== Node Utilization (IDs represent configurations) ====================================================
                     Timestamp:            1       2       3       4       5        Duration   Cumulative
                     ----------------------------------------------------------------------------------------------------------------------------------- (TaskId:0)
                     637774906938540046:   0       x       x       x       x        0.172s     0.172s ... (TaskId:0)
                     637774906940263764:   1       x       x       x       x        1.537s     1.709s .............................. (TaskId:0)
                     637774906955628862:   |       2       3       4       5        0.003s     1.712s  (TaskId:0)
                     637774906955658992:   x       |       |       |       |        0.733s     2.445s .............. (TaskId:0)
                     637774906962986973:   x       x       |       |       |        0.000s     2.445s  (TaskId:0)
                     637774906962989872:   x       x       |       x       |        0.060s     2.505s . (TaskId:0)
                     637774906963593131:   x       x       |       x       x        0.010s     2.515s  (TaskId:0)
                     637774906963692507:   0       x       x       x       x        0.027s     2.542s  (TaskId:0)
                     637774906963961597:   6       7       8       9       10       0.023s     2.565s  (TaskId:0)
                     637774906964191813:   x       |       |       |       |        0.049s     2.614s  (TaskId:0)
                     637774906964684247:   x       |       |       |       x        0.006s     2.620s  (TaskId:0)
                     637774906964744017:   x       x       |       |       x        0.001s     2.621s  (TaskId:0)
                     637774906964749697:   x       x       |       x       x        0.058s     2.679s . (TaskId:0)
                     637774906965330833:   6       x       x       x       x        0.006s     2.685s  (TaskId:0)
                     637774906965388914:   0       x       x       x       x        0.008s     2.693s  (TaskId:0)
                     637774906965472918:   15      16      13      14      12       0.103s     2.796s .. (TaskId:0)
                     637774906966504468:   x       |       |       |       |        0.088s     2.885s . (TaskId:0)
                     637774906967388397:   x       |       x       |       |        0.017s     2.902s  (TaskId:0)
                     637774906967562761:   x       |       x       |       x        0.006s     2.908s  (TaskId:0)
                     637774906967620910:   x       |       x       x       x        0.026s     2.935s  (TaskId:0)
                     637774906967885158:   0       x       x       x       x        0.004s     2.938s  (TaskId:0)
                     637774906967920231:   20      21      18      19      17       0.048s     2.986s  (TaskId:0)
                     637774906968399324:   x       |       |       |       |        0.071s     3.057s . (TaskId:0)
                     637774906969112204:   x       |       x       |       |        0.012s     3.069s  (TaskId:0)
                     637774906969234635:   x       x       x       |       |        0.012s     3.081s  (TaskId:0)
                     637774906969353587:   x       x       x       x       |        0.001s     3.083s  (TaskId:0)
                     637774906969365141:   0       x       x       x       x        0.065s     3.148s . (TaskId:0)
                     -----------------------------------------------------------------------------------------------------------------------------------
                     Utilization:          63.4    82.5    87.2    81.5    84.9     Average Utilization: 79.9 (TaskId:0)

Project Evaluation Performance Summary:
      531 ms  /src/Api.gRPC/Api.gRPC.csproj              1 calls
      661 ms  /src/Api.gRPC.Client/Api.gRPC.Client.csproj   1 calls
      666 ms  /src/Domain/Domain.csproj                  1 calls
      668 ms  /src/Configuration/Configuration.csproj    1 calls
      739 ms  /src/Data/Data.csproj                      1 calls

Project Performance Summary:
      292 ms  /src/Api.gRPC/Api.gRPC.csproj              5 calls
                  3 ms  _IsProjectRestoreSupported                 2 calls
                141 ms  _GenerateRestoreProjectPathWalk            1 calls
                101 ms  _GenerateRestoreGraphProjectEntry          1 calls
                 47 ms  _GenerateProjectRestoreGraph               1 calls
      386 ms  /src/Configuration/Configuration.csproj    6 calls
                 12 ms  _IsProjectRestoreSupported                 2 calls
                 59 ms  _GenerateRestoreProjectPathWalk            2 calls
                202 ms  _GenerateRestoreGraphProjectEntry          1 calls
                112 ms  _GenerateProjectRestoreGraph               1 calls
      391 ms  /src/Domain/Domain.csproj                  7 calls
                 17 ms  _IsProjectRestoreSupported                 2 calls
                 62 ms  _GenerateRestoreProjectPathWalk            3 calls
                206 ms  _GenerateRestoreGraphProjectEntry          1 calls
                105 ms  _GenerateProjectRestoreGraph               1 calls
      410 ms  /src/Api.gRPC.Client/Api.gRPC.Client.csproj   5 calls
                 15 ms  _IsProjectRestoreSupported                 2 calls
                 68 ms  _GenerateRestoreProjectPathWalk            1 calls
                227 ms  _GenerateRestoreGraphProjectEntry          1 calls
                100 ms  _GenerateProjectRestoreGraph               1 calls
      420 ms  /src/Data/Data.csproj                      6 calls
                 16 ms  _IsProjectRestoreSupported                 2 calls
                128 ms  _GenerateRestoreProjectPathWalk            2 calls
                168 ms  _GenerateRestoreGraphProjectEntry          1 calls
                108 ms  _GenerateProjectRestoreGraph               1 calls
     3138 ms  /src/Kaspar123.Case.sln                    1 calls
               3138 ms  Restore                                    1 calls

Target Performance Summary:
        0 ms  ValidateProjects                           1 calls
        0 ms  _GetRestoreSettingsCurrentProject          5 calls
        0 ms  CollectCentralPackageVersions              5 calls
        0 ms  CollectPackageDownloads                    5 calls
        0 ms  _GenerateRestoreGraphProjectEntry          5 calls
        0 ms  _GenerateProjectRestoreGraphCurrentProject   5 calls
        0 ms  _GenerateProjectRestoreGraph               5 calls
        0 ms  _GenerateRestoreProjectPathItemsCurrentProject   5 calls
        0 ms  _GenerateRestoreDependencies               5 calls
        0 ms  CollectPackageReferences                   5 calls
        1 ms  ValidateToolsVersions                      1 calls
        1 ms  _GetRestoreSettingsPerFramework            5 calls
        1 ms  CollectFrameworkReferences                 5 calls
        1 ms  _GetProjectJsonPath                        5 calls
        1 ms  _GetRestoreSettingsOverrides               5 calls
        2 ms  _CheckForUnsupportedCppNETCoreVersion      5 calls
        4 ms  _CheckForLanguageAndFeatureCombinationSupport   5 calls
        7 ms  _GenerateRestoreProjectSpec                5 calls
       10 ms  _GenerateRestoreSpecs                      5 calls
       11 ms  _CheckForObsoleteDotNetCliToolReferences   5 calls
       14 ms  _GenerateDotnetCliToolReferenceSpecs       5 calls
       16 ms  _GenerateRestoreProjectPathItems           5 calls
       23 ms  _LoadRestoreGraphEntryPoints               1 calls
       27 ms  _IsProjectRestoreSupported                 5 calls
       32 ms  ValidateSolutionConfiguration              1 calls
       44 ms  ApplyImplicitVersions                      4 calls
       59 ms  Restore                                    1 calls
      107 ms  _GenerateProjectRestoreGraphPerFramework   5 calls
      116 ms  CheckForImplicitPackageReferenceOverrides   5 calls
      153 ms  _GetAllRestoreProjectPathItems             1 calls
      161 ms  _GetRestoreProjectStyle                    5 calls
      192 ms  _GenerateRestoreProjectPathWalk            5 calls
      238 ms  _GenerateRestoreProjectPathItemsPerFramework   5 calls
      339 ms  _GetRestoreTargetFrameworksOutput          5 calls
      397 ms  _GenerateRestoreGraph                      1 calls
      500 ms  _GetRestoreSettings                        5 calls
     2464 ms  _FilterRestoreGraphProjectInputItems       1 calls

Task Performance Summary:
        3 ms  NuGetMessageTask                           1 calls
        3 ms  WarnForInvalidProjectsTask                 1 calls
        4 ms  GetRestorePackageDownloadsTask             5 calls
        5 ms  ApplyImplicitVersions                      4 calls
        7 ms  GetRestoreProjectReferencesTask            5 calls
       10 ms  GetRestoreDotnetCliToolsTask               5 calls
       14 ms  GetRestoreSolutionProjectsTask             1 calls
       15 ms  Message                                   12 calls
       24 ms  RemoveDuplicates                          13 calls
       30 ms  CheckForImplicitPackageReferenceOverrides   5 calls
       32 ms  GetRestorePackageReferencesTask            5 calls
       35 ms  ConvertToAbsolutePath                     10 calls
       56 ms  GetRestoreFrameworkReferencesTask          5 calls
       58 ms  RestoreTask                                1 calls
       83 ms  GetRestoreProjectStyleTask                 5 calls
      290 ms  GetProjectTargetFrameworksTask             5 calls
      497 ms  GetRestoreSettingsTask                     5 calls
     3119 ms  MSBuild                                   10 calls

Build FAILED.

                   "/src/Kaspar123.Case.sln" (Restore target) (1) ->
                   (Restore target) ->
                     /usr/share/dotnet/sdk/6.0.101/NuGet.targets(130,5): error : Invalid framework identifier ''. [/src/Kaspar123.Case.sln]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.68
Joren-Thijs-KasparSolutions commented 2 years ago

Small update: after further debugging with the help of a coworker we have determined the root cause might be the underlying OS. When we change the underlying OS in our azure pipeline to be windows-2022 then restore succeeds but when we change it back to ubuntu-latest the build fails. An obvious culprit would seem case-sensitivity between these two but renaming Directory.build.props to directory.build.props does not resolve the issue.

We also updated our pipeline to run our test job inside the mcr.microsoft.com/dotnet/sdk:6.0 container image to avoid having to install the sdk manually every time. Our azure pipelines file now looks like this:

pool:
  vmImage: "ubuntu-latest"

variables:
  DOCKER_BUILDKIT: 1

stages:
  - stage: Test

    jobs:
      - job: Test
        container: mcr.microsoft.com/dotnet/sdk:6.0
        steps:
          - task: NuGetAuthenticate@0
          - task: DotNetCoreCLI@2
            inputs:
              command: "test"
zivkan commented 2 years ago

The correct casing, as documented: https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2022

is Directory.Build.props.

For what it's worth, NuGet get project and package information from MSBuild, NuGet does not read MSBuild files itself, so https://github.com/dotnet/msbuild would have been the better place for this issue.

Joren-Thijs-KasparSolutions commented 2 years ago

@zivkan Thank you so much! I feel very stupid now😅