'.NET 5 ClickOnce creates duplicate deployment in PublishDir
I'm using msbuild (version 17.1.0+ae57d105c, from a VS 2022 Developer Command Prompt) to publish a ClickOnce .NET 5 application to a UNC path using the commandline. As such, I'm running what amounts to
>msbuild /t:publish -p:PublishProfile=.\Properties\PublishProfiles\ClickOnceProfile.pubxml /p:PublishDir=\\some\unc\path\
As expected, this moves a lot of files to \\some\unc\path. If I did this prior to .NET 5, I would generally expect to files like
\\some\unc\path\setup.exe
\\some\unc\path\Application Files\MyApp_1_0_0_9\SomeLibrary.dll.deploy
but if I use the command above, or if I publish from Visual Studio, I also get a bunch of files in the root of PublishDir,
\\some\unc\path\SomeLibrary.dll
Given that this didn't happen in earlier versions, I'm assuming these files are redundant, and that they're just noise. But why are they created? Can I get rid of them?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
