Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3486580
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:02:50+00:00 2026-05-18T11:02:50+00:00

looking to implement google closure with msbuild. i found a few solutions but struggling

  • 0

looking to implement google closure with msbuild.
i found a few solutions but struggling to get it working.
any suggestions on how i can read multiple js files in and create .min versions during build?

thanks

EDIT: with the answer from below i was able to make some alterations with a view to fully implement what was recommended but in a simple form here is what i’ve wrote:

  <ItemGroup>
    <JSMin Include="$(OutputPath)Scripts\*.js"/>
  </ItemGroup>
  <Target Name="AfterBuild" Inputs="@(JSMin)" Outputs="@(JSMin ->'%(Directory)%(Filename).min%(Extension)')">
    <Exec Command="java -jar C:\temp\compiler.jar --js %(JSMin.Identity) --js_output_file C:\temp\%(JSMin.Filename).min.js"/>
  </Target>

the output path will be changed to a dynamic path later on.

many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:02:51+00:00Added an answer on May 18, 2026 at 11:02 am

    I haven’t looked at Google Closure, but you can run any command through the <Exec> task:

    <Project DefaultTargets="build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
        <Target Name="build">
            <Exec Command="echo Hello world"/>
        </Target>
    </Project>
    

    Edit: To run a command over a set of files:

    <Project DefaultTargets="build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <ItemGroup>
        <JSMin Include="jquery.js"/>
        <JSMin Include="somethingelse.js"/>
      </ItemGroup>
    
      <Target Name="build" Inputs="@(JSMin)" Outputs="@(JSMin->'%(Directory)%(Filename).min%(Extension)')">
        <Exec Command="java -jar C:\temp\compiler.jar --js %(JSMin.Identity) --js_output_file %(JSMin.Directory)%(JSMin.Filename).min%(JSMin.Extension)"/>
      </Target>
    </Project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im looking for free easy-to-implement & ad-free alternatives to Google CSE. I found indextank,
Looking at Thrift and Google Protocol Buffers to implement some quick RPC code. Thrift
I was looking to implement such menu as http://www.fogcreek.com/FogBugz/learnmore.html (Left hand side) Can anyone
i'm looking for implement datagrid with CI, better if using ajax. Searching on Google
Is there any way I can implement Androids Calendar app into an app I
So I was looking at Google's I/O App, iosched, and I notice they implement
I am looking for a javascript library (or algorithm that I can implement) to
I am working on Google Maps and want to implement a feature where a
I'm working for a small web design firm and we are looking to implement
Looking to implement a RIA (rich internet application) either as a java (JWS) application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.