Hi,
I downloaded .NET Core runtime code successfully as follows:
“git clone https://github.com/dotnet/runtime.git”
post that I go to “runtime” folder and do “build”, it reports below errors, I was able to do .NET Core 2.2 build using the same steps successfully. Any help to resolve these build errors would be highly appreciated.
D:\shesh\corefx3_60506_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) ‘System.Private.CoreLib’ from ‘’. [D:\shesh\corefx3_60506_commits\runtime\src\libraries\System.Diagnostics.Debug\src\System.Diagnostics.Debug.csproj]
D:\shesh\corefx3_60506_commits\runtime\src\libraries\restore\runtime\runtime.depproj(76,5): error : Could not locate CoreCLR IL files.
D:\shesh\corefx3_60506_commits\runtime\src\installer\corehost\build.proj(98,5): error MSB3073: The command “D:\shesh\corefx3_60506_commits\runtime\src\installer\corehost\build.cmd Debug x64 apphostver 5.0.0-dev.19618.1 hostver 5.0.0-dev.19618.1 fxrver 5.0.0-dev.19618.1 policyver 5.0.0-dev.19618.1 commit e55bb04 rid win-x64 portable rootdir D:\shesh\corefx3_60506_commits\runtime” exited with code 1.
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: ‘D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt’. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: ‘D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt’. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
Thanks
-Shesh
Hi,
I downloaded .NET Core runtime code successfully as follows:
“git clone https://github.com/dotnet/runtime.git”
post that I go to “runtime” folder and do “build”, it reports below errors, I was able to do .NET Core 2.2 build using the same steps successfully. Any help to resolve these build errors would be highly appreciated.
D:\shesh\corefx3_60506_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) ‘System.Private.CoreLib’ from ‘’. [D:\shesh\corefx3_60506_commits\runtime\src\libraries\System.Diagnostics.Debug\src\System.Diagnostics.Debug.csproj]
D:\shesh\corefx3_60506_commits\runtime\src\libraries\restore\runtime\runtime.depproj(76,5): error : Could not locate CoreCLR IL files.
D:\shesh\corefx3_60506_commits\runtime\src\installer\corehost\build.proj(98,5): error MSB3073: The command “D:\shesh\corefx3_60506_commits\runtime\src\installer\corehost\build.cmd Debug x64 apphostver 5.0.0-dev.19618.1 hostver 5.0.0-dev.19618.1 fxrver 5.0.0-dev.19618.1 policyver 5.0.0-dev.19618.1 commit e55bb04 rid win-x64 portable rootdir D:\shesh\corefx3_60506_commits\runtime” exited with code 1.
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: ‘D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt’. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\legacy\Microsoft.NETCore.App.Internal.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: ‘D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt’. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60506_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60506_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj] C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19616.4\build\Packaging.targets(1260,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 256 [D:\shesh\corefx3_60506_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
Thanks
-Shesh