Ignore:
Timestamp:
Jan 27, 2018, 5:39:08 AM (5 years ago)
Author:
roman
Message:

EasyHook? fix

Location:
trunk/Utilities/Miscellaneous/CoCreateInstance02
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Miscellaneous/CoCreateInstance02/CoCreateInstance02.vcxproj

    r805 r809  
    9494      <SubSystem>Console</SubSystem>
    9595      <GenerateDebugInformation>true</GenerateDebugInformation>
     96      <AdditionalLibraryDirectories>packages\EasyHookNativePackage.2.7.6578.1\build\native\lib\$(Platform)\v140\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    9697    </Link>
     98    <PostBuildEvent>
     99      <Command>copy /b /y "$(SolutionDir)packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\bin\$(Platform)\v140\$(Configuration)\EasyHook$(PlatformArchitecture).dll" "$(TargetDir)"</Command>
     100    </PostBuildEvent>
    97101  </ItemDefinitionGroup>
    98102  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     
    107111      <SubSystem>Console</SubSystem>
    108112      <GenerateDebugInformation>true</GenerateDebugInformation>
     113      <AdditionalLibraryDirectories>packages\EasyHookNativePackage.2.7.6578.1\build\native\lib\$(Platform)\v140\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    109114    </Link>
     115    <PostBuildEvent>
     116      <Command>copy /b /y "$(SolutionDir)packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\bin\$(Platform)\v140\$(Configuration)\EasyHook$(PlatformArchitecture).dll" "$(TargetDir)"</Command>
     117    </PostBuildEvent>
    110118  </ItemDefinitionGroup>
    111119  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
     
    124132      <OptimizeReferences>true</OptimizeReferences>
    125133      <GenerateDebugInformation>true</GenerateDebugInformation>
     134      <AdditionalLibraryDirectories>packages\EasyHookNativePackage.2.7.6578.1\build\native\lib\$(Platform)\v140\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    126135    </Link>
     136    <PostBuildEvent>
     137      <Command>copy /b /y "$(SolutionDir)packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\bin\$(Platform)\v140\$(Configuration)\EasyHook$(PlatformArchitecture).dll" "$(TargetDir)"</Command>
     138    </PostBuildEvent>
    127139  </ItemDefinitionGroup>
    128140  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
     
    141153      <OptimizeReferences>true</OptimizeReferences>
    142154      <GenerateDebugInformation>true</GenerateDebugInformation>
     155      <AdditionalLibraryDirectories>packages\EasyHookNativePackage.2.7.6578.1\build\native\lib\$(Platform)\v140\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    143156    </Link>
     157    <PostBuildEvent>
     158      <Command>copy /b /y "$(SolutionDir)packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\bin\$(Platform)\v140\$(Configuration)\EasyHook$(PlatformArchitecture).dll" "$(TargetDir)"</Command>
     159    </PostBuildEvent>
    144160  </ItemDefinitionGroup>
    145161  <ItemGroup>
    146162    <ClCompile Include="CoCreateInstance02.cpp" />
    147163  </ItemGroup>
     164  <ItemGroup>
     165    <None Include="packages.config" />
     166  </ItemGroup>
    148167  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
    149168  <ImportGroup Label="ExtensionTargets">
     169    <Import Project="packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\EasyHookNativePackage.redist.targets" Condition="Exists('packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\EasyHookNativePackage.redist.targets')" />
     170    <Import Project="packages\EasyHookNativePackage.2.7.6578.1\build\native\EasyHookNativePackage.targets" Condition="Exists('packages\EasyHookNativePackage.2.7.6578.1\build\native\EasyHookNativePackage.targets')" />
    150171  </ImportGroup>
     172  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
     173    <PropertyGroup>
     174      <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
     175    </PropertyGroup>
     176    <Error Condition="!Exists('packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\EasyHookNativePackage.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\EasyHookNativePackage.redist.2.7.6578.1\build\native\EasyHookNativePackage.redist.targets'))" />
     177    <Error Condition="!Exists('packages\EasyHookNativePackage.2.7.6578.1\build\native\EasyHookNativePackage.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\EasyHookNativePackage.2.7.6578.1\build\native\EasyHookNativePackage.targets'))" />
     178  </Target>
    151179</Project>
  • trunk/Utilities/Miscellaneous/CoCreateInstance02/CoCreateInstance02.vcxproj.filters

    r805 r809  
    2020    </ClCompile>
    2121  </ItemGroup>
     22  <ItemGroup>
     23    <None Include="packages.config" />
     24  </ItemGroup>
    2225</Project>
Note: See TracChangeset for help on using the changeset viewer.