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
Justification: I'm attempting to build a package that depends on several different tools packages. These tools packages are built in the same repo and produce a package that is target framework independent. They are not dotnet tools.
EXCEPT Child2.csproj targets net6.0 instead of net472.
The net6.0 target framework causes the following error: error NU1201: Project Child2 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project Child2 supports: net6.0 (.NETCoreApp,Version=v6.0). If I remove the dependency to Child2, I get a package with the dependency to Child1 in the netstandard2.0 target framework, as expected.
This is confusing to me. Netstandard2.0 is not compatible with BOTH net6.0 and net472. However, only net6.0 throws the error?
My real goal is to add the project references as a dependency to the NuGet, ignoring the target framework being used to build the tools DLL. Is this possible?
Verbose Logs
No response
The text was updated successfully, but these errors were encountered:
NuGet Product Used
MSBuild.exe
Product Version
MSBuild 17.10.4.21802
Worked before?
No response
Impact
It's more difficult to complete my work
Repro Steps & Context
Justification: I'm attempting to build a package that depends on several different tools packages. These tools packages are built in the same repo and produce a package that is target framework independent. They are not dotnet tools.
For simplicity, I have the following projects:
Parent.csproj:
Both Child.csproj projects look like the following:
EXCEPT Child2.csproj targets net6.0 instead of net472.
The net6.0 target framework causes the following error:
error NU1201: Project Child2 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project Child2 supports: net6.0 (.NETCoreApp,Version=v6.0)
. If I remove the dependency to Child2, I get a package with the dependency to Child1 in the netstandard2.0 target framework, as expected.This is confusing to me. Netstandard2.0 is not compatible with BOTH net6.0 and net472. However, only net6.0 throws the error?
My real goal is to add the project references as a dependency to the NuGet, ignoring the target framework being used to build the tools DLL. Is this possible?
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: