You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ReadMe.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,11 @@ This will eliminate the prompt that asks the user if they want to download and i
10
10
The installation instructions below are intended to be used when publishing your ClickOnce app from Visual Studio.
11
11
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/).
12
12
13
-
### .NET Framework Project Installation
13
+
### .NET Framework Project and Packages.config Installation
14
14
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.
16
18
17
19

@@ -21,9 +23,10 @@ If you are using a .NET Framework project, simply install the [AutoUpdateProject
21
23
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.
22
24
It also update's the project file to add a post-build event to run the PowerShell script.
.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.
27
30
28
31
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.
0 commit comments