|
return Path.Combine(baseIntermediateOutputPath, "obj", folderName); |
This code assumes the directory specified using the -biop flag is the parent of the obj folder. However, MSBuild provides you the ability to rename object folders to another name (such as .obj). Assuming the folder is always <parent>/obj/<subfolder> seems unnecessary. To avoid a breaking change here, you might be able to check if that path exists, and then use it, but otherwise try just directly using the directory specified with -biop.
To get around this, we are manually copying our intermediate directory to another location (<directory>/obj) and then passing <directory> to -biop flag.
cyclonedx-dotnet/CycloneDX/Services/ProjectFileService.cs
Line 94 in 16ffa29
This code assumes the directory specified using the -biop flag is the parent of the obj folder. However, MSBuild provides you the ability to rename object folders to another name (such as .obj). Assuming the folder is always
<parent>/obj/<subfolder>seems unnecessary. To avoid a breaking change here, you might be able to check if that path exists, and then use it, but otherwise try just directly using the directory specified with -biop.To get around this, we are manually copying our intermediate directory to another location (
<directory>/obj) and then passing<directory>to -biop flag.