MSBuild.PublishNuget.Target 5.0.124

Requires NuGet 2.5 or higher.

dotnet add package MSBuild.PublishNuget.Target --version 5.0.124                
NuGet\Install-Package MSBuild.PublishNuget.Target -Version 5.0.124                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MSBuild.PublishNuget.Target" Version="5.0.124" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MSBuild.PublishNuget.Target --version 5.0.124                
#r "nuget: MSBuild.PublishNuget.Target, 5.0.124"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MSBuild.PublishNuget.Target as a Cake Addin
#addin nuget:?package=MSBuild.PublishNuget.Target&version=5.0.124

// Install MSBuild.PublishNuget.Target as a Cake Tool
#tool nuget:?package=MSBuild.PublishNuget.Target&version=5.0.124                

MSBuild.PublishNuget.Target

Wakatime Build Status NuGet Version NuGet Downloads CodeFactor

🎯⚙️ MSBuild.PublishNuget.Target is a NuGet package that automates the process of packing and publishing your .NET Framework project as a NuGet package to a private NuGet server.

[!Important]

  • This package is designed for .NET Framework projects and does not support .NET Core or newer frameworks.
  • It requires the nuget.exe executable to be available in your system's PATH.

🚀 Features

  • Automatically generates .nupkg files during the build process.
  • Publishes the generated package to a specified private NuGet feed.
  • Configurable options for package directory, referenced projects, and more.

📦 Installation

Install the package via NuGet Package Manager Console:

Install-Package MSBuild.PublishNuget.Target

Or visit the NuGet package page for more information.


🛠️ Configuration Instructions

Prerequisites

  1. Ensure the nuget.exe executable is installed and available in your system's PATH.
    • Open a command prompt and type nuget help. If the version information is displayed, you're ready to go.
    • If nuget.exe is not installed, download the latest version from the NuGet Downloads Page.

Setup

  1. Add the NuGet package to your project.

  2. Open your .csproj file and add the following <PropertyGroup> configuration:

    <PropertyGroup>
        <PackageAPIKey>{{YOUR PRIVATE NUGET FEED KEY}}</PackageAPIKey>
        <PackageServer>{{YOUR PRIVATE NUGET FEED URL}}</PackageServer>
        <PackageDir>{{DIRECTORY TO GENERATE THE .NUPKG}}</PackageDir>
        <PackageIncludeReferencedProjects>true</PackageIncludeReferencedProjects>
    </PropertyGroup>
    

    Replace the placeholders with the following:

    • PackageAPIKey: Your private NuGet feed API key.
    • PackageServer: The URL of your private NuGet feed.
    • PackageDir: Directory where the .nupkg file will be generated.
    • PackageIncludeReferencedProjects: Set to true to include referenced projects, or false to exclude them (defaults to false if omitted).
  3. Save the .csproj file.

  4. In Visual Studio, set the current build configuration to Release.

  5. Build the project.


🎉 Example Workflow

  1. Install the NuGet package and configure your .csproj file as described.
  2. Build your project in Release mode.
  3. The generated .nupkg file will be published to your private NuGet feed.

🔗 Resources


🧩 Contributing

Contributions are welcome!
Feel free to submit issues, feature requests, or pull requests to improve this project.


📄 License

This project is licensed under the MIT License.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.124 63 11/17/2024
5.0.121 56 11/17/2024
5.0.115 61 11/17/2024
5.0.110 65 11/17/2024
5.0.103 60 11/17/2024
5.0.98 62 11/17/2024
5.0.95 61 11/17/2024
5.0.92 65 11/17/2024
5.0.87 63 11/16/2024
5.0.78 65 11/16/2024
5.0.67 67 11/16/2024
5.0.58 78 10/28/2024
5.0.55 254 8/26/2024
5.0.52 110 8/26/2024
5.0.46 250 6/19/2024
5.0.45 113 4/22/2024
5.0.33 265 12/14/2023
5.0.27 829 11/9/2023
5.0.22 275 9/23/2023
5.0.17 254 9/23/2023
5.0.14 240 9/20/2023
5.0.11 627 7/24/2023
5.0.8 226 7/19/2023
5.0.5 190 7/17/2023
5.0.2 414 6/30/2023
4.0.62 502 6/6/2023
4.0.43 539 5/4/2023
4.0.42 212 5/3/2023
4.0.37 413 4/4/2023
4.0.32 304 4/3/2023
4.0.22 665 1/24/2023
4.0.21 1,072 9/13/2022
3.0.36 511 9/13/2022
3.0.31 464 9/13/2022
3.0.26 852 7/26/2020
3.0.25 544 6/27/2020
3.0.20 510 6/27/2020
3.0.16 548 6/27/2020