Add ijwhost.lib to host package. (dotnet/core-setup#5650)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Thu, 4 Apr 2019 17:30:40 +0000 (10:30 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 17:30:40 +0000 (10:30 -0700)
I forgot to include the `ijwhost.lib` exports lib in the Microsoft.NETCore.DotNetAppHost package. C++/CLI will need this in the package for aquisition via NuGet.

Commit migrated from https://github.com/dotnet/core-setup/commit/482c74beffd6206694004fbd539ecede6dcab4b1

src/installer/corehost/cli/ijwhost/Exports.def
src/installer/pkg/projects/Microsoft.NETCore.DotNetAppHost/runtime.Windows_NT.Microsoft.NETCore.DotNetAppHost.props
src/installer/pkg/projects/dir.targets

index 9c503b4..98cb7cd 100644 (file)
@@ -1,3 +1,3 @@
 EXPORTS
-    _CorDllMain            PRIVATE
+    _CorDllMain
     GetTokenForVTableEntry PRIVATE
\ No newline at end of file
index 27a8309..4fb7a44 100644 (file)
@@ -4,6 +4,7 @@
     <ArchitectureSpecificNativeFile Include="$(DotNetHostBinDir)/apphost.exe" />
     <ArchitectureSpecificNativeFile Include="$(DotNetHostBinDir)/comhost.dll" />
     <ArchitectureSpecificNativeFile Include="$(DotNetHostBinDir)/ijwhost.dll" />
+    <ArchitectureSpecificNativeFile Include="$(DotNetHostBinDir)/ijwhost.lib" />
 
     <File Include="@(ArchitectureSpecificNativeFile)">
       <TargetPath>runtimes/$(PackageTargetRuntime)/native</TargetPath>
index 3bac47a..f8ca13a 100644 (file)
@@ -33,7 +33,9 @@
     <ItemGroup>
       <WindowsNativeFile Include="@(File)"
                          Condition="'%(File.Extension)' == '.dll' OR '%(File.Extension)' == '.exe'" />
-      <WindowsSymbolFile Include="@(File -> '%(RootDir)%(Directory)%(Filename).pdb')" />
+      <!-- Don't include *.pdb for export libraries -->
+      <WindowsSymbolFile Include="@(File -> '%(RootDir)%(Directory)%(Filename).pdb')"
+                         Condition="'%(File.Extension)' != '.lib'" />
       <!-- Crossgened files (on windows) have both a *.pdb and a *.ni.pdb symbol file.  Include the *.ni.pdb file as well if it exists. -->
       <WindowsSymbolFile Include="@(File -> '%(RootDir)%(Directory)%(Filename).ni.pdb')" />
       <ExistingWindowsSymbolFile Include="@(WindowsSymbolFile)" Condition="Exists('%(Identity)')" />