IOException in WorkloadResolver in 6.0.200 SDK
See original GitHub issueDescribe the bug
This happened on the PR here. Bumping to .NET 6.0.200-preview.22053.5.
A build on macOS failed with:
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: The "ProcessFrameworkReferences" task failed unexpectedly. [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: System.IO.IOException: The process cannot access the file '/Users/builder/azdo/_work/1/s/bin/dotnet/sdk-manifests/6.0.200/microsoft.net.sdk.maui/WorkloadManifest.json' because it is being used by another process. [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.<>c__DisplayClass7_0.<GetManifests>b__0() [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.LoadManifestsFromProvider(IWorkloadManifestProvider manifestProvider) [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.Create(IWorkloadManifestProvider manifestProvider, String dotnetRootPath, String sdkVersion, String userProfileDir) [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.GetResolvedPackVersion(String packID, String packVersion) [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.ExecuteCore() [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
/Users/builder/azdo/_work/1/s/bin/dotnet/sdk/6.0.200-preview.22053.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/Users/builder/azdo/_work/1/s/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj]
11 Warning(s)
1 Error(s)
I thought this was odd, as it doesn’t seem like this file should be opened with write access? I might be misreading the error message.
To Reproduce
I think this is pretty random on dotnet/maui’s CI. It does:
dotnet-install.sh
to a folder like./bin/dotnet/
- Install various workloads
- Build projects
The “Release” lane in the same build passed – so going to retry and see if this problem goes away.
Exceptions (if any)
.binlog
file: Microsoft.Maui-mac-Debug-Build.binlog.zip
/cc @dsplaisted
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
SDK Resolver Failure - Net 7 - Net 6
Just downloaded and installed SDK Net 7.0.100 and it broke existing applications and they won't load any more in VS 2022 or Rider....
Read more >NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >NETSDK1141: Unable to resolve the .NET SDK version as ...
Learn about .NET SDK error NETSDK1141, which occurs when the SDK version could not be resolved in global.json.
Read more >NET SDK by Microsoft
NET SDK which is comprised of three parts: .NET CLI .NET runtime; ASP.NET Core. Use this image for your development process (developing, building...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Getting this on macOS
/usr/local/share/dotnet/sdk/7.0.100-preview.4.22252.9/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(179,5): error MSB4018: at System.IO.Strategies.OSFileStreamStrategy
dotnet --list-sdks
6.0.301 [/usr/local/share/dotnet/sdk]
7.0.100-preview.4.22252.9 [/usr/local/share/dotnet/sdk]
Not sure if it’s related but I landed here googling the error output.
I haven’t seen this in a while.
@mattleibow / @rmarinho have you seen this on dotnet/maui’s CI?