ljrk,
@ljrk@todon.eu avatar

More / woes :|

I have multiple projects that can support net7.0-windows on, well Windows, and net48 on Windows and Unix (through ) in one solution. This works fine if I build on Linux and on Windows, but if I choose to specify the target OS using dotnet build --os or the runtime dotnet build --runtime explicitly (they both amount to the same thing), either for cross-compilation or even when it matches the host, this breaks horribly since specifying a RID (Runtime Identifier) on solution level is not possible since .NET 5.0 and errors with . This is well-known and there's also a really weird workaround:

https://github.com/dotnet/sdk/issues/14281#issuecomment-1247327343

Setting -p:ImportByWildcardBeforeSolution=false also works... . Apparently there's no incentive to fix this anytime soon :(

  • All
  • Subscribed
  • Moderated
  • Favorites
  • dotnet
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines