Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

error MSB4018 build 5.0 #1911

Closed
blackcross86 opened this issue Nov 22, 2020 · 5 comments
Closed

error MSB4018 build 5.0 #1911

blackcross86 opened this issue Nov 22, 2020 · 5 comments

Comments

@blackcross86
Copy link

2020-11-22_06-33

@blackcross86
Copy link
Author

blackcross86 commented Nov 22, 2020

installer.log
log with errors attached

@blackcross86
Copy link
Author

understood the error, but why is it looking for files in a different path?

@dagood
Copy link
Member

dagood commented Nov 22, 2020

Here's the error, and it looks like you're probably building on master:

  redist -> /home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/artifacts/bin/redist/Release/netcoreapp5.0/redist.dll
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018: The "DownloadFile" task failed unexpectedly. [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018: System.IO.FileNotFoundException: Could not find file '/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/obj/x64/Release/blobs/Runtime/5.0.0/dotnet-runtime-5.0.0-rosa.2019.1-x64.tar.gz'. [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018: File name: '/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/obj/x64/Release/blobs/Runtime/5.0.0/dotnet-runtime-5.0.0-rosa.2019.1-x64.tar.gz' [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at Microsoft.DotNet.Cli.Build.DownloadFile.ExecuteAsync() in /_/src/core-sdk-tasks/DownloadFile.cs:line 48 [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at Microsoft.DotNet.Cli.Build.DownloadFile.Execute() in /_/src/core-sdk-tasks/DownloadFile.cs:line 35 [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets(335,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/redist.csproj]
##vso[task.logissue type=error;sourcepath=/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/src/installer.5044b938294b7b920a5a4393a5f0f8b7b1750548/src/redist/targets/GenerateLayout.targets;linenumber=335;columnnumber=5;code=MSB4018;](NETCORE_ENGINEERING_TELEMETRY=Build) The "DownloadFile" task failed unexpectedly.%0ASystem.IO.FileNotFoundException: Could not find file '/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/obj/x64/Release/blobs/Runtime/5.0.0/dotnet-runtime-5.0.0-rosa.2019.1-x64.tar.gz'.%0AFile name: '/home/slava86/rpmbuild/BUILD/dotnet5-5.0.100/artifacts/obj/x64/Release/blobs/Runtime/5.0.0/dotnet-runtime-5.0.0-rosa.2019.1-x64.tar.gz'%0A   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)%0A   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)%0A   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)%0A   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)%0A   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)%0A   at Microsoft.DotNet.Cli.Build.DownloadFile.ExecuteAsync() in /_/src/core-sdk-tasks/DownloadFile.cs:line 48%0A   at Microsoft.DotNet.Cli.Build.DownloadFile.Execute() in /_/src/core-sdk-tasks/DownloadFile.cs:line 35%0A   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build FAILED.

Your RID looks like it's rosa.2019.1-x64. I think you're going to have to add .rosa.2019.1/-rosa.2019.1 to this list to work around an issue we have right now with supporting arbitrary RIDs:

Fixing this kind of thing in the future is tracked by #297.

@blackcross86
Copy link
Author

thanks, everything is fine

@dagood
Copy link
Member

dagood commented Nov 23, 2020

Glad that worked, thanks for letting us know. Closing: a more permanent fix tracked for the future by #297.

@dagood dagood closed this as completed Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants