-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix running tests against our DNNE'd NativeExports project to work in…
… NativeAOT (#84578) Co-authored-by: Jan Kotas <jkotas@microsoft.com>
- Loading branch information
1 parent
9cc8163
commit ce2838a
Showing
6 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/libraries/System.Runtime.InteropServices/tests/Directory.Build.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project> | ||
<PropertyGroup Condition="'$(ReferencesNativeExports)' == 'true'"> | ||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | ||
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints> | ||
</PropertyGroup> | ||
<!-- Expose unmanaged entry points from NativeExports --> | ||
<ItemGroup Condition="'$(ReferencesNativeExports)' == 'true'"> | ||
<UnmanagedEntryPointsAssembly Include="Microsoft.Interop.Tests.NativeExports" /> | ||
<DirectPInvoke Include="Microsoft.Interop.Tests.NativeExportsNE" /> | ||
</ItemGroup> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets, $(MSBuildThisFileDirectory)..))" /> | ||
</Project> |
6 changes: 3 additions & 3 deletions
6
...me.InteropServices/tests/LibraryImportGenerator.Tests/LibraryImportGenerator.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters