-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
Milestone
Description
Repro:
- Add
<DisableImplicitAssemblyReferences>false</DisableImplicitAssemblyReferences>to the Odbc.csproj - Remove the
<Reference Include="..." />statements at the bottom of the project file. - Run the following:
.\dotnet.cmd build src\libraries\System.Data.Odbc\src\System.Data.Odbc.csproj /bl -f net7.0-windows
Error:
C:\git\runtime5\src\libraries\Common\src\Interop\Interop.Odbc.cs(172,34): error SYSLIB1051: The type 'byte[]' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'Value'. [C:\git\runtime5\src\libraries\System.Data.Odbc\src\System.Data.Odbc.csproj]
C:\git\runtime5\src\libraries\Common\src\Interop\Interop.Odbc.cs(199,35): error SYSLIB1051: The type 'char[]' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'rchState'. [C:\git\runtime5\src\libraries\System.Data.Odbc\src\System.Data.Odbc.csproj]
C:\git\runtime5\src\libraries\Common\src\Interop\Interop.Odbc.cs(201,35): error SYSLIB1051: The type 'char[]' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'MessageText'. [C:\git\runtime5\src\libraries\System.Data.Odbc\src\System.Data.Odbc.csproj]
C:\git\runtime5\src\libraries\Common\src\Interop\Interop.Odbc.cs(211,35): error SYSLIB1051: The type 'char[]' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'rchState'. [C:\git\runtime5\src\libraries\System.Data.Odbc\src\System.Data.Odbc.csproj]
C:\git\runtime5\src\libraries\Common\src\Interop\Interop.Odbc.cs(225,34): error SYSLIB1051: The type 'byte[]' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'rgbInfoValue'. [C:\git\runtime5\src\libraries\System.Data.Odbc\src\System.Data.Odbc.csproj]
C:\git\runtime5\src\libraries\Common\src\Interop\Interop.Odbc.cs(233,34): error SYSLIB1051: The type 'byte[]' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter 'rgbInfoValue'. [C:\git\runtime5\src\libraries\System.Data.Odbc\src\System.Data.Odbc.csproj]
Workaround: Set EnableLibraryImportGenerator to true.