diff --git a/README.md b/README.md index 05ff637b..4ae7775f 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ cd * Download and install [CMake](https://cmake.org/download/); choose "Add CMake to the system PATH" option while installing. * Build `TDLib` with CMake as explained in [building](#building), but instead of `cmake -DCMAKE_BUILD_TYPE=Release ..` use ``` -cmake -DCMAKE_TOOLCHAIN_FILE=\scripts\buildsystems\vcpkg.cmake .. +cmake -DCMAKE_TOOLCHAIN_FILE=/scripts/buildsystems/vcpkg.cmake .. ``` To build 32-bit/64-bit `TDLib` using MSVC, you will need to additionally specify parameter `-A Win32`/`-A x64` to CMake. diff --git a/example/csharp/README.md b/example/csharp/README.md index b243861e..2542748f 100644 --- a/example/csharp/README.md +++ b/example/csharp/README.md @@ -19,7 +19,13 @@ cd cd /example/csharp mkdir build cd build -cmake -DTD_ENABLE_DOTNET=ON -DCMAKE_TOOLCHAIN_FILE=\scripts\buildsystems\vcpkg.cmake ../../.. +cmake -A Win32 -DTD_ENABLE_DOTNET=ON -DCMAKE_TOOLCHAIN_FILE=/scripts/buildsystems/vcpkg.cmake ../../.. +cmake --build . --config Release +cmake --build . --config Debug +cd .. +mkdir build64 +cd build64 +cmake -A x64 -DTD_ENABLE_DOTNET=ON -DCMAKE_TOOLCHAIN_FILE=/scripts/buildsystems/vcpkg.cmake ../../.. cmake --build . --config Release cmake --build . --config Debug ``` diff --git a/example/csharp/TdExample.csproj b/example/csharp/TdExample.csproj index ea2ad565..6a511d8f 100644 --- a/example/csharp/TdExample.csproj +++ b/example/csharp/TdExample.csproj @@ -33,6 +33,24 @@ TdExample + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + prompt + MinimumRecommendedRules.ruleset + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + prompt + MinimumRecommendedRules.ruleset + @@ -43,41 +61,57 @@ False - build\Debug\Telegram.Td.dll - build\Release\Telegram.Td.dll + build\$(Configuration)\Telegram.Td.dll + build64\$(Configuration)\Telegram.Td.dll - - - LIBEAY32.dll - PreserveNewest - - - SSLEAY32.dll - PreserveNewest - + zlibd1.dll PreserveNewest - - - LIBEAY32.dll - PreserveNewest - - - SSLEAY32.dll - PreserveNewest - + zlib1.dll PreserveNewest + + + zlibd1.dll + PreserveNewest + + + + + zlib1.dll + PreserveNewest + + + + + libcrypto-1_1.dll + PreserveNewest + + + libssl-1_1.dll + PreserveNewest + + + + + libcrypto-1_1-x64.dll + PreserveNewest + + + libssl-1_1-x64.dll + PreserveNewest + + diff --git a/example/csharp/TdExample.sln b/example/csharp/TdExample.sln index 7ebc7302..204063df 100644 --- a/example/csharp/TdExample.sln +++ b/example/csharp/TdExample.sln @@ -1,22 +1,31 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2046 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TdExample", "TdExample.csproj", "{3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 + Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Debug|x64.ActiveCfg = Debug|x64 + {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Debug|x64.Build.0 = Debug|x64 {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Debug|x86.ActiveCfg = Debug|x86 {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Debug|x86.Build.0 = Debug|x86 + {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Release|x64.ActiveCfg = Release|x64 + {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Release|x64.Build.0 = Release|x64 {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Release|x86.ActiveCfg = Release|x86 {3F9A93EA-DC26-4F8B-ACE0-131B33B00CA7}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {865856BA-F733-45DF-B35F-12607605B023} + EndGlobalSection EndGlobal