| Article | 70002856 |
| Type | HowTo |
| Product | Engine |
| Date Added | 3/19/2026 12:00:00 AM |
| Fixed | 12.0.02 (3/19/2026 12:00:00 AM) |
| Submitted by | Matt |
Summary
How can I create a ClickOnce installation with version 12
Solution
There are some changes for ClickOnce installation and the new VDF 12.x from the previous version 11.x. Some dlls are not "assembly" so they are not added by default in the output of Publish, so these must be added in the project manually.
At first download the vdAnyCPUSxS.zip from our website, unblock it and extract it in a folder in your dev. machine. It should be the same exact version as the VDF Nuget 4.x that you use. Lets assume that you extracted it in the folder c:\VDF12.0.1_SXS
Then in your project add the folders VDF_x64 and VDF_x86 and inside the later create a folder Microsoft.VC100.CRT. Add all the files that you have inside the c:\VDF12.0.1_SXS\VDF_x64, (the same for VDF_x86 & Microsoft.VC100.CRT folders) except** the vdxFilesx86.dll & vdxFilesx64.dll files in your project. Set them as "Content" and their “Copy to Output directory” property to “Copy Always” to all these files, like : image
open this image in a new browser windows to see it in detail
** the files vdxFilesx86.dll & vdxFilesx64.dll will be added to the output by the nuget as all other VDF assemblies
NOTE: You need to add the “application-name”.exe/dll.vdlic file and also to run the vdLic.exe when publishing the project, check the documentation we posted in nuget.org about this, and below:
</PropertyGroup>
<Target Name="PostPublishActions" AfterTargets="Publish">
<Exec Command=""$(VDRAWDEV)vdlic.exe" "$(PublishDir)$(targetfilename)""/>
</Target>
