dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.48k stars 4.76k forks source link

Build: runtime checked build fails package creation #67646

Open Wraith2 opened 2 years ago

Wraith2 commented 2 years ago

Description

The Debug build succeeds, restores all the things needed for builds etc. The checked build fails to create nuget packages. Except from the end of the log:

...
  "Computed RID for native build is win-x64"
  Calling "E:\Programming\csharp7\runtime\src\native\corehost\\..\..\..\eng\native\gen-buildsys.cmd "E:\Programming\csharp7\runtime\src\native\corehost\" "E:/Programming/csharp7/runtime//artifacts/obj/win-x64.Debug/corehost" vs2022 x64  "-DCLI_CMAKE_HOST_VER=7.0.0-dev" "-DCLI_CMAKE_COMMON_HOST_VER=7.0.0-dev" "-DCLI_CMAKE_HOST_FXR_VER=7.0.0-dev" "-DCLI_CMAKE_HOST_POLICY_VER=7.0.0-dev" "-DCLI_CMAKE_PKG_RID=win-x64" "-DCLI_CMAKE_COMMIT_HASH=N/A" "-DRUNTIME_FLAVOR=CoreCLR " "-DCLI_CMAKE_RESOURCE_DIR=E:\Programming\csharp7\runtime\\artifacts\obj\win-x64.Debug\hostResourceFiles" "-DCMAKE_BUILD_TYPE=Debug""
  The CMake command line is the same as the last run. Skipping running CMake.
  Commencing build of corehost native components
  [0/1] Install the project...
  -- Install configuration: "Debug"
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/hostfxr.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/libhostfxr.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/libhostfxr.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/hostpolicy.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostpolicy.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostpolicy.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/apphost.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/apphost.exe
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/dotnet.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/dotnet.exe
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/coreclr_delegates.h
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.h
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.h
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/nethost.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/libnethost.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/libnethost.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/test_fx_ver.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/test_fx_ver.exe
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockcoreclr.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockcoreclr.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockcoreclr.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostfxr_2_2.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_2_2.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_2_2.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostfxr_5_0.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_5_0.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_5_0.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostpolicy.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostpolicy.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostpolicy.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/nativehost.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/nativehost.exe
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/comsxs.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/comsxs.exe
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/comsxs.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/comsxs.exe
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/ijw.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/ijw.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/ijw.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/Server.tlb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/Nested.tlb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/comhost.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/comhost.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/comhost.dll
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/ijwhost.pdb
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/ijwhost.lib
  -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/ijwhost.dll
  Done building Native components
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetAppHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\apphost.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\dotnet.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetAppHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\apphost.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\dotnet.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostpolicy.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostResolver.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostfxr.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostResolver.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostfxr.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostpolicy.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error :    at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj]
  Microsoft.NETCore.DotNetAppHost -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetAppHost.7.0.0-dev.nupkg
  Microsoft.NETCore.DotNetHostPolicy -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHostPolicy.7.0.0-dev.nupkg
  Microsoft.NETCore.DotNetHostResolver -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHostResolver.7.0.0-dev.nupkg
  Microsoft.NETCore.DotNetHost -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHost.7.0.0-dev.nupkg

Build FAILED.

Reproduction Steps

commands to reproduce from runtime root: git clean -xdf build && build -c Checked

Expected behavior

Build should succeed.

Actual behavior

Build fails.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

ghost commented 2 years ago

Tagging subscribers to this area: @vitek-karas, @agocke, @vsadov See info in area-owners.md if you want to be subscribed.

Issue Details
### Description The Debug build succeeds, restores all the things needed for builds etc. The checked build fails to create nuget packages. Except from the end of the log: ``` ... "Computed RID for native build is win-x64" Calling "E:\Programming\csharp7\runtime\src\native\corehost\\..\..\..\eng\native\gen-buildsys.cmd "E:\Programming\csharp7\runtime\src\native\corehost\" "E:/Programming/csharp7/runtime//artifacts/obj/win-x64.Debug/corehost" vs2022 x64 "-DCLI_CMAKE_HOST_VER=7.0.0-dev" "-DCLI_CMAKE_COMMON_HOST_VER=7.0.0-dev" "-DCLI_CMAKE_HOST_FXR_VER=7.0.0-dev" "-DCLI_CMAKE_HOST_POLICY_VER=7.0.0-dev" "-DCLI_CMAKE_PKG_RID=win-x64" "-DCLI_CMAKE_COMMIT_HASH=N/A" "-DRUNTIME_FLAVOR=CoreCLR " "-DCLI_CMAKE_RESOURCE_DIR=E:\Programming\csharp7\runtime\\artifacts\obj\win-x64.Debug\hostResourceFiles" "-DCMAKE_BUILD_TYPE=Debug"" The CMake command line is the same as the last run. Skipping running CMake. Commencing build of corehost native components [0/1] Install the project... -- Install configuration: "Debug" -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/hostfxr.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/libhostfxr.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/libhostfxr.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/hostpolicy.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostpolicy.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostpolicy.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/apphost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/apphost.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/dotnet.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/dotnet.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/coreclr_delegates.h -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.h -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.h -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/nethost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/libnethost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/libnethost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/test_fx_ver.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/test_fx_ver.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockcoreclr.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockcoreclr.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockcoreclr.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostfxr_2_2.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_2_2.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_2_2.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostfxr_5_0.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_5_0.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_5_0.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostpolicy.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostpolicy.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostpolicy.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/nativehost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/nativehost.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/comsxs.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/comsxs.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/comsxs.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/comsxs.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/ijw.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/ijw.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/ijw.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/Server.tlb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/Nested.tlb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/comhost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/comhost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/comhost.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/ijwhost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/ijwhost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/ijwhost.dll Done building Native components C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetAppHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\apphost.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\dotnet.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetAppHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\apphost.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\dotnet.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostpolicy.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostResolver.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostfxr.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostResolver.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostfxr.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostpolicy.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] Microsoft.NETCore.DotNetAppHost -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetAppHost.7.0.0-dev.nupkg Microsoft.NETCore.DotNetHostPolicy -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHostPolicy.7.0.0-dev.nupkg Microsoft.NETCore.DotNetHostResolver -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHostResolver.7.0.0-dev.nupkg Microsoft.NETCore.DotNetHost -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHost.7.0.0-dev.nupkg Build FAILED. ``` ### Reproduction Steps commands to reproduce from runtime root: `git clean -xdf` `build && build -c Checked` ### Expected behavior Build should succeed. ### Actual behavior Build fails. ### Regression? _No response_ ### Known Workarounds _No response_ ### Configuration _No response_ ### Other information _No response_
Author: Wraith2
Assignees: -
Labels: `area-Host`, `untriaged`
Milestone: -
vitek-karas commented 2 years ago

@VSadov @jkoritzinsky would one of you know something about this? It seems that when the "Checked" configuration is specified, we build the host as "Debug", but then packaging expects to find it in "Checked" directories.

@Wraith2 just curious what is the scenario to build everything as "Checked"? I agree that it should either work or explicitly fail, but it would be interesting to know what you want to use the output for...

Wraith2 commented 2 years ago

I tinker with the jit codebase and a checked build is needed for spmi. building the entire repo is easier than trying to work out and mash together the individual parts that are needed from debug and release builds.

am11 commented 2 years ago

I tinker with the jit codebase and a checked build is needed for spmi.

For that prehaps it's better to use checked only for runtime configuration and debug (or release) for everything else. i.e.

build -c Debug -rc Checked or build -c Release -rc Checked

Wraith2 commented 2 years ago

I'll give that a try.

The original issue still remains though, something broke those packages in the last week which means changes are being made that break stuff and aren't being seen.

Wraith2 commented 2 years ago

Using build -c Release -rc Checked also has problems:

...
  E:\Programming\csharp7\runtime\artifacts\obj\Microsoft.NETCore.App.Host\Release\net7.0\win-x64\output/ -> E:\Programming\csharp7\runtime\artifacts\packages\Release\Shipping\/dotnet-apphost-pack-7.0.0-dev-win-x64.zip
  Successfully created package 'E:\Programming\csharp7\runtime\artifacts\packages\Release\Shipping\Microsoft.NETCore.App.Host.win-x64.7.0.0-dev.nupkg'.
  Successfully created package 'E:\Programming\csharp7\runtime\artifacts\packages\Release\Shipping\Microsoft.NETCore.App.Host.win-x64.7.0.0-dev.symbols.nupkg'.
  Microsoft.NETCore.App.Crossgen2 ->
  Zipping directory "E:\Programming\csharp7\runtime\artifacts\obj\Microsoft.NETCore.App.Crossgen2\Release\net7.0\win-x64\output\" to "E:\Programming\csharp7\runtime\artifacts\packages\Release\Shipping\dotnet-crossgen2-7.0.0-dev-win-x64.zip".
  E:\Programming\csharp7\runtime\artifacts\obj\Microsoft.NETCore.App.Crossgen2\Release\net7.0\win-x64\output/ -> E:\Programming\csharp7\runtime\artifacts\packages\Release\Shipping\/dotnet-crossgen2-7.0.0-dev-win-x64.zip
  Successfully created package 'E:\Programming\csharp7\runtime\artifacts\packages\Release\Shipping\Microsoft.NETCore.App.Crossgen2.win-x64.7.0.0-dev.nupkg'.
C:\Program Files\dotnet\sdk\6.0.102\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File 'E:\Programming\csharp7\runtime\artifacts\bin\coreclr\windows.x64.Checked\PDB\crossgen2.pdb' is not added because the package already contains file 'runtimes\win-x64\lib\net7.0\..\..\..\..\tools\crossgen2.pdb' [E:\Programming\csharp7\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Crossgen2.sfxproj]
C:\Program Files\dotnet\sdk\6.0.102\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File 'E:\Programming\csharp7\runtime\artifacts\bin\coreclr\windows.x64.Checked\PDB\ILCompiler.DependencyAnalysisFramework.pdb' is not added because the package already contains file 'runtimes\win-x64\lib\net7.0\..\..\..\..\tools\ILCompiler.DependencyAnalysisFramework.pdb' [E:\Programming\csharp7\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Crossgen2.sfxproj]
C:\Program Files\dotnet\sdk\6.0.102\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File 'E:\Programming\csharp7\runtime\artifacts\bin\coreclr\windows.x64.Checked\PDB\ILCompiler.Diagnostics.pdb' is not added because the package already contains file 'runtimes\win-x64\lib\net7.0\..\..\..\..\tools\ILCompiler.Diagnostics.pdb' [E:\Programming\csharp7\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Crossgen2.sfxproj]C:\Program Files\dotnet\sdk\6.0.102\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File 'E:\Programming\csharp7\runtime\artifacts\bin\coreclr\windows.x64.Checked\PDB\ILCompiler.ReadyToRun.pdb' is not added because the package already contains file 'runtimes\win-x64\lib\net7.0\..\..\..\..\tools\ILCompiler.ReadyToRun.pdb' [E:\Programming\csharp7\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Crossgen2.sfxproj]
C:\Program Files\dotnet\sdk\6.0.102\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5118: File 'E:\Programming\csharp7\runtime\artifacts\bin\coreclr\windows.x64.Checked\PDB\ILCompiler.TypeSystem.pdb' is not added because the package already contains file 'runtimes\win-x64\lib\net7.0\..\..\..\..\tools\ILCompiler.TypeSystem.pdb' [E:\Programming\csharp7\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Crossgen2.sfxproj]
  Successfully created package 'E:\Programming\csharp7\runtime\artifacts\packages\Release\Shipping\Microsoft.NETCore.App.Crossgen2.win-x64.7.0.0-dev.symbols.nupkg'.
elinor-fung commented 2 years ago

If it wasn't from a completely clean build, the NU5118 errors might be https://github.com/dotnet/runtime/issues/62918.

Wraith2 commented 2 years ago

If it wasn't from a completely clean build, the NU5118 errors might be #62918.

Perhaps, but in order for a release or checked build to succeed you must first run a clean debug build so there is no ability to run a clean checked build. However if it's fixed under another issue that's ok.

ghost commented 2 years ago

Tagging subscribers to this area: @hoyosjs See info in area-owners.md if you want to be subscribed.

Issue Details
### Description The Debug build succeeds, restores all the things needed for builds etc. The checked build fails to create nuget packages. Except from the end of the log: ``` ... "Computed RID for native build is win-x64" Calling "E:\Programming\csharp7\runtime\src\native\corehost\\..\..\..\eng\native\gen-buildsys.cmd "E:\Programming\csharp7\runtime\src\native\corehost\" "E:/Programming/csharp7/runtime//artifacts/obj/win-x64.Debug/corehost" vs2022 x64 "-DCLI_CMAKE_HOST_VER=7.0.0-dev" "-DCLI_CMAKE_COMMON_HOST_VER=7.0.0-dev" "-DCLI_CMAKE_HOST_FXR_VER=7.0.0-dev" "-DCLI_CMAKE_HOST_POLICY_VER=7.0.0-dev" "-DCLI_CMAKE_PKG_RID=win-x64" "-DCLI_CMAKE_COMMIT_HASH=N/A" "-DRUNTIME_FLAVOR=CoreCLR " "-DCLI_CMAKE_RESOURCE_DIR=E:\Programming\csharp7\runtime\\artifacts\obj\win-x64.Debug\hostResourceFiles" "-DCMAKE_BUILD_TYPE=Debug"" The CMake command line is the same as the last run. Skipping running CMake. Commencing build of corehost native components [0/1] Install the project... -- Install configuration: "Debug" -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/hostfxr.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/libhostfxr.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/libhostfxr.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/hostpolicy.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostpolicy.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostpolicy.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/apphost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/apphost.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/dotnet.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/dotnet.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/coreclr_delegates.h -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/hostfxr.h -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.h -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/nethost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/nethost.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/libnethost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/libnethost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/test_fx_ver.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/test_fx_ver.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockcoreclr.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockcoreclr.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockcoreclr.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostfxr_2_2.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_2_2.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_2_2.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostfxr_5_0.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_5_0.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostfxr_5_0.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/mockhostpolicy.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostpolicy.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/mockhostpolicy.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/nativehost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/nativehost.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/comsxs.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/comsxs.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/comsxs.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/comsxs.exe -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/PDB/ijw.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/ijw.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/ijw.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/Server.tlb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost_test/Nested.tlb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/comhost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/comhost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/comhost.dll -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/PDB/ijwhost.pdb -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/ijwhost.lib -- Up-to-date: E:/Programming/csharp7/runtime/artifacts/bin/win-x64.Debug/corehost/ijwhost.dll Done building Native components C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetAppHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\apphost.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\dotnet.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetAppHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\apphost.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetAppHost\Microsoft.NETCore.DotNetAppHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHost.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\dotnet.exe'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHost\Microsoft.NETCore.DotNetHost.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostpolicy.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget lib package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostResolver.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostfxr.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostResolver.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostfxr.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj]C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostResolver\Microsoft.NETCore.DotNetHostResolver.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : Error when creating nuget packed package from E:\Programming\csharp7\runtime\artifacts\packages\Checked\specs\runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'E:\Programming\csharp7\runtime\artifacts\bin\win-x64.Checked\corehost\hostpolicy.dll'. [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable`1 files) [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] C:\Users\Wraith\.nuget\packages\microsoft.dotnet.build.tasks.packaging\7.0.0-beta.22179.1\build\Packaging.targets(1257,5): error : at Microsoft.DotNet.Build.Tasks.Packaging.NuGetPack.Pack(String nuspecPath, String nupkgPath, Manifest manifest, Boolean packSymbols) in /_/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NuGetPack.cs:line 253 [E:\Programming\csharp7\runtime\src\installer\pkg\projects\Microsoft.NETCore.DotNetHostPolicy\Microsoft.NETCore.DotNetHostPolicy.pkgproj] Microsoft.NETCore.DotNetAppHost -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetAppHost.7.0.0-dev.nupkg Microsoft.NETCore.DotNetHostPolicy -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHostPolicy.7.0.0-dev.nupkg Microsoft.NETCore.DotNetHostResolver -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHostResolver.7.0.0-dev.nupkg Microsoft.NETCore.DotNetHost -> E:\Programming\csharp7\runtime\artifacts\packages\Checked\Shipping\Microsoft.NETCore.DotNetHost.7.0.0-dev.nupkg Build FAILED. ``` ### Reproduction Steps commands to reproduce from runtime root: `git clean -xdf` `build && build -c Checked` ### Expected behavior Build should succeed. ### Actual behavior Build fails. ### Regression? _No response_ ### Known Workarounds _No response_ ### Configuration _No response_ ### Other information _No response_
Author: Wraith2
Assignees: -
Labels: `area-Infrastructure-coreclr`
Milestone: -