# This file provides an example for the desired Yaml format for a .nuspec file.
# Required Metadata
id: Example.Package
version: 1.0.0
description: This is an example package.
authors:
- John Doe

# Optional Metadata
title: Example Package
license:
  content: MIT
  type: expression
projectUrl: https://example.com
iconUrl: icon.png
icon:
  src: icon.png
  target: icon.png
requireLicenseAcceptance: false
developmentDependency: true
summary: This is a summary of the example package.
releaseNotes: This is the first release of the example package.
language: en-US
tags:
- example
- tag1
- tag2
repository:
  type: git
  url: https://github.com/example/example.package
  branch: master
  commit: 0a1b2c3d

path: /root
# Content
content:
  path: /content
  files:
  - include: any/any/config.json
    buildAction: Content
    copyToOutput: "true"
    flatten: "true"

# Source Files
source:
  path: /source
  groups:
  - framework: .NETStandard2.0
    references:
    - name: System.Data
    dependencies:
    - id: Example.Dependency
      version: 1.0.0
      exclude:
      - Build
      - Analyzers
    files:
    - name: Example.Package.dll
    - name: Example.Package.pdb
    dlls:
    - name: Unity.Package
  - files:
    - name: icon.png
      target: content
  - framework: net40
    assemblies:
    - name: System.IO