This repository has been archived by the owner on Oct 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Setup Development Environment
Cory Thomas edited this page Mar 25, 2015
·
1 revision
Guide for setting up a development environment and building the project.
- Microsoft Visual C++ 2010
- UDT version 4.11
- NuGet (http://nuget.org)
- Download the latest UDT version 4.11 build
- Extract the UDT zip
- e.g.
C:\Users\*Username*\Documents\Visual Studio 2010\Projects\udt.sdk.4.11.win32\udt4
- Open the udt solution
- The solution and project files are in the win directory of the zip file
- Convert the solution to VS2010 as necessary
- Change the project to build a static lib. This makes deployment simpler versus a dll.
- Open udt project properties
- Select All Configurations
- Under Configuration Properties => General, set Configuration Type to Static library
- In udt.h, comment out the UDT_API definition
//#ifdef UDT_EXPORTS
// #define UDT_API __declspec(dllexport)
//#else
// #define UDT_API __declspec(dllimport)
//#endif
#define UDT_API
- Add an x64 configuration
- Pull the Udt.Net source code
git clone [email protected]:dump247/udt-net.git "C:\Users\*Username*\Documents\Visual Studio 2010\Projects\UdtNet"
- Set the path to udt in UdtProtocol.vcxproj
<PropertyGroup>
<UdtHome>..\..\udt.sdk.4.11.win32\udt4</UdtHome>
</PropertyGroup>
- Update the path to the udt.vcxproj project file in UdtProtocol.sln
- Install the NuGet dependency packages
- In the solution directory, run NuGet-Install.bat
- Due to a bug in VS2010 SP1, Win32 C++/CLI projects can not be signed without patching the CPP targets file
- See http://blogs.msdn.com/b/vcblog/archive/2011/03/11/10140139.aspx