Closed belav closed 5 days ago
Thanks for reporting the issue. Please consider sponsoring @devlooped so I can prioritize this issue 🙏
Please provide a minimal repro with the setup for those two projects that would be representative. I haven't been able to repro since the setup/config choices are unknown.
This issue has been closed automatically because it needs more information and has not had recent activity.
Happy Coding!
Describe the Bug
Steps to Reproduce
I can't supply a reproduction repo at this point, but I am just running nugetize against our very large solution with ~100 projects. Looking at replacing
dotnet pack
withnugetize
That results in
I don't see the
GetTargetFrameworksWithPlatformForSingleTargetFramework
target anywhere in the nugetizer code. I did try adding an empty target<Target Name="GetTargetFrameworksWithPlatformForSingleTargetFramework" />
to the two projects in question. Which gets me further but results in these errors.The projects in question - one is
<Project Sdk="Microsoft.NET.Sdk.Web">
and the other is<Project Sdk="Microsoft.NET.Sdk.Razor">
both targeting just net8.0, although the nuget project targets net48 and net8.0.I do have
<IsPackable>
set in the Web project and know thatdotnet pack
is packing it correctly (although not a lot of the dependencies which is why I started looking into nugetizer)Is it possible that nugetizer doesn't work with these two types of projects? Or would you have any ideas about the original
GetTargetFrameworksWithPlatformForSingleTargetFramework
problem? From here it seems like that target should be skipped if it doesn't exist. And that target is only in a couple of places in the msbuild repo.