You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't build runtime with recent SDK due to IsTrimmable errors #91010
Build fails with the IsTrimmable is not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. error.
Build FAILED.
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23422.11\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1212: IsTrimmable is not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. For example: [C:\MihaZupan\runtime\Build.proj]
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23422.11\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1212: <IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable> [C:\MihaZupan\runtime\Build.proj]
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23422.11\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1212: IsTrimmable is not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. For example: [C:\MihaZupan\runtime\Build.proj]
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23422.11\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1212: <IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable> [C:\MihaZupan\runtime\Build.proj]
0 Warning(s)
2 Error(s)
This is an issue with a new warning in the SDK. It should go away with #90880, but in the meantime, if you can get a binlog of the NuGet restore, you can figure out which project is having the failure. @sbomer would know more about how to easily trace this down without a binlog.
dotnet/docs#36775 has more details about the breaking change. I'm curious why source-build hasn't reported the break since it looks like they updated to the RC1 SDK in dotnet/dotnet@a61d7e3. We might still need to fix this in .NET 8 though.
I think we can close this as fixed by #90880. Pretty sure source-build is avoiding the issue because of source-build specific settings, such as having some analyzers disabled. Please re-open if this it's still a problem somewhere.
Activity
ViktorHofer commentedon Aug 23, 2023
cc @jkoritzinsky
jkoritzinsky commentedon Aug 23, 2023
This is an issue with a new warning in the SDK. It should go away with #90880, but in the meantime, if you can get a binlog of the NuGet restore, you can figure out which project is having the failure. @sbomer would know more about how to easily trace this down without a binlog.
sbomer commentedon Aug 23, 2023
dotnet/docs#36775 has more details about the breaking change. I'm curious why source-build hasn't reported the break since it looks like they updated to the RC1 SDK in dotnet/dotnet@a61d7e3. We might still need to fix this in .NET 8 though.
sbomer commentedon Sep 1, 2023
I think we can close this as fixed by #90880. Pretty sure source-build is avoiding the issue because of source-build specific settings, such as having some analyzers disabled. Please re-open if this it's still a problem somewhere.