"No target frameworks detected" in dotnet projects that inherit it from Directory.Build.props
My project is open source and can be found here: https://github.com/recyclarr/recyclarr
Here's the logs from my project import: https://app.snyk.io/org/recyclarr/import-log/latest
In my case, I do not specify <TargetFramework> in my *.csproj files; this is in my src/Directory.Build.props file:
<TargetFramework>net6.0</TargetFramework>
All projects inherit this framework version, as well as many others like <LangVersion>. You can see all of those here:
https://github.com/recyclarr/recyclarr/blob/master/src/Directory.Build.props#L3-L9
After import into Snyk, it says "No target frameworks detected" but this is wrong. It should be looking up each directory level for a Directory.Build.props (the same way msbuild does) and inherit properties from that. Or if there's some other, better way, I'm not sure, but that's the gist of the behavior I think. I'm not too concerned with how this gets implemented, as long as it works consistent with official msbuild / dotnet behavior.
At the moment I'm not able to use Synk for my open-source project due to this.