Packaging the PowerServer Web APIs

For easier distributions, the PowerServer Web APIs can be published to a local folder.

Step 1: On the development machine, open the PowerServer C# solution in SnapDevelop. Log in to SnapDevelop if required.

Click the Open C# Solution in SnapDevelop button () in the toolbar to launch the PowerServer C# solution in SnapDevelop. Or go to the location where the PowerServer C# solution is generated; and double click PowerServer_[appname].sln to launch the solution in SnapDevelop.

At startup, the solution will install/update the dependencies. Wait until the Dependencies folder completes the install/update. (Make sure the machine can connect to the NuGet site: in order to successfully install PowerServer NuGet packages).

Step 2: In the Solution Explorer, right click on the ServerAPIs project node, and select Publish.

Step 3: In the window that appears, select File System, and click Start.

Step 4: Specify a name for the profile and specify the destination folder where the files will be published, and click Next.

Step 5: Specify the publish settings or use the default settings and then click Finish.

If published as a Framework-Dependent package, the package will only include the project itself and its dependencies. Users have to install the .NET Core runtime in order to run the project.

If published as a Self-Contained package, the package will not only include the project itself and its dependencies, but also include the .NET Core runtime and libraries. Users can run it on a machine that has no .NET Core runtime installed.

Publishing begins automatically. If any error or failure is reported in the Output window, click the link provided at the end to view more details and possible solutions.

Step 6: Make sure publishing was successful.

Click the PublishURL to open the folder that contains the published files.