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
DllImportGenerator produces following error when targeting <net5 frameworks
CSC : error DLLIMPORTGEN003: 'GeneratedDllImportAttribute' cannot be used for source-generated P/Invokes on the current target framework. Source-generated P/Invokes require .NET 5.0 or above. [/home/supine/UltralightNet/UltralightNet/UltralightNet.csproj]
but if i simply copy-paste generated code to source with netstandard2/net45 targets it will work.
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.
Issue Details
DllImportGenerator produces following error when targeting <net5 frameworks
CSC : error DLLIMPORTGEN003: 'GeneratedDllImportAttribute' cannot be used for source-generated P/Invokes on the current target framework. Source-generated P/Invokes require .NET 5.0 or above. [/home/supine/UltralightNet/UltralightNet/UltralightNet.csproj]
but if i simply copy-paste generated code to source with netstandard2/net45 targets it will work.
The generator has already been updated in main to only warn on an unknown tfm and have well-specified downlevel behavior. We just haven't shipped a new package in a while.
@SupinePandora43 The prototype is no longer being updated. This has been addressed in the official version that will eventually supersede the prototype in the feed.
DllImportGenerator produces following error when targeting <net5 frameworks
but if i simply copy-paste generated code to source with netstandard2/net45 targets it will work.
The text was updated successfully, but these errors were encountered: