OctoPack | Creates Octopus-compatible NuGet packages
kandi X-RAY | OctoPack Summary
kandi X-RAY | OctoPack Summary
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
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of OctoPack
OctoPack Key Features
OctoPack Examples and Code Snippets
Community Discussions
Trending Discussions on OctoPack
QUESTION
I have included the following in my nuspec file:
...ANSWER
Answered 2017-Aug-10 at 13:06The NuSpec file reference indicates that and
are two independent tags. You can't nest
under
Use the following pattern:
QUESTION
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:
How are people excluding analyzers from production installations especially if, for example, you are using the Publish function in Visual Studio.
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:40You need to set PrivateAssets
to All
in your PackageReference
, for example:
QUESTION
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:49Actually i think Prateek has located the cause of the issue.
The correct format of the content you shared above should be like:
QUESTION
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:44Turns out I was way overthinking this. I just edited the Jenkins file to delete them before packing. Completely forgot that bat
was an option.
QUESTION
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:53To 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.
QUESTION
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:33I 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:
- Dotnet Restore - .NET Core (dotnet) - restores NuGet packages
- Gulp (optional) - Gulp - runs gulp tasks
- Dotnet Test (optional) - .NET Core (dotnet) - runs tests in test projects
- Dotnet Build - .NET Core (dotnet) - builds the project
- Dotnet Publish - .NET Core (dotnet) - publishes project to specified output directory
- * 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%
- Octo Push - OctopusDeploy: Push packages - pushes packaged files to Octopus built-in package repository
- 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.
QUESTION
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:16In 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
QUESTION
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:40Unfortunately 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:
QUESTION
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:19In 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.
QUESTION
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:25Have 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).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install OctoPack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page