sharpliner / sharpliner

Use C# instead of YAML to define your Azure DevOps pipelines
https://www.nuget.org/packages/Sharpliner/
MIT License
285 stars 21 forks source link

Repeated build fails in VS 2022 Preview 17.4.0 Preview 3 #249

Closed premun closed 7 months ago

premun commented 1 year ago

Seems like some process keeps holding the DLL:

1>C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4680,5): warning MSB3026: Could not copy "obj\Debug\net7.0\Pipeline.dll" to "bin\Debug\net7.0\Pipeline.dll". Beginning retry 10 in 1000ms. The process cannot access the file 'bin\Debug\net7.0\Pipeline.dll' because it is being used by another process. The file is locked by: ".NET Host (32452)"
1>C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4680,5): error MSB3027: Could not copy "obj\Debug\net7.0\Pipeline.dll" to "bin\Debug\net7.0\Pipeline.dll". Exceeded retry count of 10. Failed. The file is locked by: ".NET Host (32452)"
1>C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4680,5): error MSB3021: Unable to copy file "obj\Debug\net7.0\Pipeline.dll" to "bin\Debug\net7.0\Pipeline.dll". The process cannot access the file 'bin\Debug\net7.0\Pipeline.dll' because it is being used by another process.

Only started in latest VS I think.

premun commented 7 months ago

I guess this doesn't happen nanymore