Repository navigation
Description
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
Activity
devsko commentedon Dec 18, 2019
Hi. I get the same error when starting build.cmd. Running coreclr.cmd, libraries.cmd and installer.cmd one after another works for me. I suppose it's kind of work in progress.
deokershesh commentedon Dec 19, 2019
@devsko, I tried the suggested sequence, coreclr.cmd worked (though it reported warning for CMake version to be 3.14, I have currently 3.13), however libraries.cmd reported same error as I mentioned in my first post.
Anything you want me to check in my environment since its working for you?
Thanks for help
-Shesh
devsko commentedon Dec 19, 2019
@deokershesh I am using CMake 3.15.5. and followed the windows requirements doc. As far as I know there are problems with 3.16. Just tried again with the latest bits and for me build.cmd now works as well. Try to delete the artifacts folder for a clean build.
deokershesh commentedon Dec 20, 2019
@devsko, I installed CMake 3.15.6 version and coreclr.cmd worked, however I still get the same error for libraries.cmd. I also removed .nuget folder but still error remains same. Any further help please?
deokershesh commentedon Dec 20, 2019
I also enabled HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled and rebooted the system, but still the same errors!
safern commentedon Dec 23, 2019
This was caused by: #1043
Should already be fixed. You should now be able to do build.cmd without any errors. Closing. Please let me know if after pulling the latest changes you still hit the same errors.
deokershesh commentedon Dec 24, 2019
@safern, I downloaded .NET Core 3.1 with number of commits 60548, I also removed old ".nuget" folder and started fresh build by running "build.cmd", I still see same below errors, I am using Visual Studio 2017 compiler on Windows 10 64-bit. Need help to resolve these errors, as .NET Core 2.2 is going out of support today and I hit another security related issue on .NET Core 2.2.
D:\shesh\corefx3_60548_commits\runtime\src\coreclr\coreclr.proj(22,5): error MSB3073: The command ""D:\shesh\corefx3_60548_commits\runtime\src\coreclr\build.cmd" -skiptests -debug" exited with code 1.
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.AppContext\src\System.AppContext.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Diagnostics.Contracts\src\System.Diagnostics.Contracts.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Diagnostics.Debug\src\System.Diagnostics.Debug.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Diagnostics.Tracing\src\System.Diagnostics.Tracing.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Diagnostics.Tools\src\System.Diagnostics.Tools.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Buffers\src\System.Buffers.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Globalization.Calendars\src\System.Globalization.Calendars.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Private.Uri\src\System.Private.Uri.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Globalization\src\System.Globalization.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Reflection.Emit.Lightweight\src\System.Reflection.Emit.Lightweight.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.IO.UnmanagedMemoryStream\src\System.IO.UnmanagedMemoryStream.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Memory\src\System.Memory.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Numerics.Vectors\src\System.Numerics.Vectors.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Reflection.Emit.ILGeneration\src\System.Reflection.Emit.ILGeneration.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Reflection\src\System.Reflection.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Reflection.Emit\src\System.Reflection.Emit.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Runtime.InteropServices.WindowsRuntime\src\System.Runtime.InteropServices.WindowsRuntime.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Threading.Timer\src\System.Threading.Timer.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Resources.ResourceManager\src\System.Resources.ResourceManager.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Reflection.TypeExtensions\src\System.Reflection.TypeExtensions.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Text.Encoding.Extensions\src\System.Text.Encoding.Extensions.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Threading.Tasks.Extensions\src\System.Threading.Tasks.Extensions.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Runtime.Intrinsics.Experimental\src\System.Runtime.Intrinsics.Experimental.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Reflection.Primitives\src\System.Reflection.Primitives.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Runtime.Loader\src\System.Runtime.Loader.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Threading.Overlapped\src\System.Threading.Overlapped.csproj]
D:\shesh\corefx3_60548_commits\runtime\src\libraries\restore\runtime\runtime.depproj(76,5): error : Could not locate CoreCLR IL files.
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Text.Encoding\src\System.Text.Encoding.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Threading.ThreadPool\src\System.Threading.ThreadPool.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Runtime.Intrinsics\src\System.Runtime.Intrinsics.csproj]
D:\shesh\corefx3_60548_commits\runtime\eng\referenceFromRuntime.targets(90,5): error : Could not resolve ReferenceFromRuntime item(s) 'System.Private.CoreLib' from ''. [D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Threading.Tasks\src\System.Threading.Tasks.csproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.sharedframework.sdk\5.0.0-beta.19617.1\targets\framework.dependency.targets(446,5): error MSB3073: The command "D:\shesh\corefx3_60548_commits\runtime\artifacts\bin\coreclr\Windows_NT.x64.Debug\sharedFramework\crossgen.exe @d:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\crossgen\Microsoft.CSharp.rsp" exited with code 3. [D:\shesh\corefx3_60548_commits\runtime\src\installer\pkg\projects\netcoreapp\src\netcoreapp.depproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable
1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_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.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_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.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable
1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_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.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
0 Warning(s)
37 Error(s)
Time Elapsed 00:29:56.54
(NETCORE_ENGINEERING_TELEMETRY=Category) Build failed.
D:\shesh\corefx3_60548_commits\runtime>
deokershesh commentedon Dec 24, 2019
danmoseley commentedon Dec 24, 2019
@deokershesh did you first make sure you satisfy all the requirements here, including long path support?
https://github.com/dotnet/runtime/blob/master/docs/workflow/windows-requirements.md
After that, please create a fresh clone of dotnet/runtime, and do "build.cmd" from the root. Do you get the same result?
deokershesh commentedon Dec 24, 2019
@danmosemsft, Yes I have enabled long path support (4 days ago itself, please refer previous response). Yes, today an hour ago, I created another clone of .NET Core 3.1 (commit count 60548), started fresh build.cmd (removed old .nuget folder as well), it also resulted in exact same error, infact 1 error count increased (below) as compare to old clone.
D:\shesh\corefx3_60548_commits\runtime\src\coreclr\coreclr.proj(22,5):
error MSB3073: The command
""D:\shesh\corefx3_60548_commits\runtime\src\coreclr\build.cmd" -skiptests
-debug" exited with code 1.
deokershesh commentedon Dec 24, 2019
I would be more than happy to cross check the settings, please let me know what all needs to be checked.
2 remaining items
deokershesh commentedon Dec 24, 2019
CMake version is 3.15.6
deokershesh commentedon Dec 24, 2019
Python is 3.6.6, the document says, 3.7.4, I will upgrade the same. Could this be an issue?
D:\shesh\corefx3_60548_commits\runtime>python
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
deokershesh commentedon Dec 24, 2019
PowerShell version is 5.1
PS C:\Windows\System32\WindowsPowerShell\v1.0> $PSVersionTable.PSVersion
Major Minor Build Revision
5 1 16299 1004
PS C:\Windows\System32\WindowsPowerShell\v1.0>
deokershesh commentedon Dec 24, 2019
Started another build with Python 3.8.1
D:\shesh\corefx3_60548_commits\runtime>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
deokershesh commentedon Dec 24, 2019
After Python 3.8.1 also exact same errors!
Is it must to have Visual Studio 2019? Because this is the only thing missing! I have VS 2017 Professional Edition which I am using.
deokershesh commentedon Dec 24, 2019
I installed Visual Studio Community 2019 version and started fresh build, the error count has reduced but errors still present. Request help, what I must be missing?
Build FAILED.
D:\shesh\corefx3_60548_commits\runtime\src\coreclr\coreclr.proj(22,5): error MSB3073: The command ""D:\shesh\corefx3_60548_commits\runtime\src\coreclr\build.cmd" -skiptests -debug" exited with code 1.
CMake Error : error : generator : Visual Studio 16 2019 [D:\shesh\corefx3_60548_commits\runtime\src\libraries\Native\build-native.proj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB8065: Custom build for item "D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\CMakeFiles\ffb710b6bb98ddcfcc3a0631f1fbf3bd\INSTALL_force.rule" succeeded, but specified output "d:\shesh\corefx3_60548_commits\runtime\artifacts\obj\native\netcoreapp5.0-windows_nt-debug-x64\cmakefiles\install_force" has not been created. This may cause incremental build to work incorrectly. [D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\install.vcxproj] [D:\shesh\corefx3_60548_commits\runtime\src\libraries\Native\build-native.proj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB8065: Custom build for item "D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\CMakeFiles\ffb710b6bb98ddcfcc3a0631f1fbf3bd\INSTALL_force.rule" succeeded, but specified output "d:\shesh\corefx3_60548_commits\runtime\artifacts\obj\native\netcoreapp5.0-windows_nt-debug-x64\cmakefiles\install_force" has not been created. This may cause incremental build to work incorrectly. [D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\install.vcxproj] [D:\shesh\corefx3_60548_commits\runtime\src\libraries\Native\build-native.proj]
D:\shesh\corefx3_60548_commits\runtime\src\libraries\Native\build-native.proj(50,5): error MSB3073: The command ""D:\shesh\corefx3_60548_commits\runtime\src\libraries\Native\build-native.cmd" x64 Debug Windows_NT outconfig netcoreapp5.0-Windows_NT-Debug-x64" exited with code -1.
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.sharedframework.sdk\5.0.0-beta.19617.1\targets\framework.dependency.targets(446,5): error MSB3073: The command "D:\shesh\corefx3_60548_commits\runtime\artifacts\bin\coreclr\Windows_NT.x64.Debug\sharedFramework\crossgen.exe @d:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\crossgen\Microsoft.CSharp.rsp" exited with code 3. [D:\shesh\corefx3_60548_commits\runtime\src\installer\pkg\projects\netcoreapp\src\netcoreapp.depproj]
C:\Users\sheshnarayan.a.nuget\packages\microsoft.dotnet.build.tasks.packaging\5.0.0-beta.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable
1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_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.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Internal.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_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.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget lib package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable
1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_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.19617.1\build\Packaging.targets(1260,5): error : Error when creating nuget packed package from D:\shesh\corefx3_60548_commits\runtime\artifacts\packages\Debug\specs\Microsoft.NETCore.App.Ref.nuspec. NuGet.Packaging.Core.PackagingException: File not found: 'D:\shesh\corefx3_60548_commits\runtime\artifacts\obj\netcoreapp\x64\Debug\netcoreapp5.0\win-x64\Microsoft.NETCore.App.versions.txt'. [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.AddFiles(String basePath, String source, String destination, String exclude) [D:\shesh\corefx3_60548_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.19617.1\build\Packaging.targets(1260,5): error : at NuGet.Packaging.PackageBuilder.PopulateFiles(String basePath, IEnumerable1 files) [D:\shesh\corefx3_60548_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.19617.1\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_60548_commits\runtime\src\installer\pkg\projects\netcoreapp\pkg\Microsoft.NETCore.App.Ref.pkgproj]
0 Warning(s)
10 Error(s)
Time Elapsed 00:07:55.77
(NETCORE_ENGINEERING_TELEMETRY=Category) Build failed.
D:\shesh\corefx3_60548_commits\runtime>
devsko commentedon Dec 24, 2019
See the discussion mentioned in #149 I think that is the same problem. As I said, for me CMake 3.15.5 works but don't know about other versions
deokershesh commentedon Dec 24, 2019
Just to update, I removed .nuget and artifacts folders and rebuilt fresh, again I am back to 37 errors!!
deokershesh commentedon Dec 24, 2019
Another update, I was trying to build individual folder i.e. D:\shesh\corefx3_60548_commits\runtime\src\libraries\System.Data.Odbc\src
I used " dotnet msbuild /t:rebuild -v:n " command to build, it reported below error.
A compatible SDK version for global.json version: [3.0.100] from [D:\shesh\corefx3_60548_commits\runtime\global.json] was not found
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
Post that I changed D:\shesh\corefx3_60548_commits\runtime\global.json file as follows, and then the individual folder build succeeded. Post these changes, I also tried entire "build.cmd" and continue to get 37 errors!
From:
{
"sdk": {
"version": "3.0.100",
"allowPrerelease": true,
"rollForward": "major"
},
"tools": {
"dotnet": "5.0.100-alpha1-015772"
},
"native-tools": {
"cmake": "3.14.2",
"python": "2.7.15"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.19617.1",
"Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk": "5.0.0-beta.19617.1",
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.19617.1",
"Microsoft.DotNet.Build.Tasks.Configuration": "5.0.0-beta.19617.1",
"FIX-85B6-MERGE-9C38-CONFLICT": "1.0.0",
"Microsoft.NET.Sdk.IL": "5.0.0-alpha1.19563.3",
"Microsoft.Build.NoTargets": "1.0.53",
"Microsoft.Build.Traversal": "2.0.2"
}
}
To:
{
"sdk": {
"version": "3.1.100",
"allowPrerelease": true,
"rollForward": "major"
},
"tools": {
"dotnet": "5.0.100-alpha1-015772"
},
"native-tools": {
"cmake": "3.15.6",
"python": "3.8.1"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.19617.1",
"Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk": "5.0.0-beta.19617.1",
"Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.19617.1",
"Microsoft.DotNet.Build.Tasks.Configuration": "5.0.0-beta.19617.1",
"FIX-85B6-MERGE-9C38-CONFLICT": "1.0.0",
"Microsoft.NET.Sdk.IL": "5.0.0-alpha1.19563.3",
"Microsoft.Build.NoTargets": "1.0.53",
"Microsoft.Build.Traversal": "2.0.2"
}
}
safern commentedon Dec 24, 2019
A compatible SDK version for global.json version: [3.0.100] from [D:\shesh\corefx3_60548_commits\runtime\global.json] was not found
Did you mean to run dotnet SDK commands?
You need to either have the SDK 3.0.100 installed globally in your computer or a newer version of the SDK, because that is what we specify in global.json.
Changing the native tools in global.json shouldn’t be necessary in order to build the folder.
If you don’t want to install the SDK globally you can instead use the dotnet.exe under the .dotnet folder in the root of the repo if that exists.
Also, yes you need VS 2019 and CMake 3.15.5 at least.
Could you please do git clean -fdx? And then run
build.cmd.Also please make sure you have the right version of CMake.
AArnott commentedon Jan 6, 2020
The link people pass around is https://github.com/dotnet/runtime/blob/master/docs/workflow/windows-requirements.md but that's broken. Where did it go?
I would expect the CONTRIBUTING.md file to include links to such docs so that I can install all dependencies up front. Already from the bruises of failed build attempts I've installed (the latest) CMake, and now I'm told python is missing so I'd be inclined to install (the latest) python. But it would be great to know all dependencies up front and which versions are required for each.
I had tried running libraries.cmd to build just the libraries after cloning and hit the same build error that resulted in this issue being opened. I didn't see any doc saying I had to build coreclr.cmd or build.cmd first. On the contrary, the docs suggest I can skip right to 'libraries.cmd' if that's all I am interested in.
AArnott commentedon Jan 6, 2020
It appears the new link is https://github.com/dotnet/runtime/blob/master/docs/workflow/requirements/windows-requirements.md. But I wonder what links to it (besides this issue).
danmoseley commentedon Jan 6, 2020
Mostly this is fallout of the repo merge in Dec. For the docs, the there is a path README-> workflow/README -> requirements however there's insufficient info about the build commands. I was going to update this when I better understood myself. What I have done to work on libraries is
There is active discussion right now in #839 about making this clearer/more consistent.