Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: $(IsPackable) is not quoted #11025

Closed
aetos382 opened this issue Jul 13, 2021 · 5 comments · Fixed by NuGet/NuGet.Client#4159
Closed

[Bug]: $(IsPackable) is not quoted #11025

aetos382 opened this issue Jul 13, 2021 · 5 comments · Fixed by NuGet/NuGet.Client#4159
Labels
Functionality:Pack good first issue Issues identified as good for first-time contributors help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:Bug

Comments

@aetos382
Copy link

NuGet Product Used

dotnet.exe

Product Version

5.0.302

Worked before?

yes

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Create a project file as shown below, and run dotnet pack -v d in the directory where this file is located.

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

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <IsPackable>false</IsPackable>
  </PropertyGroup>
    
</Project>

This will output the following to the log.

Target "GenerateNuspec" skipped, due to false condition; ($(IsPackable) == 'true') was evaluated as (false == 'true').

This is because $(IsPackable) is not enclosed in quotation marks in the following places.

https://github.com/NuGet/NuGet.Client/blob/680f9bd4e97db7cd7482584276886764de69d3cb/src/NuGet.Core/NuGet.Build.Tasks.Pack/NuGet.Build.Tasks.Pack.targets#L213

This should look something like this.

  <Target Name="GenerateNuspec"
          Condition="'$(IsPackable)' == 'true'"
          Inputs="@(NuGetPackInput)" Outputs="@(NuGetPackOutput)"
          DependsOnTargets="$(GenerateNuspecDependsOn);_CalculateInputsOutputsForPack;_GetProjectReferenceVersions;_InitializeNuspecRepositoryInformationProperties">

Verbose Logs

Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 07/13/2021 18:48:08.
     0>Process = "/usr/share/dotnet/dotnet"
       MSBuild executable path = "/usr/share/dotnet/sdk/5.0.302/MSBuild.dll"
       Command line arguments = "/usr/share/dotnet/sdk/5.0.302/MSBuild.dll -maxcpucount -verbosity:m -restore -target:pack -verbosity:d -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/usr/share/dotnet/sdk/5.0.302/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/usr/share/dotnet/sdk/5.0.302/dotnet.dll"
       Current directory = "/build"
       MSBuild version = "16.10.2+857e5a733"
       Resolving SDK 'Microsoft.NET.Sdk'...
       Property reassignment: $(MSBuildProjectExtensionsPath)="/build/obj/" (previous value: "obj\") at /usr/share/dotnet/sdk/5.0.302/Current/Microsoft.Common.props (57,5)
       Property reassignment: $(TargetsForTfmSpecificContentInPackage)=";PackTool;_PackProjectToolValidation" (previous value: ";PackTool") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackProjectTool.props (15,5)
       Property reassignment: $(PublishProfileImported)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportPublishProfile.targets (28,5)
       Property reassignment: $(TargetPlatformVersion)="" (previous value: "0.0") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (65,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**" (previous value: ";bin\Debug//**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (223,5)
       Property reassignment: $(IntermediateOutputPath)="obj\Debug/net5.0/" (previous value: "obj\Debug/") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (241,5)
       Property reassignment: $(OutputPath)="bin\Debug/net5.0/" (previous value: "bin\Debug/") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (242,5)
       Property reassignment: $(_FrameworkIdentifierForImplicitDefine)="NET" (previous value: "NETCOREAPP") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.BeforeCommon.targets (177,5)
       Property reassignment: $(_FrameworkVersionForImplicitDefine)="5_0" (previous value: "5.0") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.BeforeCommon.targets (182,5)
       Property reassignment: $(_DebugSymbolsProduced)="true" (previous value: "false") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (176,5)
       Property reassignment: $(_DocumentationFileProduced)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (185,5)
       Property reassignment: $(ProcessorArchitecture)="msil" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (518,5)
       Property reassignment: $(DelaySign)="" (previous value: "false") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (557,5)
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Auto" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (3611,5)
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Off" (previous value: "Auto") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (3612,5)
       Property reassignment: $(_TargetsThatPrepareProjectReferences)="
             AssignProjectConfiguration;
             _SplitProjectReferencesByFileExistence
           " (previous value: "_SplitProjectReferencesByFileExistence") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (4741,5)
       Property reassignment: $(ProjectAssetsFile)="/build/obj/project.assets.json" (previous value: "/build/obj//project.assets.json") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (24,5)
       Property reassignment: $(ProjectAssetsCacheFile)="/build/obj/Debug/net5.0/test.assets.cache" (previous value: "obj\Debug/net5.0/test.assets.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (29,5)
       Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           " (previous value: "
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (71,5)
       Property reassignment: $(PrepareResourcesDependsOn)="
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
             
             ;
             PrepareResourceNames;
             ResGen;
             CompileLicxFiles
           
           " (previous value: "
             ;
             PrepareResourceNames;
             ResGen;
             CompileLicxFiles
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (77,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**" (previous value: ";bin\Debug//**;obj\Debug//**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (27,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (29,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (32,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (33,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (34,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln;**/*.vssscc" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (35,5)
       Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
             
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           ;
             ResolveTargetingPackAssets;
           " (previous value: "
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (14,5)
       Property reassignment: $(_GenerateRuntimeConfigurationPropertyInputsCache)="/build/obj/Debug/net5.0/test.genruntimeconfig.cache" (previous value: "obj\Debug/net5.0/test.genruntimeconfig.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (39,5)
       Property reassignment: $(_DefaultUserProfileRuntimeStorePath)="/root/.dotnet/store" (previous value: "/root") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (62,5)
       Property reassignment: $(AvailablePlatforms)="Any CPU,x86,x64,ARM32" (previous value: "Any CPU,x86,x64") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (83,5)
       Property reassignment: $(AvailablePlatforms)="Any CPU,x86,x64,ARM32,ARM64" (previous value: "Any CPU,x86,x64,ARM32") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (87,5)
       Property reassignment: $(CoreBuildDependsOn)="
             _CheckForBuildWithNoBuild;
             
             BuildOnlySettings;
             PrepareForBuild;
             PreBuildEvent;
             ResolveReferences;
             PrepareResources;
             ResolveKeySource;
             Compile;
             ExportWindowsMDFile;
             UnmanagedUnregistration;
             GenerateSerializationAssemblies;
             CreateSatelliteAssemblies;
             GenerateManifests;
             GetTargetPath;
             PrepareForRun;
             UnmanagedRegistration;
             IncrementalClean;
             PostBuildEvent
           ;
             GenerateBuildDependencyFile;
             GenerateBuildRuntimeConfigurationFiles
           " (previous value: "
             BuildOnlySettings;
             PrepareForBuild;
             PreBuildEvent;
             ResolveReferences;
             PrepareResources;
             ResolveKeySource;
             Compile;
             ExportWindowsMDFile;
             UnmanagedUnregistration;
             GenerateSerializationAssemblies;
             CreateSatelliteAssemblies;
             GenerateManifests;
             GetTargetPath;
             PrepareForRun;
             UnmanagedRegistration;
             IncrementalClean;
             PostBuildEvent
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (91,5)
       Property reassignment: $(CoreCleanDependsOn)="
             _SdkBeforeClean;
             
           " (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (100,5)
       Property reassignment: $(RebuildDependsOn)="
             _SdkBeforeRebuild;
             
             BeforeRebuild;
             Clean;
             Build;
             AfterRebuild;
           
           " (previous value: "
             BeforeRebuild;
             Clean;
             Build;
             AfterRebuild;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (107,5)
       Property reassignment: $(CompileDependsOn)="
             
             ResolveReferences;
             ResolveKeySource;
             SetWin32ManifestProperties;
             FindReferenceAssembliesForReferences;
             _GenerateCompileInputs;
             BeforeCompile;
             _TimeStampBeforeCompile;
             _GenerateCompileDependencyCache;
             CoreCompile;
             _TimeStampAfterCompile;
             AfterCompile;
           ;
             _CreateAppHost;
             _CreateComHost;
             _GetIjwHostPaths;
           " (previous value: "
             ResolveReferences;
             ResolveKeySource;
             SetWin32ManifestProperties;
             FindReferenceAssembliesForReferences;
             _GenerateCompileInputs;
             BeforeCompile;
             _TimeStampBeforeCompile;
             _GenerateCompileDependencyCache;
             CoreCompile;
             _TimeStampAfterCompile;
             AfterCompile;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (436,5)
       Property reassignment: $(CreateSatelliteAssembliesDependsOn)="
             
             _GenerateSatelliteAssemblyInputs;
             ComputeIntermediateSatelliteAssemblies;
             GenerateSatelliteAssemblies
           ;
             CoreGenerateSatelliteAssemblies
           " (previous value: "
             _GenerateSatelliteAssemblyInputs;
             ComputeIntermediateSatelliteAssemblies;
             GenerateSatelliteAssemblies
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (817,5)
       Property reassignment: $(DesignerRuntimeImplementationProjectOutputGroupDependsOn)="
             
             ;
             
             ;
             BuildOnlySettings;
             PrepareForBuild;
             AssignTargetPaths;
             ResolveReferences
           
           ;
             _GenerateDesignerDepsFile;
             _GenerateDesignerRuntimeConfigFile;
             _GatherDesignerShadowCopyFiles;
           " (previous value: "
             ;
             
             ;
             BuildOnlySettings;
             PrepareForBuild;
             AssignTargetPaths;
             ResolveReferences
           
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DesignerSupport.targets (21,5)
       Property reassignment: $(PublishReadyToRunComposite)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets (20,5)
       Property reassignment: $(_ShimInputCacheFile)="/build/obj/Debug/net5.0/test.shiminput.cache" (previous value: "obj\Debug/net5.0/test.shiminput.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackTool.targets (109,5)
       Property reassignment: $(_ShimCreatedSentinelFile)="/build/obj/Debug/net5.0/test.shimcreated.sentinel" (previous value: "obj\Debug/net5.0/test.shimcreated.sentinel") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackTool.targets (111,5)
       Property reassignment: $(DefineConstants)="TRACE;DEBUG" (previous value: "TRACE") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CSharp.targets (31,5)
       Property reassignment: $(DefineConstants)="TRACE;DEBUG;NET;NET5_0;NETCOREAPP" (previous value: "TRACE;DEBUG") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CSharp.targets (34,5)
       Resolving SDK 'Microsoft.NET.ILLink.Tasks'...
       Property reassignment: $(WarningLevel)="5" (previous value: "4") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.Analyzers.targets (45,5)
       Property reassignment: $(PackageDescription)="Package Description" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets (35,5)
       Property reassignment: $(GenerateNuspecDependsOn)="Build;_LoadPackInputItems; _GetTargetFrameworksOutput; _WalkEachTargetPerFramework; _GetPackageFiles; " (previous value: "_LoadPackInputItems; _GetTargetFrameworksOutput; _WalkEachTargetPerFramework; _GetPackageFiles; ") at /usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets (59,5)
       Overriding target "GetTargetFrameworkProperties" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetTargetFrameworkProperties" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.Common.targets".
       Overriding target "ResolveFrameworkReferences" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "ResolveFrameworkReferences" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets".
       Overriding target "Run" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "Run" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets".
       Overriding target "GenerateSupportedTargetFrameworkAlias" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GenerateSupportedTargetFrameworkAlias" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets".
       Overriding target "GetReferenceAssemblyPaths" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetReferenceAssemblyPaths" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DisableStandardFrameworkResolution.targets".
       Overriding target "GetFrameworkPaths" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetFrameworkPaths" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DisableStandardFrameworkResolution.targets".
       Overriding target "DesignerRuntimeImplementationProjectOutputGroup" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "DesignerRuntimeImplementationProjectOutputGroup" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DesignerSupport.targets".
       Overriding target "Publish" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "Publish" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets".
       Overriding target "GetCopyToPublishDirectoryItems" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetCopyToPublishDirectoryItems" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets".
     1>Project "/build/test.csproj" on node 1 (Restore target(s)).
     1>Building with tools version "Current".
     1>Target "_LoadRestoreGraphEntryPoints" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_FilterRestoreGraphProjectInputItems" depends on it):
       Task "GetRestoreSolutionProjectsTask" skipped, due to false condition; ( $(MSBuildProjectFullPath.EndsWith('.metaproj')) == 'true' AND @(RestoreGraphProjectInputItems) == '' ) was evaluated as ( False == 'true' AND /build/test.csproj == '' ).
     1>Done building target "_LoadRestoreGraphEntryPoints" in project "test.csproj".
     1>Target "_FilterRestoreGraphProjectInputItems" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreGraph" depends on it):
       Using "RemoveDuplicates" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
       Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
     0>Property reassignment: $(MSBuildProjectExtensionsPath)="/build/obj/" (previous value: "obj\") at /usr/share/dotnet/sdk/5.0.302/Current/Microsoft.Common.props (57,5)
       Property reassignment: $(TargetsForTfmSpecificContentInPackage)=";PackTool;_PackProjectToolValidation" (previous value: ";PackTool") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackProjectTool.props (15,5)
       Property reassignment: $(PublishProfileImported)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportPublishProfile.targets (28,5)
       Property reassignment: $(TargetPlatformVersion)="" (previous value: "0.0") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (65,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**" (previous value: ";bin\Debug//**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (223,5)
       Property reassignment: $(IntermediateOutputPath)="obj\Debug/net5.0/" (previous value: "obj\Debug/") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (241,5)
       Property reassignment: $(OutputPath)="bin\Debug/net5.0/" (previous value: "bin\Debug/") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (242,5)
       Property reassignment: $(_FrameworkIdentifierForImplicitDefine)="NET" (previous value: "NETCOREAPP") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.BeforeCommon.targets (177,5)
       Property reassignment: $(_FrameworkVersionForImplicitDefine)="5_0" (previous value: "5.0") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.BeforeCommon.targets (182,5)
       Property reassignment: $(_DebugSymbolsProduced)="true" (previous value: "false") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (176,5)
       Property reassignment: $(_DocumentationFileProduced)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (185,5)
       Property reassignment: $(ProcessorArchitecture)="msil" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (518,5)
       Property reassignment: $(DelaySign)="" (previous value: "false") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (557,5)
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Auto" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (3611,5)
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Off" (previous value: "Auto") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (3612,5)
       Property reassignment: $(_TargetsThatPrepareProjectReferences)="
             AssignProjectConfiguration;
             _SplitProjectReferencesByFileExistence
           " (previous value: "_SplitProjectReferencesByFileExistence") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (4741,5)
       Property reassignment: $(ProjectAssetsFile)="/build/obj/project.assets.json" (previous value: "/build/obj//project.assets.json") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (24,5)
       Property reassignment: $(ProjectAssetsCacheFile)="/build/obj/Debug/net5.0/test.assets.cache" (previous value: "obj\Debug/net5.0/test.assets.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (29,5)
       Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           " (previous value: "
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (71,5)
       Property reassignment: $(PrepareResourcesDependsOn)="
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
             
             ;
             PrepareResourceNames;
             ResGen;
             CompileLicxFiles
           
           " (previous value: "
             ;
             PrepareResourceNames;
             ResGen;
             CompileLicxFiles
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (77,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**" (previous value: ";bin\Debug//**;obj\Debug//**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (27,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (29,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (32,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (33,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (34,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln;**/*.vssscc" (previous value: ";bin\Debug//**;obj\Debug//**;bin\/**;obj\/**;**/*.user;**/*.*proj;**/*.sln") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (35,5)
       Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
             
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           ;
             ResolveTargetingPackAssets;
           " (previous value: "
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (14,5)
       Property reassignment: $(_GenerateRuntimeConfigurationPropertyInputsCache)="/build/obj/Debug/net5.0/test.genruntimeconfig.cache" (previous value: "obj\Debug/net5.0/test.genruntimeconfig.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (39,5)
       Property reassignment: $(_DefaultUserProfileRuntimeStorePath)="/root/.dotnet/store" (previous value: "/root") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (62,5)
       Property reassignment: $(AvailablePlatforms)="Any CPU,x86,x64,ARM32" (previous value: "Any CPU,x86,x64") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (83,5)
       Property reassignment: $(AvailablePlatforms)="Any CPU,x86,x64,ARM32,ARM64" (previous value: "Any CPU,x86,x64,ARM32") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (87,5)
       Property reassignment: $(CoreBuildDependsOn)="
             _CheckForBuildWithNoBuild;
             
             BuildOnlySettings;
             PrepareForBuild;
             PreBuildEvent;
             ResolveReferences;
             PrepareResources;
             ResolveKeySource;
             Compile;
             ExportWindowsMDFile;
             UnmanagedUnregistration;
             GenerateSerializationAssemblies;
             CreateSatelliteAssemblies;
             GenerateManifests;
             GetTargetPath;
             PrepareForRun;
             UnmanagedRegistration;
             IncrementalClean;
             PostBuildEvent
           ;
             GenerateBuildDependencyFile;
             GenerateBuildRuntimeConfigurationFiles
           " (previous value: "
             BuildOnlySettings;
             PrepareForBuild;
             PreBuildEvent;
             ResolveReferences;
             PrepareResources;
             ResolveKeySource;
             Compile;
             ExportWindowsMDFile;
             UnmanagedUnregistration;
             GenerateSerializationAssemblies;
             CreateSatelliteAssemblies;
             GenerateManifests;
             GetTargetPath;
             PrepareForRun;
             UnmanagedRegistration;
             IncrementalClean;
             PostBuildEvent
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (91,5)
       Property reassignment: $(CoreCleanDependsOn)="
             _SdkBeforeClean;
             
           " (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (100,5)
       Property reassignment: $(RebuildDependsOn)="
             _SdkBeforeRebuild;
             
             BeforeRebuild;
             Clean;
             Build;
             AfterRebuild;
           
           " (previous value: "
             BeforeRebuild;
             Clean;
             Build;
             AfterRebuild;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (107,5)
       Property reassignment: $(CompileDependsOn)="
             
             ResolveReferences;
             ResolveKeySource;
             SetWin32ManifestProperties;
             FindReferenceAssembliesForReferences;
             _GenerateCompileInputs;
             BeforeCompile;
             _TimeStampBeforeCompile;
             _GenerateCompileDependencyCache;
             CoreCompile;
             _TimeStampAfterCompile;
             AfterCompile;
           ;
             _CreateAppHost;
             _CreateComHost;
             _GetIjwHostPaths;
           " (previous value: "
             ResolveReferences;
             ResolveKeySource;
             SetWin32ManifestProperties;
             FindReferenceAssembliesForReferences;
             _GenerateCompileInputs;
             BeforeCompile;
             _TimeStampBeforeCompile;
             _GenerateCompileDependencyCache;
             CoreCompile;
             _TimeStampAfterCompile;
             AfterCompile;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (436,5)
       Property reassignment: $(CreateSatelliteAssembliesDependsOn)="
             
             _GenerateSatelliteAssemblyInputs;
             ComputeIntermediateSatelliteAssemblies;
             GenerateSatelliteAssemblies
           ;
             CoreGenerateSatelliteAssemblies
           " (previous value: "
             _GenerateSatelliteAssemblyInputs;
             ComputeIntermediateSatelliteAssemblies;
             GenerateSatelliteAssemblies
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (817,5)
       Property reassignment: $(DesignerRuntimeImplementationProjectOutputGroupDependsOn)="
             
             ;
             
             ;
             BuildOnlySettings;
             PrepareForBuild;
             AssignTargetPaths;
             ResolveReferences
           
           ;
             _GenerateDesignerDepsFile;
             _GenerateDesignerRuntimeConfigFile;
             _GatherDesignerShadowCopyFiles;
           " (previous value: "
             ;
             
             ;
             BuildOnlySettings;
             PrepareForBuild;
             AssignTargetPaths;
             ResolveReferences
           
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DesignerSupport.targets (21,5)
       Property reassignment: $(PublishReadyToRunComposite)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets (20,5)
       Property reassignment: $(_ShimInputCacheFile)="/build/obj/Debug/net5.0/test.shiminput.cache" (previous value: "obj\Debug/net5.0/test.shiminput.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackTool.targets (109,5)
       Property reassignment: $(_ShimCreatedSentinelFile)="/build/obj/Debug/net5.0/test.shimcreated.sentinel" (previous value: "obj\Debug/net5.0/test.shimcreated.sentinel") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackTool.targets (111,5)
       Property reassignment: $(DefineConstants)="TRACE;DEBUG" (previous value: "TRACE") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CSharp.targets (31,5)
       Property reassignment: $(DefineConstants)="TRACE;DEBUG;NET;NET5_0;NETCOREAPP" (previous value: "TRACE;DEBUG") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CSharp.targets (34,5)
       Property reassignment: $(WarningLevel)="5" (previous value: "4") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.Analyzers.targets (45,5)
       Property reassignment: $(PackageDescription)="Package Description" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets (35,5)
       Property reassignment: $(GenerateNuspecDependsOn)="Build;_LoadPackInputItems; _GetTargetFrameworksOutput; _WalkEachTargetPerFramework; _GetPackageFiles; " (previous value: "_LoadPackInputItems; _GetTargetFrameworksOutput; _WalkEachTargetPerFramework; _GetPackageFiles; ") at /usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets (59,5)
       Overriding target "GetTargetFrameworkProperties" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetTargetFrameworkProperties" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.Common.targets".
       Overriding target "ResolveFrameworkReferences" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "ResolveFrameworkReferences" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets".
       Overriding target "Run" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "Run" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets".
       Overriding target "GenerateSupportedTargetFrameworkAlias" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GenerateSupportedTargetFrameworkAlias" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets".
       Overriding target "GetReferenceAssemblyPaths" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetReferenceAssemblyPaths" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DisableStandardFrameworkResolution.targets".
       Overriding target "GetFrameworkPaths" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetFrameworkPaths" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DisableStandardFrameworkResolution.targets".
       Overriding target "DesignerRuntimeImplementationProjectOutputGroup" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "DesignerRuntimeImplementationProjectOutputGroup" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DesignerSupport.targets".
       Overriding target "Publish" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "Publish" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets".
       Overriding target "GetCopyToPublishDirectoryItems" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetCopyToPublishDirectoryItems" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets".
     1>Project "/build/test.csproj" (1) is building "/build/test.csproj" (1:2) on node 1 (_IsProjectRestoreSupported target(s)).
   1:2>Building with tools version "Current".
   1:2>Target "_IsProjectRestoreSupported" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (entry point):
   1:2>Done building target "_IsProjectRestoreSupported" in project "test.csproj".
   1:2>Done Building Project "/build/test.csproj" (_IsProjectRestoreSupported target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluated as ( 'true' != 'true' ).
       Using "WarnForInvalidProjectsTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "WarnForInvalidProjectsTask"
         (in) AllProjects '/build/test.csproj'
         (in) ValidProjects '/build/test.csproj'
       Done executing task "WarnForInvalidProjectsTask".
     1>Done building target "_FilterRestoreGraphProjectInputItems" in project "test.csproj".
       Target "_FilterRestoreGraphProjectInputItems" skipped. Previously built successfully.
     1>Target "_GetAllRestoreProjectPathItems" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreGraph" depends on it):
       Using "NuGetMessageTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "NuGetMessageTask"
         Determining projects to restore...
       Done executing task "NuGetMessageTask".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
     1>Project "/build/test.csproj" (1) is building "/build/test.csproj" (1:3) on node 1 (_GenerateRestoreProjectPathWalk target(s)).
   1:3>Building with tools version "Current".
       Target "_GenerateRestoreProjectPathItemsAllFrameworks" skipped, due to false condition; ( '$(TargetFrameworks)' != '' ) was evaluated as ( '' != '' ).
   1:3>Target "_GenerateRestoreProjectPathItemsPerFramework" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreProjectPathItemsCurrentProject" depends on it):
       Using "ConvertToAbsolutePath" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
       Task "ConvertToAbsolutePath"
       Done executing task "ConvertToAbsolutePath".
   1:3>Done building target "_GenerateRestoreProjectPathItemsPerFramework" in project "test.csproj".
   1:3>Target "_GenerateRestoreProjectPathItemsCurrentProject" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreProjectPathItems" depends on it):
   1:3>Done building target "_GenerateRestoreProjectPathItemsCurrentProject" in project "test.csproj".
   1:3>Target "_GenerateRestoreProjectPathItems" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreProjectPathWalk" depends on it):
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
   1:3>Done building target "_GenerateRestoreProjectPathItems" in project "test.csproj".
   1:3>Target "_GenerateRestoreProjectPathWalk" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (entry point):
       Task "MSBuild"
       Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluated as ( 'true' != 'true' ).
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
   1:3>Done building target "_GenerateRestoreProjectPathWalk" in project "test.csproj".
   1:3>Done Building Project "/build/test.csproj" (_GenerateRestoreProjectPathWalk target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluated as ( 'true' != 'true' ).
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
     1>Project "/build/test.csproj" (1) is building "/build/test.csproj" (1:4) on node 1 (_IsProjectRestoreSupported target(s)).
   1:4>Building with tools version "Current".
       Target "_IsProjectRestoreSupported" skipped. Previously built successfully.
   1:4>Done Building Project "/build/test.csproj" (_IsProjectRestoreSupported target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreUseSkipNonexistentTargets)' != 'true' ) was evaluated as ( 'true' != 'true' ).
     1>Done building target "_GetAllRestoreProjectPathItems" in project "test.csproj".
     1>Target "_GenerateRestoreGraph" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "Restore" depends on it):
       Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
       Task "Message"
         Generating dg file
       Done executing task "Message".
       Task "Message"
         /build/test.csproj
       Done executing task "Message".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
     1>Project "/build/test.csproj" (1) is building "/build/test.csproj" (1:5) on node 1 (_GenerateRestoreGraphProjectEntry target(s)).
   1:5>Building with tools version "Current".
   1:5>Target "_GetProjectJsonPath" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GetRestoreProjectStyle" depends on it):
       Task "GetRestoreProjectJsonPathTask" skipped, due to false condition; ( '$(RestoreProjectStyle)' == 'ProjectJson' OR '$(RestoreProjectStyle)' == '' ) was evaluated as ( 'PackageReference' == 'ProjectJson' OR 'PackageReference' == '' ).
   1:5>Done building target "_GetProjectJsonPath" in project "test.csproj".
       Target "_CheckForUnsupportedTargetPlatformIdentifier" skipped, due to false condition; ('$(TargetPlatformIdentifier)' != '' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 5.0))) was evaluated as ('' != '' and '.NETCoreApp' == '.NETCoreApp' and True).
   1:5>Target "_CheckForUnsupportedNETCoreVersion" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets" from project "/build/test.csproj" (target "CollectPackageReferences" depends on it):
       Task "NETSdkError" skipped, due to false condition; ('$(_TargetFrameworkVersionWithoutV)' > '$(NETCoreAppMaximumVersion)') was evaluated as ('5.0' > '5.0').
   1:5>Done building target "_CheckForUnsupportedNETCoreVersion" in project "test.csproj".
       Target "_CheckForEolTargetFrameworks" skipped, due to false condition; ('@(_EolNetCoreTargetFrameworkVersions->AnyHaveMetadataValue('Identity', '$(_TargetFrameworkVersionWithoutV)'))' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(CheckEolTargetFramework)' == 'true') was evaluated as ('false' and '.NETCoreApp' == '.NETCoreApp' and 'true' == 'true').
   1:5>Target "_CheckForUnsupportedCppNETCoreVersion" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets" from project "/build/test.csproj" (target "CollectPackageReferences" depends on it):
       Task "NETSdkError" skipped, due to false condition; ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(_TargetFrameworkVersionWithoutV)' < '3.1' and ('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true')) was evaluated as ('.NETCoreApp' == '.NETCoreApp' and '5.0' < '3.1' and ('C#' == 'C++' and '' != 'true')).
   1:5>Done building target "_CheckForUnsupportedCppNETCoreVersion" in project "test.csproj".
       Target "_CheckForUnsupportedNETStandardVersion" skipped, due to false condition; ('$(TargetFrameworkIdentifier)' == '.NETStandard' And '$(NETStandardMaximumVersion)' != '') was evaluated as ('.NETCoreApp' == '.NETStandard' And '' != '').
       Target "_CheckForUnsupportedTargetFrameworkAndFeatureCombination" skipped, due to false condition; ('$(TargetFrameworkIdentifier)' == '.NETFramework') was evaluated as ('.NETCoreApp' == '.NETFramework').
       Target "ApplyImplicitVersions" skipped, due to false condition; ('@(PackageReference)' != '') was evaluated as ('' != '').
       Target "IncludeTargetingPackReference" skipped, due to false condition; ('$(TargetFrameworkMoniker)' != '' and '$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(AutomaticallyUseReferenceAssemblyPackages)' == 'true') was evaluated as ('.NETCoreApp,Version=v5.0' != '' and '.NETCoreApp' == '.NETFramework' and 'true' == 'true').
   1:5>Target "CheckForImplicitPackageReferenceOverrides" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets" from project "/build/test.csproj" (target "CollectPackageReferences" depends on it):
       Using "CheckForImplicitPackageReferenceOverrides" task from assembly "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/../tools/net5.0/Microsoft.NET.Build.Tasks.dll".
       Task "CheckForImplicitPackageReferenceOverrides"
       Done executing task "CheckForImplicitPackageReferenceOverrides".
   1:5>Done building target "CheckForImplicitPackageReferenceOverrides" in project "test.csproj".
       Target "AddWindowsSdkKnownFrameworkReferences" skipped, due to false condition; ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(TargetPlatformIdentifier)' == 'Windows') was evaluated as ('.NETCoreApp' == '.NETCoreApp' And '' == 'Windows').
       Target "_NormalizeTargetPlatformVersion" skipped, due to false condition; ('$(TargetPlatformVersion)' != '' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 5.0)) and ('$(Language)' != 'C++' or '$(_EnablePackageReferencesInVCProjects)' == 'true')) was evaluated as ('' != '' and '.NETCoreApp' == '.NETCoreApp' and True and ('C#' != 'C++' or '' == 'true')).
   1:5>Target "_CheckForLanguageAndFeatureCombinationSupport" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets" from project "/build/test.csproj" (target "ProcessFrameworkReferences" depends on it):
       Task "NETSdkError" skipped, due to false condition; (('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true') and $(OutputType) != 'library' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp') was evaluated as (('C#' == 'C++' and '' != 'true') and Library != 'library' and '.NETCoreApp' == '.NETCoreApp').
       Task "NETSdkError" skipped, due to false condition; (('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true') and $(EnableComHosting) == 'true') was evaluated as (('C#' == 'C++' and '' != 'true') and  == 'true').
       Task "NETSdkError" skipped, due to false condition; (('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true') and $(SelfContained) == 'true') was evaluated as (('C#' == 'C++' and '' != 'true') and  == 'true').
   1:5>Done building target "_CheckForLanguageAndFeatureCombinationSupport" in project "test.csproj".
       Target "ApplyImplicitVersions" skipped, due to false condition; ('@(PackageReference)' != '') was evaluated as ('' != '').
   1:5>Target "ProcessFrameworkReferences" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets" from project "/build/test.csproj" (target "CollectPackageReferences" depends on it):
       Using "CheckForDuplicateFrameworkReferences" task from assembly "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/../tools/net5.0/Microsoft.NET.Build.Tasks.dll".
       Task "CheckForDuplicateFrameworkReferences"
       Done executing task "CheckForDuplicateFrameworkReferences".
       Using "ProcessFrameworkReferences" task from assembly "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/../tools/net5.0/Microsoft.NET.Build.Tasks.dll".
       Task "ProcessFrameworkReferences"
       Done executing task "ProcessFrameworkReferences".
       Using "ResolveAppHosts" task from assembly "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/../tools/net5.0/Microsoft.NET.Build.Tasks.dll".
       Task "ResolveAppHosts"
       Done executing task "ResolveAppHosts".
   1:5>Done building target "ProcessFrameworkReferences" in project "test.csproj".
       Target "IncludeTargetingPackReference" skipped, due to false condition; ('$(TargetFrameworkMoniker)' != '' and '$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(AutomaticallyUseReferenceAssemblyPackages)' == 'true') was evaluated as ('.NETCoreApp,Version=v5.0' != '' and '.NETCoreApp' == '.NETFramework' and 'true' == 'true').
   1:5>Target "_CheckForObsoleteDotNetCliToolReferences" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ObsoleteReferences.targets" from project "/build/test.csproj" (target "CollectPackageReferences" depends on it):
       Task "NETSdkWarning" skipped, due to false condition; ( '%(_ReferenceToObsoleteDotNetCliTool.Identity)' != '' ) was evaluated as ( '' != '' ).
   1:5>Done building target "_CheckForObsoleteDotNetCliToolReferences" in project "test.csproj".
   1:5>Target "CollectPackageReferences" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GetRestoreProjectStyle" depends on it):
   1:5>Done building target "CollectPackageReferences" in project "test.csproj".
   1:5>Target "_GetRestoreProjectStyle" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreSpecs" depends on it):
       Using "GetRestoreProjectStyleTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetRestoreProjectStyleTask"
         (in) HasPackageReferenceItems 'False'
         (in) MSBuildProjectDirectory '/build'
         (in) MSBuildProjectName 'test'
         (in) ProjectJsonPath ''
         (in) RestoreProjectStyle 'PackageReference'
         (out) IsPackageReferenceCompatibleProjectStyle 'True'
         (out) ProjectStyle 'PackageReference'
       Done executing task "GetRestoreProjectStyleTask".
   1:5>Done building target "_GetRestoreProjectStyle" in project "test.csproj".
   1:5>Target "_GenerateRestoreSpecs" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreGraphProjectEntry" depends on it):
       Task "Message"
         Restore entry point /build/test.csproj
       Done executing task "Message".
   1:5>Done building target "_GenerateRestoreSpecs" in project "test.csproj".
   1:5>Target "_GetRestoreSettingsOverrides" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GetRestoreSettings" depends on it):
       Task "MSBuild" skipped, due to false condition; ( '$(RestorePackagesPath)' != '' ) was evaluated as ( '' != '' ).
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreRepositoryPathOverride)' != '' ) was evaluated as ( '' != '' ).
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreSources)' != '' ) was evaluated as ( '' != '' ).
       Task "MSBuild" skipped, due to false condition; ( '$(RestoreFallbackFolders)' != '' ) was evaluated as ( '' != '' ).
   1:5>Done building target "_GetRestoreSettingsOverrides" in project "test.csproj".
   1:5>Target "_GetRestoreSettingsPerFramework" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GetRestoreSettingsCurrentProject" depends on it):
   1:5>Done building target "_GetRestoreSettingsPerFramework" in project "test.csproj".
   1:5>Target "_GetRestoreSettingsCurrentProject" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GetRestoreSettings" depends on it):
   1:5>Done building target "_GetRestoreSettingsCurrentProject" in project "test.csproj".
       Target "_GetRestoreSettingsAllFrameworks" skipped, due to false condition; ( '$(TargetFrameworks)' != '' AND '$(PackageReferenceCompatibleProjectStyle)' == 'true' ) was evaluated as ( '' != '' AND 'True' == 'true' ).
   1:5>Target "_GetRestoreSettings" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateDotnetCliToolReferenceSpecs" depends on it):
       Using "GetRestoreSettingsTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetRestoreSettingsTask"
         (in) ProjectUniqueName '/build/test.csproj'
         (in) RestoreSources ''
         (in) RestorePackagesPath ''
         (in) RestoreRepositoryPath ''
         (in) RestoreFallbackFolders ''
         (in) RestoreConfigFile ''
         (in) RestoreSolutionDirectory ''
         (in) RestoreRootConfigDirectory ''
         (in) RestorePackagesPathOverride ''
         (in) RestoreSourcesOverride ''
         (in) RestoreFallbackFoldersOverride ''
         (in) RestoreProjectStyle 'PackageReference'
         (in) MSBuildStartupDirectory '/build'
         (out) OutputPackagesPath '/root/.nuget/packages/'
         (out) OutputRepositoryPath ''
         (out) OutputSources 'https://api.nuget.org/v3/index.json'
         (out) OutputFallbackFolders ''
         (out) OutputConfigFilePaths '/root/.nuget/NuGet/NuGet.Config'
       Done executing task "GetRestoreSettingsTask".
   1:5>Done building target "_GetRestoreSettings" in project "test.csproj".
   1:5>Target "_GenerateDotnetCliToolReferenceSpecs" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreGraphProjectEntry" depends on it):
       Using "GetRestoreDotnetCliToolsTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetRestoreDotnetCliToolsTask"
         (in) ProjectPath '/build/test.csproj'
         (in) DotnetCliToolReferences ''
         (in) RestoreSources 'https://api.nuget.org/v3/index.json'
         (in) RestorePackagesPath '/root/.nuget/packages/'
         (in) RestoreConfigFilePaths '/root/.nuget/NuGet/NuGet.Config'
       Done executing task "GetRestoreDotnetCliToolsTask".
   1:5>Done building target "_GenerateDotnetCliToolReferenceSpecs" in project "test.csproj".
   1:5>Target "_GenerateRestoreGraphProjectEntry" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (entry point):
   1:5>Done building target "_GenerateRestoreGraphProjectEntry" in project "test.csproj".
   1:5>Done Building Project "/build/test.csproj" (_GenerateRestoreGraphProjectEntry target(s)).
     1>Done executing task "MSBuild".
       Task "MSBuild"
         Global Properties:
           ExcludeRestorePackageImports=true
     1>Project "/build/test.csproj" (1) is building "/build/test.csproj" (1:6) on node 1 (_GenerateProjectRestoreGraph target(s)).
   1:6>Building with tools version "Current".
       Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
       Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
       Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
   1:6>Target "_GetRestoreTargetFrameworksOutput" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreProjectSpec" depends on it):
       Using "GetProjectTargetFrameworksTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetProjectTargetFrameworksTask"
         (in) ProjectPath '/build/test.csproj'
         (in) TargetFrameworkMoniker '.NETCoreApp,Version=v5.0'
         (in) TargetPlatformIdentifier ''
         (in) TargetPlatformVersion ''
         (in) TargetPlatformMinVersion ''
         (in) TargetFrameworks ''
         (in) TargetFramework 'net5.0'
         (out) ProjectTargetFrameworks 'net5.0'
       Done executing task "GetProjectTargetFrameworksTask".
   1:6>Done building target "_GetRestoreTargetFrameworksOutput" in project "test.csproj".
       Target "_GetRestoreSettings" skipped. Previously built successfully.
   1:6>Target "_GenerateRestoreProjectSpec" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateProjectRestoreGraph" depends on it):
       Task "ConvertToAbsolutePath"
       Done executing task "ConvertToAbsolutePath".
   1:6>Done building target "_GenerateRestoreProjectSpec" in project "test.csproj".
       Target "_GenerateProjectRestoreGraphAllFrameworks" skipped, due to false condition; ( '$(TargetFrameworks)' != '' ) was evaluated as ( '' != '' ).
       Target "_GetRestoreProjectStyle" skipped. Previously built successfully.
       Target "CollectPackageReferences" skipped. Previously built successfully.
   1:6>Target "CollectPackageDownloads" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
   1:6>Done building target "CollectPackageDownloads" in project "test.csproj".
   1:6>Target "CollectFrameworkReferences" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
   1:6>Done building target "CollectFrameworkReferences" in project "test.csproj".
   1:6>Target "CollectCentralPackageVersions" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateProjectRestoreGraphPerFramework" depends on it):
   1:6>Done building target "CollectCentralPackageVersions" in project "test.csproj".
       Target "PrepRestoreForStoreProjects" skipped, due to false condition; ('$(StorePackageName)' != '') was evaluated as ('' != '').
   1:6>Target "_GenerateProjectRestoreGraphPerFramework" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateProjectRestoreGraphCurrentProject" depends on it):
       Using "GetRestoreProjectReferencesTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetRestoreProjectReferencesTask"
         (in) ProjectUniqueName '/build/test.csproj'
         (in) TargetFrameworks 'net5.0'
         (in) ProjectReferences ''
         (in) ParentProjectPath '/build/test.csproj'
       Done executing task "GetRestoreProjectReferencesTask".
       Using "GetRestorePackageReferencesTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetRestorePackageReferencesTask"
         (in) ProjectUniqueName '/build/test.csproj'
         (in) TargetFrameworks 'net5.0'
         (in) PackageReferences ''
       Done executing task "GetRestorePackageReferencesTask".
       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/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetRestorePackageDownloadsTask"
         (in) ProjectUniqueName '/build/test.csproj'
         (in) TargetFrameworks 'net5.0'
         (in) PackageDownloads ''
       Done executing task "GetRestorePackageDownloadsTask".
       Using "GetRestoreFrameworkReferencesTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "GetRestoreFrameworkReferencesTask"
         (in) ProjectUniqueName '/build/test.csproj'
         (in) TargetFrameworks 'net5.0'
         (in) FrameworkReferences 'Microsoft.NETCore.App'
       Done executing task "GetRestoreFrameworkReferencesTask".
   1:6>Done building target "_GenerateProjectRestoreGraphPerFramework" in project "test.csproj".
   1:6>Target "_GenerateProjectRestoreGraphCurrentProject" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateRestoreDependencies" depends on it):
   1:6>Done building target "_GenerateProjectRestoreGraphCurrentProject" in project "test.csproj".
   1:6>Target "_GenerateRestoreDependencies" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (target "_GenerateProjectRestoreGraph" depends on it):
   1:6>Done building target "_GenerateRestoreDependencies" in project "test.csproj".
   1:6>Target "_GenerateProjectRestoreGraph" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (entry point):
   1:6>Done building target "_GenerateProjectRestoreGraph" in project "test.csproj".
   1:6>Done Building Project "/build/test.csproj" (_GenerateProjectRestoreGraph target(s)).
     1>Done executing task "MSBuild".
     1>Done building target "_GenerateRestoreGraph" in project "test.csproj".
       Target "_CheckForUnsupportedTargetFramework" skipped, due to false condition; ('$(_UnsupportedTargetFrameworkError)' == 'true') was evaluated as ('' == 'true').
     1>Target "_CollectTargetFrameworkForTelemetry" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets" from project "/build/test.csproj" (target "Restore" depends on it):
       Using "AllowEmptyTelemetry" task from assembly "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/../tools/net5.0/Microsoft.NET.Build.Tasks.dll".
       Task "AllowEmptyTelemetry"
       Done executing task "AllowEmptyTelemetry".
     1>Done building target "_CollectTargetFrameworkForTelemetry" in project "test.csproj".
     1>Target "_CheckForUnsupportedNETCoreVersion" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets" from project "/build/test.csproj" (target "Restore" depends on it):
       Task "NETSdkError" skipped, due to false condition; ('$(_TargetFrameworkVersionWithoutV)' > '$(NETCoreAppMaximumVersion)') was evaluated as ('5.0' > '5.0').
     1>Done building target "_CheckForUnsupportedNETCoreVersion" in project "test.csproj".
       Target "_CheckForEolTargetFrameworks" skipped, due to false condition; ('@(_EolNetCoreTargetFrameworkVersions->AnyHaveMetadataValue('Identity', '$(_TargetFrameworkVersionWithoutV)'))' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(CheckEolTargetFramework)' == 'true') was evaluated as ('false' and '.NETCoreApp' == '.NETCoreApp' and 'true' == 'true').
     1>Target "_CheckForUnsupportedCppNETCoreVersion" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets" from project "/build/test.csproj" (target "Restore" depends on it):
       Task "NETSdkError" skipped, due to false condition; ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(_TargetFrameworkVersionWithoutV)' < '3.1' and ('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true')) was evaluated as ('.NETCoreApp' == '.NETCoreApp' and '5.0' < '3.1' and ('C#' == 'C++' and '' != 'true')).
     1>Done building target "_CheckForUnsupportedCppNETCoreVersion" in project "test.csproj".
       Target "_CheckForUnsupportedNETStandardVersion" skipped, due to false condition; ('$(TargetFrameworkIdentifier)' == '.NETStandard' And '$(NETStandardMaximumVersion)' != '') was evaluated as ('.NETCoreApp' == '.NETStandard' And '' != '').
       Target "_CheckForUnsupportedTargetFrameworkAndFeatureCombination" skipped, due to false condition; ('$(TargetFrameworkIdentifier)' == '.NETFramework') was evaluated as ('.NETCoreApp' == '.NETFramework').
     1>Target "Restore" in file "/usr/share/dotnet/sdk/5.0.302/NuGet.targets" from project "/build/test.csproj" (entry point):
       Task "RemoveDuplicates"
       Done executing task "RemoveDuplicates".
       Using "RestoreTask" task from assembly "/usr/share/dotnet/sdk/5.0.302/NuGet.Build.Tasks.dll".
       Task "RestoreTask"
         (in) RestoreGraphItems Count '4'
         (in) RestoreDisableParallel 'False'
         (in) RestoreNoCache 'False'
         (in) RestoreIgnoreFailedSources 'False'
         (in) RestoreRecursive 'True'
         (in) RestoreForce 'False'
         (in) HideWarningsAndErrors 'False'
         (in) RestoreForceEvaluate 'False'
         (in) RestorePackagesConfig 'False'
         Running restore with 4 concurrent jobs.
         Reading project file /build/test.csproj.
         Restoring packages for /build/test.csproj...
         Restoring packages for .NETCoreApp,Version=v5.0...
         Resolving conflicts for net5.0...
         Checking compatibility of packages on net5.0.
         Checking compatibility for test 1.0.0 with net5.0.
         All packages and projects are compatible with net5.0.
         Committing restore...
         Generating MSBuild file /build/obj/test.csproj.nuget.g.props.
         Generating MSBuild file /build/obj/test.csproj.nuget.g.targets.
         Writing assets file to disk. Path: /build/obj/project.assets.json
         Writing cache file to disk. Path: /build/obj/project.nuget.cache
         Persisting dg to /build/obj/test.csproj.nuget.dgspec.json
         Restored /build/test.csproj (in 41 ms).
         
         NuGet Config files used:
             /root/.nuget/NuGet/NuGet.Config
         
         Feeds used:
             https://api.nuget.org/v3/index.json
       Done executing task "RestoreTask".
     1>Done building target "Restore" in project "test.csproj".
     1>Done Building Project "/build/test.csproj" (Restore target(s)).
     0>Resolving SDK 'Microsoft.NET.Sdk'...
       Property reassignment: $(MSBuildProjectExtensionsPath)="/build/obj/" (previous value: "obj/") at /usr/share/dotnet/sdk/5.0.302/Current/Microsoft.Common.props (57,5)
       Property reassignment: $(TargetsForTfmSpecificContentInPackage)=";PackTool;_PackProjectToolValidation" (previous value: ";PackTool") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackProjectTool.props (15,5)
       Property reassignment: $(PublishProfileImported)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportPublishProfile.targets (28,5)
       Property reassignment: $(TargetPlatformVersion)="" (previous value: "0.0") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (65,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj/Debug//**" (previous value: ";bin\Debug//**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (223,5)
       Property reassignment: $(IntermediateOutputPath)="obj/Debug/net5.0/" (previous value: "obj/Debug/") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (241,5)
       Property reassignment: $(OutputPath)="bin\Debug/net5.0/" (previous value: "bin\Debug/") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets (242,5)
       Property reassignment: $(_FrameworkIdentifierForImplicitDefine)="NET" (previous value: "NETCOREAPP") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.BeforeCommon.targets (177,5)
       Property reassignment: $(_FrameworkVersionForImplicitDefine)="5_0" (previous value: "5.0") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.BeforeCommon.targets (182,5)
       Property reassignment: $(_DebugSymbolsProduced)="true" (previous value: "false") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (176,5)
       Property reassignment: $(_DocumentationFileProduced)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (185,5)
       Property reassignment: $(ProcessorArchitecture)="msil" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (518,5)
       Property reassignment: $(DelaySign)="" (previous value: "false") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (557,5)
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Auto" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (3611,5)
       Property reassignment: $(_SGenGenerateSerializationAssembliesConfig)="Off" (previous value: "Auto") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (3612,5)
       Property reassignment: $(_TargetsThatPrepareProjectReferences)="
             AssignProjectConfiguration;
             _SplitProjectReferencesByFileExistence
           " (previous value: "_SplitProjectReferencesByFileExistence") at /usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets (4741,5)
       Property reassignment: $(ProjectAssetsCacheFile)="/build/obj/Debug/net5.0/test.assets.cache" (previous value: "obj/Debug/net5.0/test.assets.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (29,5)
       Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           " (previous value: "
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (71,5)
       Property reassignment: $(PrepareResourcesDependsOn)="
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
             
             ;
             PrepareResourceNames;
             ResGen;
             CompileLicxFiles
           
           " (previous value: "
             ;
             PrepareResourceNames;
             ResGen;
             CompileLicxFiles
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets (77,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj/Debug//**;bin\/**" (previous value: ";bin\Debug//**;obj/Debug//**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (27,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj/Debug//**;bin\/**;obj//**" (previous value: ";bin\Debug//**;obj/Debug//**;bin\/**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (29,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj/Debug//**;bin\/**;obj//**;**/*.user" (previous value: ";bin\Debug//**;obj/Debug//**;bin\/**;obj//**") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (32,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj/Debug//**;bin\/**;obj//**;**/*.user;**/*.*proj" (previous value: ";bin\Debug//**;obj/Debug//**;bin\/**;obj//**;**/*.user") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (33,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj/Debug//**;bin\/**;obj//**;**/*.user;**/*.*proj;**/*.sln" (previous value: ";bin\Debug//**;obj/Debug//**;bin\/**;obj//**;**/*.user;**/*.*proj") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (34,5)
       Property reassignment: $(DefaultItemExcludes)=";bin\Debug//**;obj/Debug//**;bin\/**;obj//**;**/*.user;**/*.*proj;**/*.sln;**/*.vssscc" (previous value: ";bin\Debug//**;obj/Debug//**;bin\/**;obj//**;**/*.user;**/*.*proj;**/*.sln") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets (35,5)
       Property reassignment: $(ResolveAssemblyReferencesDependsOn)="
             
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           ;
             ResolveTargetingPackAssets;
           " (previous value: "
             
             ResolveProjectReferences;
             FindInvalidProjectReferences;
             GetFrameworkPaths;
             GetReferenceAssemblyPaths;
             PrepareForBuild;
             ResolveSDKReferences;
             ExpandSDKReferences;
           ;
             ResolvePackageDependenciesForBuild;
             _HandlePackageFileConflicts;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (14,5)
       Property reassignment: $(_GenerateRuntimeConfigurationPropertyInputsCache)="/build/obj/Debug/net5.0/test.genruntimeconfig.cache" (previous value: "obj/Debug/net5.0/test.genruntimeconfig.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (39,5)
       Property reassignment: $(_DefaultUserProfileRuntimeStorePath)="/root/.dotnet/store" (previous value: "/root") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (62,5)
       Property reassignment: $(AvailablePlatforms)="Any CPU,x86,x64,ARM32" (previous value: "Any CPU,x86,x64") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (83,5)
       Property reassignment: $(AvailablePlatforms)="Any CPU,x86,x64,ARM32,ARM64" (previous value: "Any CPU,x86,x64,ARM32") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (87,5)
       Property reassignment: $(CoreBuildDependsOn)="
             _CheckForBuildWithNoBuild;
             
             BuildOnlySettings;
             PrepareForBuild;
             PreBuildEvent;
             ResolveReferences;
             PrepareResources;
             ResolveKeySource;
             Compile;
             ExportWindowsMDFile;
             UnmanagedUnregistration;
             GenerateSerializationAssemblies;
             CreateSatelliteAssemblies;
             GenerateManifests;
             GetTargetPath;
             PrepareForRun;
             UnmanagedRegistration;
             IncrementalClean;
             PostBuildEvent
           ;
             GenerateBuildDependencyFile;
             GenerateBuildRuntimeConfigurationFiles
           " (previous value: "
             BuildOnlySettings;
             PrepareForBuild;
             PreBuildEvent;
             ResolveReferences;
             PrepareResources;
             ResolveKeySource;
             Compile;
             ExportWindowsMDFile;
             UnmanagedUnregistration;
             GenerateSerializationAssemblies;
             CreateSatelliteAssemblies;
             GenerateManifests;
             GetTargetPath;
             PrepareForRun;
             UnmanagedRegistration;
             IncrementalClean;
             PostBuildEvent
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (91,5)
       Property reassignment: $(CoreCleanDependsOn)="
             _SdkBeforeClean;
             
           " (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (100,5)
       Property reassignment: $(RebuildDependsOn)="
             _SdkBeforeRebuild;
             
             BeforeRebuild;
             Clean;
             Build;
             AfterRebuild;
           
           " (previous value: "
             BeforeRebuild;
             Clean;
             Build;
             AfterRebuild;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (107,5)
       Property reassignment: $(CompileDependsOn)="
             
             ResolveReferences;
             ResolveKeySource;
             SetWin32ManifestProperties;
             FindReferenceAssembliesForReferences;
             _GenerateCompileInputs;
             BeforeCompile;
             _TimeStampBeforeCompile;
             _GenerateCompileDependencyCache;
             CoreCompile;
             _TimeStampAfterCompile;
             AfterCompile;
           ;
             _CreateAppHost;
             _CreateComHost;
             _GetIjwHostPaths;
           " (previous value: "
             ResolveReferences;
             ResolveKeySource;
             SetWin32ManifestProperties;
             FindReferenceAssembliesForReferences;
             _GenerateCompileInputs;
             BeforeCompile;
             _TimeStampBeforeCompile;
             _GenerateCompileDependencyCache;
             CoreCompile;
             _TimeStampAfterCompile;
             AfterCompile;
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (436,5)
       Property reassignment: $(CreateSatelliteAssembliesDependsOn)="
             
             _GenerateSatelliteAssemblyInputs;
             ComputeIntermediateSatelliteAssemblies;
             GenerateSatelliteAssemblies
           ;
             CoreGenerateSatelliteAssemblies
           " (previous value: "
             _GenerateSatelliteAssemblyInputs;
             ComputeIntermediateSatelliteAssemblies;
             GenerateSatelliteAssemblies
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets (817,5)
       Property reassignment: $(DesignerRuntimeImplementationProjectOutputGroupDependsOn)="
             
             ;
             
             ;
             BuildOnlySettings;
             PrepareForBuild;
             AssignTargetPaths;
             ResolveReferences
           
           ;
             _GenerateDesignerDepsFile;
             _GenerateDesignerRuntimeConfigFile;
             _GatherDesignerShadowCopyFiles;
           " (previous value: "
             ;
             
             ;
             BuildOnlySettings;
             PrepareForBuild;
             AssignTargetPaths;
             ResolveReferences
           
           ") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DesignerSupport.targets (21,5)
       Property reassignment: $(PublishReadyToRunComposite)="false" (previous value: "true") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets (20,5)
       Property reassignment: $(_ShimInputCacheFile)="/build/obj/Debug/net5.0/test.shiminput.cache" (previous value: "obj/Debug/net5.0/test.shiminput.cache") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackTool.targets (109,5)
       Property reassignment: $(_ShimCreatedSentinelFile)="/build/obj/Debug/net5.0/test.shimcreated.sentinel" (previous value: "obj/Debug/net5.0/test.shimcreated.sentinel") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.PackTool.targets (111,5)
       Property reassignment: $(DefineConstants)="TRACE;DEBUG" (previous value: "TRACE") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CSharp.targets (31,5)
       Property reassignment: $(DefineConstants)="TRACE;DEBUG;NET;NET5_0;NETCOREAPP" (previous value: "TRACE;DEBUG") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.CSharp.targets (34,5)
       Resolving SDK 'Microsoft.NET.ILLink.Tasks'...
       Property reassignment: $(WarningLevel)="5" (previous value: "4") at /usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.Analyzers.targets (45,5)
       Property reassignment: $(PackageDescription)="Package Description" (previous value: "") at /usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets (35,5)
       Property reassignment: $(GenerateNuspecDependsOn)="Build;_LoadPackInputItems; _GetTargetFrameworksOutput; _WalkEachTargetPerFramework; _GetPackageFiles; " (previous value: "_LoadPackInputItems; _GetTargetFrameworksOutput; _WalkEachTargetPerFramework; _GetPackageFiles; ") at /usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets (59,5)
       Overriding target "GetTargetFrameworkProperties" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetTargetFrameworkProperties" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.Common.targets".
       Overriding target "ResolveFrameworkReferences" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "ResolveFrameworkReferences" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets".
       Overriding target "Run" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "Run" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets".
       Overriding target "GenerateSupportedTargetFrameworkAlias" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GenerateSupportedTargetFrameworkAlias" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets".
       Overriding target "GetReferenceAssemblyPaths" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetReferenceAssemblyPaths" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DisableStandardFrameworkResolution.targets".
       Overriding target "GetFrameworkPaths" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetFrameworkPaths" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DisableStandardFrameworkResolution.targets".
       Overriding target "DesignerRuntimeImplementationProjectOutputGroup" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "DesignerRuntimeImplementationProjectOutputGroup" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.DesignerSupport.targets".
       Overriding target "Publish" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "Publish" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets".
       Overriding target "GetCopyToPublishDirectoryItems" in project "/usr/share/dotnet/sdk/5.0.302/Microsoft.Common.CurrentVersion.targets" with target "GetCopyToPublishDirectoryItems" from project "/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets".
   1:7>Project "/build/test.csproj" on node 1 (pack target(s)).
   1:7>Building with tools version "Current".
   1:7>Target "_IntermediatePack" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets" from project "/build/test.csproj" (target "Pack" depends on it):
   1:7>Done building target "_IntermediatePack" in project "test.csproj".
       Target "GenerateNuspec" skipped, due to false condition; ($(IsPackable) == 'true') was evaluated as (false == 'true').
   1:7>Target "Pack" in file "/usr/share/dotnet/sdk/5.0.302/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets" from project "/build/test.csproj" (entry point):
       Task "IsPackableFalseWarningTask" skipped, due to false condition; ('$(IsPackable)' == 'false' AND '$(WarnOnPackingNonPackableProject)' == 'true') was evaluated as ('false' == 'false' AND 'false' == 'true').
   1:7>Done building target "Pack" in project "test.csproj".
   1:7>Done Building Project "/build/test.csproj" (pack target(s)).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.46
@aetos382 aetos382 changed the title [Bug]: $(IsPackable) is not quoted [Bug]: $(IsPackable) is not quoted Jul 13, 2021
@heng-liu
Copy link
Contributor

Hi, I'm not sure if my understanding is correct. Pls correct me is there is any misunderstanding. Thanks!
The target GenerateNuspec is skipped as <IsPackable>false</IsPackable>.
If you do not want to skip this target, you may set it as <IsPackable>true</IsPackable>.

So the quotation marks do not affect the correctness of the evaluation results.

You may try the following to confirm that:
1.Create a test.targets as following:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0">
  <PropertyGroup>
    <IsPackable>true</IsPackable>
  </PropertyGroup>


  <Target Name="Print1"
          Condition="$(IsPackable) == 'true'">
    <Message Text="IsPackable is $(IsPackable)" Importance="High"/>
  </Target>

   <Target Name="Print2"
          Condition="'$(IsPackable)' == 'true'">
   <Message Text="IsPackable is $(IsPackable)" Importance="High"/>
  </Target>
  
</Project>
  1. Run msbuild .\test.targets /t:Print1 -verbosity:detailed and msbuild .\test.targets /t:Print2 -verbosity:detailed. They have the same results( both Print1 and Print2 have a chance to run).
  2. Change <IsPackable>true</IsPackable> to <IsPackable>false</IsPackable> in test.targets.
  3. Run msbuild .\test.targets /t:Print1 -verbosity:detailed and msbuild .\test.targets /t:Print2 -verbosity:detailed. They have the same results( neither Print1 nor Print2 has a chance to run).

@heng-liu heng-liu added Resolution:NotABug This issue appears to not be a bug and removed Type:Bug Triage:Untriaged labels Jul 13, 2021
@aetos382
Copy link
Author

@heng-liu

So the quotation marks do not affect the correctness of the evaluation results.

Yes, I know that this issue will not affect the result.

The rule of writing is that when comparing variables such as $(IsPackable), as a rule, they are surrounded by single quotation marks, so it should be the same here.

@heng-liu
Copy link
Contributor

Hi @aetos382 , thanks for the clarification!
Would you mind raising a PR to fix that?

To summarize, the code in this line should be changed from:
Condition="$(IsPackable) == 'true'" into Condition="'$(IsPackable)' == 'true'".

Although it doesn't affect the results of evaluation, it makes the log show the following:
Target "GenerateNuspec" skipped, due to false condition; ($(IsPackable) == 'true') was evaluated as (false == 'true').
It would be better if the log is:
Target "GenerateNuspec" skipped, due to false condition; ('$(IsPackable)' == 'true') was evaluated as ('false' == 'true').

@heng-liu heng-liu added Type:Bug and removed Resolution:NotABug This issue appears to not be a bug labels Jul 14, 2021
@zkat zkat added Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Functionality:Pack good first issue Issues identified as good for first-time contributors help wanted Considered good issues for community contributions. labels Jul 19, 2021
@eriawan
Copy link

eriawan commented Jul 20, 2021

@heng-liu

I would like to take this issue. Please assign this to me. 🙂

@eriawan
Copy link

eriawan commented Jul 20, 2021

PR submitted: NuGet/NuGet.Client#4159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Pack good first issue Issues identified as good for first-time contributors help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants