Move all sources (except main.cpp) from vcpkg.vcxproj to vcpkglib.vcxproj
MODIFY
vcpkg/vcpkg.vcxproj
vcpkg/vcpkg.vcxproj
<AdditionalDependencies>winhttp.lib;version.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\src\coff_file_reader.cpp" />
- <ClCompile Include="..\src\commands_available_commands.cpp" />
- <ClCompile Include="..\src\commands_build.cpp" />
- <ClCompile Include="..\src\commands_build_external.cpp" />
- <ClCompile Include="..\src\commands_cache.cpp" />
- <ClCompile Include="..\src\commands_contact.cpp" />
- <ClCompile Include="..\src\commands_create.cpp" />
- <ClCompile Include="..\src\commands_edit.cpp" />
- <ClCompile Include="..\src\commands_hash.cpp" />
- <ClCompile Include="..\src\commands_import.cpp" />
- <ClCompile Include="..\src\commands_list.cpp" />
- <ClCompile Include="..\src\commands_owns.cpp" />
- <ClCompile Include="..\src\commands_portsdiff.cpp" />
- <ClCompile Include="..\src\commands_remove.cpp" />
- <ClCompile Include="..\src\commands_search.cpp" />
- <ClCompile Include="..\src\commands_update.cpp" />
- <ClCompile Include="..\src\commands_version.cpp" />
- <ClCompile Include="..\src\MachineType.cpp" />
- <ClCompile Include="..\src\vcpkg_cmd_arguments.cpp" />
- <ClCompile Include="..\src\vcpkg_Dependencies.cpp" />
- <ClCompile Include="..\src\vcpkg_Environment.cpp" />
- <ClCompile Include="..\src\commands_install.cpp" />
- <ClCompile Include="..\src\commands_integrate.cpp" />
- <ClCompile Include="..\src\main.cpp" />
- <ClCompile Include="..\src\commands_help.cpp" />
- <ClCompile Include="..\src\post_build_lint.cpp" />
- <ClCompile Include="..\src\vcpkg_Input.cpp" />
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\coff_file_reader.h" />
- <ClInclude Include="..\include\filesystem_fs.h" />
- <ClInclude Include="..\include\MachineType.h" />
- <ClInclude Include="..\include\vcpkg_cmd_arguments.h" />
- <ClInclude Include="..\include\vcpkg_Commands.h" />
- <ClInclude Include="..\include\vcpkg_Dependencies.h" />
- <ClInclude Include="..\include\vcpkg_Environment.h" />
- <ClInclude Include="..\include\post_build_lint.h" />
- <ClInclude Include="..\include\vcpkg_Input.h" />
- </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\vcpkgcommon\vcpkgcommon.vcxproj">
<Project>{7129f242-f20c-43e7-bbec-4e15b71890b2}</Project>
<Project>{b98c92b7-2874-4537-9d46-d14e5c237f04}</Project>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\src\main.cpp" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>

MODIFY
vcpkg/vcpkg.vcxproj.filters
vcpkg/vcpkg.vcxproj.filters
<ClCompile Include="..\src\main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\src\commands_help.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\post_build_lint.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\vcpkg_cmd_arguments.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\vcpkg_Environment.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_remove.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_search.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_cache.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_update.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_list.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_edit.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_create.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_owns.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_import.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\vcpkg_Dependencies.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\vcpkg_Input.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\coff_file_reader.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_hash.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_portsdiff.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_build_external.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_build.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_install.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_integrate.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_available_commands.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_version.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\commands_contact.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\src\MachineType.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\post_build_lint.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\vcpkg_cmd_arguments.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\vcpkg_Commands.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\vcpkg_Environment.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\vcpkg_Dependencies.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\vcpkg_Input.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\coff_file_reader.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\MachineType.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\filesystem_fs.h">
- <Filter>Header Files</Filter>
- </ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file

MODIFY
vcpkglib/vcpkglib.vcxproj
vcpkglib/vcpkglib.vcxproj
<ItemGroup>
<ClInclude Include="..\include\BinaryParagraph.h" />
<ClInclude Include="..\include\BuildInfo.h" />
+ <ClInclude Include="..\include\coff_file_reader.h" />
+ <ClInclude Include="..\include\filesystem_fs.h" />
+ <ClInclude Include="..\include\MachineType.h" />
<ClInclude Include="..\include\metrics.h" />
<ClInclude Include="..\include\package_spec.h" />
<ClInclude Include="..\include\package_spec_parse_result.h" />
<ClInclude Include="..\include\Paragraphs.h" />
+ <ClInclude Include="..\include\post_build_lint.h" />
<ClInclude Include="..\include\SourceParagraph.h" />
<ClInclude Include="..\include\StatusParagraph.h" />
<ClInclude Include="..\include\StatusParagraphs.h" />
<ClInclude Include="..\include\triplet.h" />
<ClInclude Include="..\include\vcpkg.h" />
<ClInclude Include="..\include\vcpkglib_helpers.h" />
+ <ClInclude Include="..\include\vcpkg_cmd_arguments.h" />
+ <ClInclude Include="..\include\vcpkg_Commands.h" />
+ <ClInclude Include="..\include\vcpkg_Dependencies.h" />
+ <ClInclude Include="..\include\vcpkg_Environment.h" />
+ <ClInclude Include="..\include\vcpkg_Input.h" />
<ClInclude Include="..\include\vcpkg_paths.h" />
<ClInclude Include="..\include\vcpkg_info.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\BinaryParagraph.cpp" />
<ClCompile Include="..\src\BuildInfo.cpp" />
+ <ClCompile Include="..\src\coff_file_reader.cpp" />
+ <ClCompile Include="..\src\commands_available_commands.cpp" />
+ <ClCompile Include="..\src\commands_build.cpp" />
+ <ClCompile Include="..\src\commands_build_external.cpp" />
+ <ClCompile Include="..\src\commands_cache.cpp" />
+ <ClCompile Include="..\src\commands_contact.cpp" />
+ <ClCompile Include="..\src\commands_create.cpp" />
+ <ClCompile Include="..\src\commands_edit.cpp" />
+ <ClCompile Include="..\src\commands_hash.cpp" />
+ <ClCompile Include="..\src\commands_help.cpp" />
+ <ClCompile Include="..\src\commands_import.cpp" />
+ <ClCompile Include="..\src\commands_install.cpp" />
+ <ClCompile Include="..\src\commands_integrate.cpp" />
+ <ClCompile Include="..\src\commands_list.cpp" />
+ <ClCompile Include="..\src\commands_owns.cpp" />
+ <ClCompile Include="..\src\commands_portsdiff.cpp" />
+ <ClCompile Include="..\src\commands_remove.cpp" />
+ <ClCompile Include="..\src\commands_search.cpp" />
+ <ClCompile Include="..\src\commands_update.cpp" />
+ <ClCompile Include="..\src\commands_version.cpp" />
+ <ClCompile Include="..\src\MachineType.cpp" />
<ClCompile Include="..\src\metrics.cpp" />
+ <ClCompile Include="..\src\post_build_lint.cpp" />
<ClCompile Include="..\src\vcpkg.cpp" />
<ClCompile Include="..\src\package_spec.cpp" />
<ClCompile Include="..\src\package_spec_parse_result.cpp" />
<ClCompile Include="..\src\StatusParagraphs.cpp" />
<ClCompile Include="..\src\triplet.cpp" />
<ClCompile Include="..\src\vcpkglib_helpers.cpp" />
+ <ClCompile Include="..\src\vcpkg_cmd_arguments.cpp" />
+ <ClCompile Include="..\src\vcpkg_Dependencies.cpp" />
+ <ClCompile Include="..\src\vcpkg_Environment.cpp" />
+ <ClCompile Include="..\src\vcpkg_Input.cpp" />
<ClCompile Include="..\src\vcpkg_paths.cpp" />
<ClCompile Include="..\src\vcpkg_info.cpp" />
</ItemGroup>

MODIFY
vcpkglib/vcpkglib.vcxproj.filters
vcpkglib/vcpkglib.vcxproj.filters
<ClCompile Include="..\src\metrics.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="..\src\vcpkg_Input.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\vcpkg_Environment.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\coff_file_reader.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_available_commands.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_build.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_build_external.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_cache.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_contact.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_create.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_edit.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_hash.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_help.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_import.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_install.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_integrate.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_list.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_owns.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_portsdiff.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_remove.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_search.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_update.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\commands_version.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\MachineType.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\post_build_lint.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\vcpkg_cmd_arguments.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\vcpkg_Dependencies.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\include\vcpkg.h">
<ClInclude Include="..\include\metrics.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="..\include\vcpkg_Input.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\coff_file_reader.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\filesystem_fs.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\MachineType.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\post_build_lint.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\vcpkg_cmd_arguments.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\vcpkg_Commands.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\vcpkg_Dependencies.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\vcpkg_Environment.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file

Move all sources (except main.cpp) from vcpkg.vcxproj to vcpkglib.vcxproj