Open cilerler opened 4 years ago
@sujitnayak, what's the best venue for this question?
For a C# project referencing the Microsoft.ClearScript package (version 7.1.0) I don't see any difference in ClickOnce publishing output between 4.7.2 and 4.8. The following 4 ClearScript files get published for both:
ClearScript.Core.dll.deploy ClearScript.V8.dll.deploy ClearScript.Windows.Core.dll.deploy ClearScript.Windows.dll.deploy
I upgraded a project from .Net Framework 4.7.1 to .Net Framework 4.8, and ClickOnce stopped working. It deploys, but it is no longer generating all of the files, and it is no longer respecting the path of the content files. I appreciate any idea you may have to fix this issue, thanks in advance.
Here is the side by side comparison
Sample repository to reproduce
Here is a link for sample repositories.
Initial steps
DeveloperCMD
orDeveloper Powershell
cd ~\Source\github\cilerler\issue.microsoft_msbuild_5485
ProjectReference method
MSBuild app.xml -p:BuildId=1
to generate initial output. It will produce a publish folder at.\artifacts\publish
.PackageReference method
Run the command
MSBuild library.xml -p:BuildId=1
to generate version 0.0.0.1 of the NUPKG file. It will place it in the folder at.\artifacts\packages
which project is set up to look for as a local NuGet service.Change the snippet below
with the snippet below
in ConsoleApp1.csproj
ClassLibrary.csproj
NuSpec file
Side notes
~\.nuget\packages\classlibrary1
before you build the ConsoleApp1.csproj each time. (library.xml takes care of it, you only have to do it manually if you are using VS directly)