Skip to content

Commit df38667

Browse files
author
dahall
committed
Corrected issue with VssApi NuGet package (#575) not delivering ijwhost.dll which caused load problems with consumed.
1 parent e243537 commit df38667

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

PInvoke/VssApi/Vanara.PInvoke.VssApi.nuspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<id>Vanara.PInvoke.VssApi</id>
55
<version>5.0.1</version>
66
<description>PInvoke API (methods, structures and constants) imported from Windows Volume Shadow Copy Service (VssApi.dll).</description>
7-
<copyright>Copyright © 2017-2025</copyright>
7+
<copyright>Copyright © 2017-2026</copyright>
88
<authors>David Hall</authors>
99
<tags>pinvoke,vanara,net-extensions,interop,VSS,VssApi,volume shadow copy service</tags>
1010
<license type="expression">MIT</license>
@@ -23,6 +23,10 @@
2323
</metadata>
2424
<files>
2525
<file src="bin\Release\net8.0\Vanara.PInvoke.VssApi*.???" target="lib\net8.0-windows7.0" />
26+
<file src="bin\Release\net8.0\Ijwhost.dll" target="lib\net8.0-windows7.0" />
27+
<!--<file src="bin\Release\net8.0\Vanara.PInvoke.VssApiMgd.*" target="runtimes\win-x64\lib\net8.0-windows7.0" />
28+
<file src="bin\Release\net8.0\Ijwhost.dll" target="runtimes\win-x64\lib\net8.0-windows7.0" />
29+
<file src="Vanara.PInvoke.VssApi.targets" target="build" />-->
2630
<file src="..\..\docs\icons\Vanara64x64.png" target="Vanara64x64.png" />
2731
<file src="pkgreadme.md" target="pkgreadme.md" />
2832
</files>

PInvoke/VssApi/Vanara.PInvoke.VssApi.vcxproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,47 +43,48 @@
4343
<PropertyGroup Label="Globals">
4444
<VCProjectVersion>17.0</VCProjectVersion>
4545
<EnableManagedPackageReferenceSupport>true</EnableManagedPackageReferenceSupport>
46+
<UseIJWHost>true</UseIJWHost>
4647
<ProjectGuid>{11EF8FFF-25DE-4ADB-A951-FA10A421FFE4}</ProjectGuid>
4748
<Keyword>NetCoreCProj</Keyword>
4849
<RootNamespace>VssApi</RootNamespace>
4950
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
5051
<TargetFramework>net8.0</TargetFramework>
5152
<WindowsTargetPlatformMinVersion>7.0</WindowsTargetPlatformMinVersion>
5253
</PropertyGroup>
53-
<PropertyGroup>
54+
<!--<PropertyGroup>
5455
<ProjectName>Vanara.PInvoke.VssApi</ProjectName>
5556
<Description>PInvoke API (methods, structures and constants) imported from Windows Volume Shadow Copy Service (VssApi.dll).</Description>
5657
<AssemblyTitle>$(AssemblyName)</AssemblyTitle>
5758
<AssemblyName>Vanara.PInvoke.VssApi</AssemblyName>
5859
<PackageId>$(AssemblyName)</PackageId>
5960
<PackageTags>pinvoke;vanara;net-extensions;interop;VSS;VssApi;volume shadow copy service</PackageTags>
60-
</PropertyGroup>
61+
</PropertyGroup>-->
6162
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
6263
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
6364
<ConfigurationType>DynamicLibrary</ConfigurationType>
6465
<UseDebugLibraries>true</UseDebugLibraries>
65-
<PlatformToolset>v143</PlatformToolset>
66+
<PlatformToolset>v145</PlatformToolset>
6667
<CLRSupport>NetCore</CLRSupport>
6768
<CharacterSet>Unicode</CharacterSet>
6869
</PropertyGroup>
6970
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
7071
<ConfigurationType>DynamicLibrary</ConfigurationType>
7172
<UseDebugLibraries>false</UseDebugLibraries>
72-
<PlatformToolset>v143</PlatformToolset>
73+
<PlatformToolset>v145</PlatformToolset>
7374
<CLRSupport>NetCore</CLRSupport>
7475
<CharacterSet>Unicode</CharacterSet>
7576
</PropertyGroup>
7677
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
7778
<ConfigurationType>DynamicLibrary</ConfigurationType>
7879
<UseDebugLibraries>true</UseDebugLibraries>
79-
<PlatformToolset>v143</PlatformToolset>
80+
<PlatformToolset>v145</PlatformToolset>
8081
<CLRSupport>NetCore</CLRSupport>
8182
<CharacterSet>Unicode</CharacterSet>
8283
</PropertyGroup>
8384
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
8485
<ConfigurationType>DynamicLibrary</ConfigurationType>
8586
<UseDebugLibraries>false</UseDebugLibraries>
86-
<PlatformToolset>v143</PlatformToolset>
87+
<PlatformToolset>v145</PlatformToolset>
8788
<CLRSupport>NetCore</CLRSupport>
8889
<CharacterSet>Unicode</CharacterSet>
8990
</PropertyGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project xmlns="http://schemas.microsoft.com">
2+
<!-- Condition to apply only for Windows x64 targets -->
3+
<ItemGroup Condition="('$(Platform)' == 'x64' OR '$(RuntimeIdentifier)' == 'win-x64') AND '$(OS)' == 'Windows_NT'">
4+
<Reference Include="Vanara.PInvoke.VssApiMgd">
5+
<HintPath>$(MSBuildThisFileDirectory)..\runtimes\win-x64\lib\net8.0-windows7.0\Vanara.PInvoke.VssApiMgd.dll</HintPath>
6+
<Private>True</Private>
7+
</Reference>
8+
</ItemGroup>
9+
</Project>

PInvoke/VssApiMgd/Vanara.PInvoke.VssApiMgd.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@
99
<IsPackable>false</IsPackable>
1010
<TargetFrameworks>net8.0-windows</TargetFrameworks>
1111
</PropertyGroup>
12-
<ItemGroup>
13-
14-
</ItemGroup>
1512
</Project>

0 commit comments

Comments
 (0)