Integrated development/release process and FIS3 for visual Studio/msbuild

Source: Internet
Author: User

Fis3 is a very good front-end optimization tool, powerful, in the domestic is also more popular. Visual Studio and MSBuild are needless to say. However, there is no one who wants to incorporate FIS3 into the development process of visual Studio or MSBuild. The reason is because FIS3 will change the HTML page itself, including template files, such as aspx, cshtml, PHP files and so on, but these files belong to the source file, it should not be changed. However, the publishing features of Visual Studio (publish) or Msbuild+msdeploy provide the possibility to combine FIS3 (hereinafter referred to as MS Tools). Because in these processes, the MS Tool produces intermediate files on which the FIS3 tool can be applied to optimize changes to the relevant files.

I tried according to the above ideas, the effect is good. The main difficulty is to familiarize yourself with the syntax of MSBuild, the build and publish processes of Visual studio, and some of the knowledge of Ms Web Deploy.

About Ms Web Deploy:

    1. ASP. NET WEB application Project Deployment.
    2. Web Deployment Overview for Visual Studio and ASP.

Specific details are still many, here, I introduce the effect and feelings.

    1. Default.aspx pages in an ASP. NET project open in Visual Studio:

    2. The Fis-conf.js file configured for this project :

    3. One-click Publishing in VS. You can publish to the native IIS or any remote machine with the WMSVC service installed. If it is published in this machine, it is also convenient to perform native debugging. Note that I am here to publish to this machine IIS, the receive side setting is : Http://localhost:8172/msdeploy.axd

    4. VS. Results published in the IDE

    5. VS. Results published in the IDE. View the source code for the page. As you can see, CSS files and JS files have been merged (that is, aio.css, aio.js files), but no other optimizations have been made.  

    6. In addition to publishing in the VS IDE, command-line publishing is also important. The ability to perform command-line publishing is a feature that implements continuous integration (CI).

    7. I added more Fis3 optimizations in command-line publishing, including: JS and CSS compression, image sprite. Of course, these optimizations can also be made in the IDE's release. In this figure, you see that the CSS on the page is compressed. And the sprite was made.

    8. CSS files are merged and are sprite-formatted. JS files are merged and compressed.

FIS3 and Visual Studio/msbuild integration, can not only optimize the performance of the Web site, but also improve the efficiency of developers, is a very good thing, there is a need for the company, can ask me for consulting services, contact information: http://weibo.com/u/1999451503

Thanks for reading

Integrated development/release process and FIS3 for visual Studio/msbuild

Related Article

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.