Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Explicitly set EnableDllImportGenerator to true in test project.
  • Loading branch information
AaronRobinsonMSFT committed Nov 12, 2021
commit 9eadd6ab917e3f31eb849d363e168e52bcf7ee90
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ internal static partial class Interop
{
internal static partial class Crypt32
{
#if UNITTEST
[DllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
public static extern unsafe CERT_CONTEXT* CertEnumCertificatesInStore(
#else
[GeneratedDllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
public static unsafe partial CERT_CONTEXT* CertEnumCertificatesInStore(
#endif
IntPtr hCertStore,
CERT_CONTEXT* pPrevCertContext);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<StringResourcesPath>../../src/Resources/Strings.resx</StringResourcesPath>
<TargetFrameworks>$(NetCoreAppCurrent)-windows</TargetFrameworks>
<DefineConstants>UNITTEST</DefineConstants>
<EnableDllImportGenerator>true</EnableDllImportGenerator>
<Nullable>annotations</Nullable>
</PropertyGroup>
<ItemGroup>
Expand Down