dotnet-svcutil: write generated json file with relative path for referenced assembly. #5500
Azure Pipelines / dotnet-wcf-with-corewcf--ci (Build Linux Debug)
failed
Oct 24, 2024 in 2m 15s
Build Linux Debug failed
Annotations
azure-pipelines / dotnet-wcf-with-corewcf--ci (Build Linux Debug)
.dotnet/sdk/9.0.100-rc.1.24452.12/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets#L1234
.dotnet/sdk/9.0.100-rc.1.24452.12/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(1234,5): error MSB4018: (NETCORE_ENGINEERING_TELEMETRY=Build) The "GetAssemblyAttributes" task failed unexpectedly.
System.IO.IOException: The process cannot access the file '/__w/1/s/artifacts/obj/System.ServiceModel.Primitives/Debug/net8.0/System.ServiceModel.Primitives.dll' because it is being used by another process.
at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Int64& fileLength, UnixFileMode& filePermissions)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.NET.Build.Tasks.FileUtilities.<GetAssemblyVersion>g__GetAssemblyVersionFromFile|4_0(String sourcePath)
at Microsoft.NET.Build.Tasks.FileUtilities.GetAssemblyVersion(String sourcePath)
at Microsoft.NET.Build.Tasks.GetAssemblyAttributes.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
Loading