Skip to content
Snippets Groups Projects
Andrew Reynolds's avatar
areynold authored
202a03d0
History

API Data Transfer Objects

This project contains data transfer objects (complex model classes) corresponding to the Beckman Comms API output.

The DTO project should be repackaged and published with each update to the Api.DataTransferObjects assembly.

NuGet Packaging Instructions

  1. Install NuGet Package Explorer.
  2. Open Api.DataTransferObjects.nuspec in NuGet Package Explorer.
    • Expand the lib tree in the Package Contents pane.
  3. Open the Api.DataTransferObjects\bin directory in file explorer.
  4. In Visual Studio, clean the solution in both Debug and Release modes.
  5. In Visual Studio, build the solution in both Debug and Release modes.
  6. Drag the .dll, .pdb, and .xml objects from the Debug and Release folders in file explore to their respective directories in the NuGet File Explorer Package Contents pane.
  7. In the Package Metadata pane of NuGet Package Explorer, click the icon to edit package metadata.
    • Increment the Version field using semantic versioning.
    • Summarize version changes in the Release Notes field.
    • Update package dependencies if needed.
  8. Save Metadata (File > Save Metadata As...) Api.DataTransferObjects.nuspec in the Api.DataTransferObjects project folder and commit to version control.
  9. Save package (File > Save As...) G:\NuGetFeed\BeckmanComms.Api.DataTransferObjects.{version}.

Resources

Using the NuGet Package

  1. In Visual Studio, open your NuGet package sources config (Tools > Options > NuGet Package Manager > Package Sources).
  2. Click the + icon to add a new source with default settings.
    • In the Name field, give the feed a meaningful name (e.g., "Beckman Internal Feed").
    • Use the ... icon next to the Source field to browse to G:\NuGetFeed.
  3. Click Update.
  4. Click OK.
  5. Search and install NuGet packages as usual.