OctoPack | Creates Octopus-compatible NuGet packages

 by   OctopusDeploy C# Version: 3.6.4 License: Non-SPDX

kandi X-RAY | OctoPack Summary

kandi X-RAY | OctoPack Summary

OctoPack is a C# library. OctoPack has no bugs, it has no vulnerabilities and it has low support. However OctoPack has a Non-SPDX License. You can download it from GitHub.

OctoPack is in maintenance and new features are not being actively added to it. If you are planing on sending a pull request, please see our Contribution guide. If you have an idea or a feature request, and it is directly related to this product in this repository, clear out this text and create an issue. Otherwise, please post it to our UserVoice site so others can vote for it.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              OctoPack has a low active ecosystem.
              It has 183 star(s) with 98 fork(s). There are 42 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              OctoPack has no issues reported. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of OctoPack is 3.6.4

            kandi-Quality Quality

              OctoPack has 0 bugs and 0 code smells.

            kandi-Security Security

              OctoPack has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              OctoPack code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              OctoPack has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              OctoPack releases are available to install and integrate.
              OctoPack saves you 12107 person hours of effort in developing the same functionality from scratch.
              It has 24430 lines of code, 0 functions and 244 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of OctoPack
            Get all kandi verified functions for this library.

            OctoPack Key Features

            No Key Features are available at this moment for OctoPack.

            OctoPack Examples and Code Snippets

            No Code Snippets are available at this moment for OctoPack.

            Community Discussions

            QUESTION

            nuspec contentFiles element invalid in metadata
            Asked 2020-Feb-14 at 11:14

            I have included the following in my nuspec file:

            ...

            ANSWER

            Answered 2017-Aug-10 at 13:06

            The NuSpec file reference indicates that and are two independent tags. You can't nest under

            Use the following pattern:

            Source https://stackoverflow.com/questions/45608824

            QUESTION

            Excluding roslyn analyzer DLLs from production deployment
            Asked 2019-Oct-21 at 08:40

            With the introduction of Roslyn Analyzers, analyzers (and any dependencies) are now added to your Visual Studio project - one analyzer I added included 64 dependant packages. These DLLs are then included in the primary output of the project. Some of these DLLs will also be used by the project, but many will just be used by the analyzers.

            So if I created a deployment package using the Publish functionality (for a web site), or use some other build tool (e.g. OctoPack), all files (including all analyzers) from the primary output are included. My view is that you should only deploy code that is absolutely essential (i.e. minimize the attack surface).

            A couple of questions:

            1. How are people excluding analyzers from production installations especially if, for example, you are using the Publish function in Visual Studio.

            2. If you build a install package manually (e.g. using WIX), how do you determine which DLLs to exclude from your project.

            ...

            ANSWER

            Answered 2019-Oct-21 at 08:40

            You need to set PrivateAssets to All in your PackageReference, for example:

            Source https://stackoverflow.com/questions/58199098

            QUESTION

            .NET Framework 4.7.2 Upgrade - The project file could not be loaded
            Asked 2019-Jul-09 at 10:49

            I just went through every project in the solution and upgraded from .NET Framework 4.6.1 => 4.7.2 and only one project cannot be loaded. When I try to reload the project, it throws this error:

            ...

            ANSWER

            Answered 2019-Jul-09 at 10:49

            Actually i think Prateek has located the cause of the issue.

            The correct format of the content you shared above should be like:

            Source https://stackoverflow.com/questions/56909284

            QUESTION

            How to exclude directory and files from NuGet package built with Octopack via Jenkins?
            Asked 2019-Jun-20 at 22:44

            I have a windows service that I need to pack into a nuget package with OctoPack, but I have to exclude a directory called "Config" and a few other config files (these are instance specific and this will be deployed to multiple instances.) However the files are always included no matter what I put in the nuspec file.

            Project directory:

            ...

            ANSWER

            Answered 2019-Jun-20 at 22:44

            Turns out I was way overthinking this. I just edited the Jenkins file to delete them before packing. Completely forgot that bat was an option.

            Source https://stackoverflow.com/questions/56691339

            QUESTION

            TeamCity/Octopus Deploy Web App package issue
            Asked 2018-Oct-04 at 09:53

            I have a WebApp that I am trying to deploy to Azure. My stack is:

            TeamCity 9.1.6 Octopus 4.0.7

            I had been having a problem targeting the Staging slot which I can now do. However the Nuget Package I get from TeamCity contains two extra directories above app_data which is the top level I need to deploy. To get over the Staging deployment problem I have used a different template (Deploy an Azure Web App) than the one that was being used (DeployAzureWebApp). The first one had pre/deploy/post scripts in place in which I think pre was pulling out the app-data directory and ignoring the rest.

            I need to replicate this but the template I am now using does not appear to allow scripts. I have read a little about OctoPack and wonder if there is a step I can include that will reformat the package for me or if I should go back to team city and get it to create the package as required.

            ...

            ANSWER

            Answered 2018-Oct-04 at 09:53

            To fix this issue all I needed to do was to enable scripts from the "Configure Features" button. Then I was able to have a pre-deploy script alter the extraced package contents before they were deployed.

            Source https://stackoverflow.com/questions/52624176

            QUESTION

            Create .nupkg with TeamCity for .NET Core 2.0
            Asked 2018-Sep-06 at 14:20

            I am trying to use TeamCity and Octopus Deploy for a CI/CD process of a solution built on .NET Core 2.0. I am having trouble with configuring the build steps in teamcity correctly, as I do not get any packages created. I am using the .NET Core Plugin for TeamCity with the corresponding steps:

            • 'dotnet restore'
            • 'dotnet build'
            • 'dotnet pack'
            • 'dotnet publish'

            I also include a 'OctopusDeploy Package' step, but as there is no packages produced, so this step does nothing.

            The poject does not contain any .json files for the project (only some config files), but .csproj files. I am new to this whole CI/CD process, but I have successfully implemented it for a .NET Framework 4.6.1 solution using octopack.

            Any idea on how I can solve this? Any feedback is greatly appreciated.

            ...

            ANSWER

            Answered 2017-Sep-06 at 07:33

            I have managed to get it working with packaging into *.zip package files with octo.exe tool.

            So I have following TC build steps to build release in Octopus:

            1. Dotnet Restore - .NET Core (dotnet) - restores NuGet packages
            2. Gulp (optional) - Gulp - runs gulp tasks
            3. Dotnet Test (optional) - .NET Core (dotnet) - runs tests in test projects
            4. Dotnet Build - .NET Core (dotnet) - builds the project
            5. Dotnet Publish - .NET Core (dotnet) - publishes project to specified output directory
            6. * Octo Pack - Command Line - executes 'octo.exe' command line tool with the following command octo pack --id %PackId% --version %PackVersion% --basepath %PackDirectoryPath% --format zip --outfolder %ArtifactsDirectoryPath%
            7. Octo Push - OctopusDeploy: Push packages - pushes packaged files to Octopus built-in package repository
            8. Octo Create Release - OctopusDeploy: Create release - creates release in Octopus with desired packages included in it

            * Obviously you should install octo.exe tool on TC agent server and add it to PATH variable to be able calling it from TC build.

            Source https://stackoverflow.com/questions/46068902

            QUESTION

            Create NuGet package from folder
            Asked 2018-Aug-13 at 11:16

            I need to package an Azure function app that we've built in TeamCity as a Nuget package for deployment via Octopus Deploy. Standard practice would be to use MSBuild and OctoPack but with Azure Functions this will not work as the function.json files are created after the build is complete and they would therefore not be included in any package that OctoPack creates.

            So I need to build first and then create a package from the \bin\Release\net471 folder. Would be grateful to hear peoples opinions on the best way to acheive this?

            ...

            ANSWER

            Answered 2018-Aug-13 at 11:16

            In the end I went with octo.exe using a start directory of \bin\Release\net471 which saved me having to create a nuspec file as I would have had to if using the NuGet CLI or dotnet pack

            Source https://stackoverflow.com/questions/51139574

            QUESTION

            Jenkins build warnings "source file does not exist" with OctoPack and ReadyRoll
            Asked 2018-Apr-10 at 22:40

            I'm trying to set up a Jenkins build project with ReadyRoll. Mostly it is working but I'm getting warnings that concern me:

            ...

            ANSWER

            Answered 2018-Apr-10 at 22:40

            Unfortunately this is a known issue with ReadyRoll's integration with OctoPack, however the warnings are extraneous and can be safely ignored.

            To suppress the warnings, add the following to your MSBuild parameters:

            Source https://stackoverflow.com/questions/48157827

            QUESTION

            Explicitly set the order of build targets defined in NuGet packages
            Asked 2018-Apr-10 at 15:19

            I have a Visual Studio 2017 project for building an Azure Function App. This project contains (amongst others) two NuGet packages - Microsoft.NET.Sdk.Functions and OctoPack. The packages are referenced in this order by the .csproj file for the Project in question.

            The Microsoft.NET.Sdk.Functions package contains the target _GenerateFunctionsPostBuild -

            ...

            ANSWER

            Answered 2018-Apr-10 at 15:19

            In lieu of a answer, I've come up with a workaround. Instead of using OctoPack, I'm manually generating the NuGet package after the build has completed.

            In the NuSpec file, I've added a couple of tokens for %Configuration% and %Version% so that I can choose the files to package based on the configuration, and obviously customise the version.

            Here's what I'm doing - obviously I'm making $version before these lines.

            Source https://stackoverflow.com/questions/49734107

            QUESTION

            OctoPack not populating placeholders in nuspec file
            Asked 2018-Mar-08 at 11:08

            I have a solution with many projects, about a dozen of which have Octopack installed and packages are being produced correctly when TeamCity runs msbuild /p:RunOctoPack=true /p:OctoPackEnforceAddingFiles=true. As you can probably tell from the p:/OctoPackEnforceAddingFiles flag, each project with Octopack installed also has a nuspec file.

            The problem we're having is that Octopack is not honouring the nuspec placeholders as specified at https://docs.microsoft.com/en-gb/nuget/reference/nuspec#replacement-tokens. The one we want to use right now is $id$ which should equal the assembly name of the project being packaged. Instead, when we run Octpack, that $id$ token is empty.

            I can see at https://octopus.com/docs/packaging-applications/creating-packages/nuget-packages/using-octopack#UsingOctoPack-Replacementtokens that Octopack allows one to manually override these tokens, but that doesn't help me since Octopack is run on the solution, but I need the name of the project that is being packaged.

            What can I do to get around this issue? At the moment we essentially have the project name hardcoded in the nuspec files, but this is becoming brittle and unwieldy and we'd like to fix it.

            ...

            ANSWER

            Answered 2018-Mar-08 at 10:25

            Have you tried not providing the $id$ section at all in NuSpec? Octopack should try and generate it (it knows what it is being applied to)?

            Alternative could be to use the pre-build event with the $(ProjectName) macro to update the relevant nuspecs. In your case, depending on your build process, potentially sticking to a solution wide pre-build process to update all nuspec's.

            P.S. I personally stepped away from using Octopack and currently employ Fake (F# Make).

            Source https://stackoverflow.com/questions/49154721

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install OctoPack

            You can download it from GitHub.

            Support

            Refer to our Octopus Deploy documentation page.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/OctopusDeploy/OctoPack.git

          • CLI

            gh repo clone OctopusDeploy/OctoPack

          • sshUrl

            git@github.com:OctopusDeploy/OctoPack.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link