Skip to content

Commit 9ee85bd

Browse files
committed
Remove unused SafeNativeMethods, add Link property to Compile properties for common Interop assemblies.
1 parent 9b1e9ca commit 9ee85bd

File tree

2 files changed

+18
-32
lines changed

2 files changed

+18
-32
lines changed

src/System.IO.FileSystem.Watcher/src/Microsoft/Win32/SafeNativeMethods.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/System.IO.FileSystem.Watcher/src/System.IO.FileSystem.Watcher.csproj

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616

1717
<ItemGroup>
1818
<Compile Include="Properties\AssemblyInfo.cs" />
19-
<Compile Include="$(CommonPath)\System\NotImplemented.cs" />
20-
<Compile Include="$(CommonPath)\System\SR.cs" />
19+
<Compile Include="$(CommonPath)\System\NotImplemented.cs">
20+
<Link>Common\System\NotImplemented.cs</Link>
21+
</Compile>
22+
<Compile Include="$(CommonPath)\System\SR.cs">
23+
<Link>Common\System\SR.cs</Link>
24+
</Compile>
2125
<Compile Include="System\HResults.cs" />
2226
<Compile Include="System\IO\ErrorEventArgs.cs" />
2327
<Compile Include="System\IO\ErrorEventHandler.cs" />
@@ -33,17 +37,24 @@
3337
</ItemGroup>
3438
<ItemGroup Condition=" '$(OS)' == 'Windows_NT' ">
3539
<Compile Include="Microsoft\Win32\NativeMethods.cs" />
36-
<Compile Include="Microsoft\Win32\SafeNativeMethods.cs" />
3740
<Compile Include="Microsoft\Win32\UnsafeNativeMethods.cs" />
3841
<Compile Include="System\IO\FileSystemWatcher.Win32.cs" />
3942
</ItemGroup>
4043
<ItemGroup Condition=" '$(OS)' == 'Unix' ">
4144
<Compile Include="System\IO\FileSystemWatcher.Linux.cs" />
4245
<Compile Include="Interop\Linux\Interop.notify.cs" />
43-
<Compile Include="$(CommonPath)\Interop\Unix\Interop.Libraries.cs" />
44-
<Compile Include="$(CommonPath)\Interop\Unix\libc\Interop.read.cs" />
45-
<Compile Include="$(CommonPath)\Interop\Unix\libc\Interop.strerror.cs" />
46-
<Compile Include="$(CommonPath)\Interop\Unix\Interop.Errors.cs" />
46+
<Compile Include="$(CommonPath)\Interop\Unix\Interop.Libraries.cs">
47+
<Link>Common\Interop\Unix\Interop.Libraries.cs</Link>
48+
</Compile>
49+
<Compile Include="$(CommonPath)\Interop\Unix\libc\Interop.read.cs">
50+
<Link>Common\Interop\Unix\libc\Interop.read.cs</Link>
51+
</Compile>
52+
<Compile Include="$(CommonPath)\Interop\Unix\libc\Interop.strerror.cs">
53+
<Link>Common\Interop\Unix\libc\Interop.strerror.cs</Link>
54+
</Compile>
55+
<Compile Include="$(CommonPath)\Interop\Unix\Interop.Errors.cs">
56+
<Link>Common\Interop\Unix\Interop.Errors.cs</Link>
57+
</Compile>
4758
</ItemGroup>
4859
<ItemGroup>
4960
<None Include="packages.config" />

0 commit comments

Comments
 (0)