RedGate.SmartAssembly.MSBuild: System.IO.IOException during build
tcberry_oxinst
Posts: 2 New member
We are building a solution where some C# projects use the RedGate NuGet packages to integrate SmartAssembly with the build. Having switched our C# projects to the .NET SDK project format, our build clients are now failing with the following error:
We have occasionally seen the same error with our existing codebase, but it seems much worse when using the .NET SDK project format.
We are currently using SmartAssembly 8.1, but the same issue happened when I tried updating to 8.2. Obfuscating an assembly with the SmartAssembly GUI does not produce this error.
Note that we are building projects in parallel. Could this be the issue?
Tagged:
Answers
That's puzzling, 8.2 should have addressed that, it did for other customers with this issue.
When you say .NET SDK project format, is that in place of the MSbuild format?
By .NET SDK format project, I mean the new project schema that was first introduced for .NET Core, the one that usually starts with <Project Sdk="Microsoft.NET.Sdk">. We are using this for our .NET Framework 4.8 projects in addition to those that target newer .NET releases.
We solved the parallel processing issue there by instantiating multiple instances of CLRTools so it didn't block itself. Based on your error message, that's clearly not occurring here for some reason.
As a quick fix, yes removing the parallel builds should allow you to proceed.