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
- Install NuGet Package Explorer.
- Open
Api.DataTransferObjects.nuspec
in NuGet Package Explorer.- Expand the lib tree in the Package Contents pane.
- Open the
Api.DataTransferObjects\bin
directory in file explorer. - In Visual Studio, clean the solution in both Debug and Release modes.
- In Visual Studio, build the solution in both Debug and Release modes.
- 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. - 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.
- Save Metadata (File > Save Metadata As...)
Api.DataTransferObjects.nuspec
in the Api.DataTransferObjects project folder and commit to version control. - Save package (File > Save As...)
G:\NuGetFeed\BeckmanComms.Api.DataTransferObjects.{version}
.
Resources
- How to host your own NuGet Server and Package Feed
- Publish your .Net library as a NuGet package
- Creating a local NuGet repository with dependencies bundles
Using the NuGet Package
- In Visual Studio, open your NuGet package sources config (Tools > Options > NuGet Package Manager > Package Sources).
- 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
.
- Click Update.
- Click OK.
- Search and install NuGet packages as usual.