Search code examples
asp.net-corenexus

how do I store aspnet core app in Nexus Repository


I have installed Nexus Repository in Local server and successfully uploaded nupkg files (dependencies). Now I'm trying to save my build (asp net core app buid dlls) in Nexus respo(Nexus hosted Repo type) and I'm unable to do it. Instead of storing asp net core build dlls directly in Nexus, do I have any workarounds.


Solution

  • I have created a "row" type nuget in the nexus and uploaded zipped file in there which solved the issue. Here are the steps I have been taken.

    1. publish project dotnet publish -c Release -o
    2. zip result winrar a -afzip myzip.zip
    3. upload zip file to the Nexus curl --upload-file myzip.zip -u admin:admin123 -v http://172.99.99.99:8081/repository/nuget-release/
    4. Done !!!