Проект для 4-й серии
1. Create a New Project
In your IDE of choice, simply create a new project of type “Class Library (.NET Framework)” and select version 4.7.
Edit your project properties and set the debug type to “Portable”
Here is what that looks like in some of the popular development environments:
2. Add Crestron Package
We have created NuGet Packages to make creating projects for VC-4 and 4-Series easier than ever. Once you have created your solution and your project, simply right-click on the project, and select “ Manage NuGet Packages ”
Warning:thesepackagescreatelibrariescompatibleonlywitha4-SeriesorVC-4. Theseprojectswillnotrunona3-SeriesControlSystem.
From there, browse for Crestron, and you’ll see three packages. Install the one you need:
Crestron.SimplSharp.SDK.Library This package is required to create a C# Library to be used with SIMPL+ or a Crestron C# Program. It will add references to all available Crestron SDK DLLs, and automatically create the CLZ on build.
Crestron.SimplSharp.SDK.ProgramLibrary This package is required to create a C# Library that can be used with a Crestron C# Program. It will add references to all available Crestron SDK DLLs. This package will pull in Crestron.SimplSharp.SDK.Library as a dependency.
Crestron.SimplSharp.SDK.Program This package is required to create a Crestron C# Program. It will add references to all available Crestron SDK DLLs,and automatically create the CPZ on build. This package will pull in Crestron.SimplSharp.SDK.ProgramLibrary and Crestron.SimplSharp.SDK.Library as dependencies.
Here is what those screens look like in some of the popular development environments:
Last updated