# Instructions for publishing/consuming SAIF.SAIFCode.Core nuget package
You may also need to install the following modules:
```from powershell
see https://tfs.saif.com/SAIFCodeCollection/SAIF/_git/IT.DevOps.Scripts?path=%2FSAIF-PSModules%2Finstall-SAIFModules.ps1&_a=contents&version=GBmaster
```

## 1) Nuget Project: publish nuget package to SAIFLocal feed
- Open Developer Powershell 7 prompt
- Navigate to C:\tfsgit\claims\SAIF.Core
- Run the following command 
```powershell
publish-localnuget -packageName "SAIF.SAIFCode.Core" -prerelease -pathToProject .\core\saif.core
```

## 2) Consuming Project: update nuget ref from SAIFLocal feed
- copy the update-package command from #1 and run it in Package Manager Console in the consuming project

## 3) Nuget Project: commit/push changes to git repo

## 4) Nuget Project: build/publish nuget to SAIFNuget feed
- Open Developer Powershell 7 prompt
- Run the following command
```powershell
$buildAndReleaseResult = run-pipeline -pipelineName "SAIF.SAIFCode.Core.Nuget.Build.Release" -branch (git rev-parse --abbrev-ref head) -stagesToRun build,prerelease,release -waitForCompletion -nugetPreReleaseSuffix alpha -nuget -nugetPackageName "SAIF.SAIFCode.Core" -approvalMessage "Please approve the included stage(s) ASAP"
```

## 5) Consuming Project: Update nuget ref from SAIFNuget feed
- copy the update-package command from #3 and run it in Package Manager Console in the consuming project

## Generated libraries

| Library | Purpose | Index | Documentation |
| --- | --- | --- | --- |
| SAIF.Data | Defines data entities and DTOs consumed and persisted through NHibernate. | [Index](docs/libraries/saif-data/index.md) | [Documentation](docs/libraries/saif-data/overview.md) |
| SAIF.Data.Guidewire | Provides typed HTTP clients for Guidewire ClaimCenter and ContactManager REST APIs. | [Index](docs/libraries/saif-data-guidewire/index.md) | [Documentation](docs/libraries/saif-data-guidewire/overview.md) |
| SAIF.Data.NHibernate | Maps SAIF.Data entities to relational tables and implements NHibernate repositories. | [Index](docs/libraries/saif-data-nhibernate/index.md) | [Documentation](docs/libraries/saif-data-nhibernate/overview.md) |
| SAIF.Domain | Implements domain behavior for electronic billing, claims, and policy correspondence. | [Index](docs/libraries/saif-domain/index.md) | [Documentation](docs/libraries/saif-domain/overview.md) |
| SAIF.SAIFCode.Core | Defines shared DTOs, filters, code enumerations, and service contracts. | [Index](docs/libraries/saif-saifcode-core/index.md) | [Documentation](docs/libraries/saif-saifcode-core/overview.md) |
| SAIF.Services | Implements SAIF business services and orchestrates workflows, transactions, authorization, and integrations. | [Index](docs/libraries/saif-services/index.md) | [Documentation](docs/libraries/saif-services/overview.md) |
| SAIF.Services.ClaimInfoApi.Core | Evaluates metadata-driven notification rules against caller-supplied models. | [Index](docs/libraries/saif-services-claiminfoapi-core/index.md) | [Documentation](docs/libraries/saif-services-claiminfoapi-core/overview.md) |
| SAIF.Services.Web.Proxies | Wraps outbound SOAP/WCF services and REST clients behind caller-facing proxy classes. | [Index](docs/libraries/saif-services-web-proxies/index.md) | [Documentation](docs/libraries/saif-services-web-proxies/overview.md) |

_Last updated: 2026-09-24_

Package details: [packages.md](packages.md). Full documentation: [docs/index.md](docs/index.md).

## Sources
- `SAIF.SAIFCode.Core.sln`
- `Core/SAIF.Core/SAIF.SAIFCode.Core.nuspec`
- `Data/SAIF.Data/SAIF.Data.csproj`
- `Data/SAIF.Data.Guidewire/SAIF.Data.Guidewire.csproj`
- `Data/SAIF.Data.NHibernate/SAIF.Data.NHibernate.csproj`
- `Domain/SAIF.Domain/SAIF.Domain.csproj`
- `Core/SAIF.Core/SAIF.SAIFCode.Core.csproj`
- `Services/SAIF.Services/SAIF.Services.csproj`
- `Services/SAIF.Services.ClaimInfoApi.Core/SAIF.Services.ClaimInfoApi.Core.csproj`
- `Services/SAIF.Services.Web.Proxies/SAIF.Services.Web.Proxies.csproj`
