Use ClickOnce to locally package and release the WPF application, clickoncewpf

Source: Internet
Author: User

Use ClickOnce to locally package and release the WPF application, clickoncewpf

Environment:

1) VS 2015 Windows10 x64. net framework 4.5.2

Key points:

1) The installation mode and settings can be used offline.

2) Select the installation location for the required system components and download the required system components at the same location as the application.

3) because the installation environment of the installation package may not have the. net framework4.5.2 environment, You Need To package. net framework 4.5.2 as follows:

.

Export to C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452 directory. If the DotNetFX452 directory does not exist, create the directory. 32-bit System

The directory is C: \ Program Files \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452.

C.copy ndp452-kb2901167-x86-x64-allos-chs.exe to the C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452 \ zh-Hans directory. 32-bit System

Is the C: \ Program Files \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452 \ zh-Hans directory.

4) after completing the preceding steps, you can release the SDK successfully.

 

Package custom Resources

In general, we need to package some custom resources to the installation package, such as the default configuration file and images. The procedure is as follows:

1) First, add resources to the project;

2) copy the resource attribute to the output directory to always copy, and change the generated operation to the content;

3) Go to the release page of the Project Properties and click the application file. The resource is automatically included in the list.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.