Skip to content

Commit 7cff22d

Browse files
committed
docs: Update docs to mention that PackageReference NuGet package management format needs to manually install the script as well
1 parent 0d9440e commit 7cff22d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ReadMe.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ This will eliminate the prompt that asks the user if they want to download and i
1010
The installation instructions below are intended to be used when publishing your ClickOnce app from Visual Studio.
1111
If you are looking to publish your ClickOnce app from a CI/CD pipeline, check out [this blog post](https://blog.danskingdom.com/continuously-deploy-your-clickonce-application-from-your-build-server/).
1212

13-
### .NET Framework Project Installation
13+
### .NET Framework Project and Packages.config Installation
1414

15-
If you are using a .NET Framework project, simply install the [AutoUpdateProjectsMinimumRequiredClickOnceVersion NuGet package](https://nuget.org/packages/AutoUpdateProjectsMinimumRequiredClickOnceVersion) to your project, and it will automatically handle all of the installation for you.
15+
If you are using a .NET Framework project, as well as the `packages.config` package management format, simply install the [AutoUpdateProjectsMinimumRequiredClickOnceVersion NuGet package](https://nuget.org/packages/AutoUpdateProjectsMinimumRequiredClickOnceVersion) to your project, and it will automatically handle all of the installation for you.
16+
17+
> NOTE: If you are using the PackageReference NuGet package management format, you will need to follow the manual installation instructions in the following section below.
1618
1719
![Navigate to Manage NuGet Packages](docs/Images/NavigateToManageNugetPackages.png)
1820
![Install package window](docs/Images/InstallPackageWindow.png)
@@ -21,9 +23,10 @@ If you are using a .NET Framework project, simply install the [AutoUpdateProject
2123
As you can see in the last screenshot above, the NuGet package will add a `PostBuildScripts` folder to your project that contains the AutoUpdateProjectsMinimumRequiredClickOnceVersion.ps1 PowerShell script that is ran after each build.
2224
It also update's the project file to add a post-build event to run the PowerShell script.
2325

24-
### .NET Core Project Installation (e.g. .NET Core 3.1, .NET 5, .NET 6, etc.)
26+
### .NET Core Project / PackageReference Installation (e.g. .NET Core 3.1, .NET 5, .NET 6, etc.)
2527

26-
.NET Core projects do not support NuGet packages running scripts during installation, so it cannot automatically add the required post-build event to the project.
28+
.NET Core projects use the PackageReference NuGet package management format, where NuGet package references are stored directly in the project file instead of a separate `packages.config` file.
29+
Unfortunately the PackageReference format does not support NuGet packages running scripts during installation, so it cannot automatically add the required post-build event to the project.
2730

2831
Instead of using the NuGet package, you will instead need to manually add the PowerShell script to your project, and add the post-build event to the project file.
2932
The steps to do this are:

0 commit comments

Comments
 (0)