Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit e432fb6

Browse files
committed
Manually add the attribute for projects that don't reference S.R.InteropServices but have DllImports.
1 parent 8526411 commit e432fb6

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

src/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<NoWarn>$(NoWarn);8073</NoWarn>
1010
<!-- Although we have a netstandard configuration, we know we are not currently UAP compatible-->
1111
<UWPCompatible>false</UWPCompatible>
12+
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
1213
</PropertyGroup>
1314
<!-- Help VS understand available configurations -->
1415
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Debug|AnyCPU'" />

src/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<NoWarn>$(NoWarn);0649</NoWarn>
99
<!-- Although we have a netstandard configuration, we know we are not currently UAP compatible-->
1010
<UWPCompatible>false</UWPCompatible>
11+
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
1112
</PropertyGroup>
1213
<!-- Help VS understand available configurations -->
1314
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Debug|AnyCPU'" />

src/System.IO.Ports/src/System.IO.Ports.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<ProjectGuid>{187503F4-BEF9-4369-A1B2-E3DC5D564E4E}</ProjectGuid>
77
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'netfx'">true</IsPartialFacadeAssembly>
88
<GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetGroup)' == 'netstandard' AND '$(TargetsWindows)' != 'true'">SR.PlatformNotSupported_IOPorts</GeneratePlatformNotSupportedAssemblyMessage>
9-
</PropertyGroup>
9+
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
10+
</PropertyGroup>
1011
<!-- Default configurations to help VS understand the options -->
1112
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netfx-Debug|AnyCPU'" />
1213
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netfx-Release|AnyCPU'" />

src/System.Net.Http.WinHttpHandler/src/System.Net.Http.WinHttpHandler.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetGroup)' == 'netstandard' AND '$(TargetsWindows)' != 'true'">SR.PlatformNotSupported_WinHttpHandler</GeneratePlatformNotSupportedAssemblyMessage>
1010
<!-- Although we have a NS configuration, the actual UWP implementation is a shim over WinRT: so just validate against OneCore -->
1111
<UWPCompatible>false</UWPCompatible>
12+
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
1213
</PropertyGroup>
1314
<!-- Help VS understand available configurations -->
1415
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netfx-Windows_NT-Debug|AnyCPU'" />

src/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<OutputType>Library</OutputType>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
10+
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
1011
</PropertyGroup>
1112
<!-- Default configurations to help VS understand the configurations -->
1213
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" />

src/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<ResourcesSourceOutputDirectory Condition="'$(IsPartialFacadeAssembly)' == 'true'">None</ResourcesSourceOutputDirectory>
1010
<GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetGroup)' == 'netstandard' AND '$(TargetsWindows)' != 'true'">SR.PlatformNotSupported_CryptographyPkcs</GeneratePlatformNotSupportedAssemblyMessage>
1111
<UsePackageTargetRuntimeDefaults Condition="'$(IsPartialFacadeAssembly)' != 'true'">true</UsePackageTargetRuntimeDefaults>
12-
</PropertyGroup>
12+
<IncludeDllSafeSearchPathAttribute>true</IncludeDllSafeSearchPathAttribute>
13+
</PropertyGroup>
1314
<!-- Don't delete these clauses even if they look useless. They tell the VS IDE that "Windows_Debug", etc., are
1415
valid configuration for this project and stop it from trying to "fix up" the .sln file -->
1516
<!-- API types (platform independent) -->

0 commit comments

Comments
 (0)