Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Including pdb file in nuget package when built from project.json?

$
0
0

Hi,

I'm creating an nuget package for an internal purpose and have configured the nuget package to be generated inside of my project.json file.

It all works great except I also need the .pdb file. I suspect I should be able to use the includeFiles but have not been able to find any examples.

Does anyone know if this can be done and how?

Thanks heaps.

"packOptions": {"owners": [ "??" ],"summary": "???","releaseNotes": "Initial Release","requireLicenseAcceptance": false,"tags": [ "???" ],"files": {"includeFiles": [ ]
    }
  },"scripts": {"postcompile": ["dotnet pack --no-build --configuration %compile:Configuration%","\"%project:Directory%\\..\\..\\tools\\nuget.exe\" push \"%project:Directory%\\bin\\%compile:Configuration%\\%project:Name%.%project:Version%.nupkg\" -source http://localhost:45116/api/v2/package"
      ]
    } 

  

"scripts": {

     

"postcompile": [

"dotnet pack --no-build --configuration %compile:Configuration%"

"\"%project:Directory%\\..\\..\\tools\\nuget.exe\" push \"%project:Directory%\\bin\\%compile:Configuration%\\%project:Name%.%project:Version%.nupkg\" -source http://localhost:45116/api/v2/package"

      ]

    }


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>