Open MaceWindu opened 1 month ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Small update. Noticed recently that issue is gone, so I've retested commit from time of issue creation:
https://github.com/linq2db/linq2db/tree/165762c6252dd53c6da5dc5f39b85bfaddcbd911 - this commit still fails
Reason why it works now is that we switched to .NET 9 SDK previews for build
Actually it is also happens with SDK 9 RC.2, but not on every run:
c:\GitHub\linq2db>dotnet build
Restore complete (14.2s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
CodeGenerators netstandard2.0 failed with 1 error(s) (6.8s)
CSC : error CS2012: Cannot open 'c:\GitHub\linq2db\.build\obj\CodeGenerators\Debug\CodeGenerators.dll' for writing -- 'The process cannot access the file 'c:\GitHub\linq2db\.build\obj\CodeGenerators\Debug\CodeGenerators.dll' because it is being used by another process.'
CodeGenerators succeeded (5.2s) → .build\bin\CodeGenerators\Debug\CodeGenerators.dll
Describe the bug
After 8.0.10 release this week our builds stopped to work with
error, where
CodeGenerators
is roslyn code-generators project.To Reproduce
Checkout source from https://github.com/linq2db/linq2db and run following build command
It will fail with error.
Second build will succeed (if you don't remove .build with files from previous attempt).
While locally we can rerun build, on CI it is more problematic.
Further technical details
dotnet --info
Runtime Environment: OS Name: Windows OS Version: 10.0.19045 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\sdk\8.0.403\
.NET workloads installed: Configured to use loose manifests when installing new manifests. [aspire] Installation Source: VS 17.11.35327.3 Manifest Version: 8.1.0/8.0.100 Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.1.0\WorkloadManifest.json Install Type: FileBased
Host: Version: 8.0.10 Architecture: x64 Commit: 81cabf2857
.NET SDKs installed: 3.1.426 [C:\Program Files\dotnet\sdk] 6.0.315 [C:\Program Files\dotnet\sdk] 8.0.403 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.35 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.33 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.35 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.35 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found: arm64 [C:\Program Files\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\arm64\InstallLocation] x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables: Not set
global.json file: c:\GitHub\linq2db\global.json
Learn more: https://aka.ms/dotnet/info
Download .NET: https://aka.ms/dotnet/download