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

  • Home
  • SEARCH
  • 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 6579427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:53:48+00:00 2026-05-25T15:53:48+00:00

Scripts.xml: <UsingTask TaskName=CompressorTask AssemblyFile=Yahoo.Yui.Compressor.dll /> <PropertyGroup> <JavaScriptOutputFile Condition= ‘$(JavaScriptOutputFile)’==” >..\..\site.com\javascript\offerta.min.js</JavaScriptOutputFile> </PropertyGroup> <Target Name=ScriptTask> <ItemGroup>

  • 0

Scripts.xml:

<UsingTask
    TaskName="CompressorTask"
    AssemblyFile="Yahoo.Yui.Compressor.dll" />

<PropertyGroup>
    <JavaScriptOutputFile Condition=" '$(JavaScriptOutputFile)'=='' ">..\..\site.com\javascript\offerta.min.js</JavaScriptOutputFile>
</PropertyGroup>

<Target Name="ScriptTask">
  <ItemGroup>
    <JavaScriptFiles Include="..\..\site.com\javascript\offerta.js"/>
  </ItemGroup>
  <CompressorTask
       JavaScriptFiles="@(JavaScriptFiles)"
       ObfuscateJavaScript="True"
       PreserveAllSemicolons="True"
       DisableOptimizations="False"
       EncodingType="utf-8"
       DeleteJavaScriptFiles="false"
       LineBreakPosition="-1"
       JavaScriptOutputFile="$(JavaScriptOutputFile)"
       LoggingType="HardcoreBringItOn"
       ThreadCulture="en-us"
       IsEvalIgnored="false" />
</Target>

I run it using a bat file:

C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe Scripts.xml

pause

I’m getting:

“F:\Checkouts\Offerta\trunk\build\site.com\Scripts.xml” (default target) (1)
->
(ScriptTask target) ->
F:\Checkouts\Offerta\trunk\build\site.com\Scripts.xml(16,7): error MSB4036:
The “CompressorTask” task was not found. Check the following: 1.) The name of
the task in the project file is the same as the name of the task class. 2.) The
task class is “public” and implements the Microsoft.Build.Framework.ITask inte
rface. 3.) The task is correctly declared with in the project file,
or in the *.tasks files located in the “C:\Windows\Microsoft.NET\Framework\v2.
0.50727” directory.

What am I doing wrong? I’m using Yahoo.Yui.Compressor v1.6.0.0.zip (for .NET 3.5). Why is msbuild reporting “C:\Windows\Microsoft.NET\Framework\v2.0.50727” when I explicity run C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe?

  • 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-25T15:53:49+00:00Added an answer on May 25, 2026 at 3:53 pm

    Use Yahoo.Yui.Compressor.MsBuildTask.dll version 1.6.0.1

    Unfortunaltelly this version is available only via Nuget Library

    Details at: http://yuicompressor.codeplex.com/discussions/272802

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my Ncover task portion in my MSBuild script <UsingTask TaskName=NCoverExplorer.MSBuildTasks.NCover AssemblyFile=$(Libraries)\NCoverExplorer.MSBuildTasks.dll/> <Target
I wanted to run some Ant scripts from a build.xml in my PHP project.
I have a problem. I have 2 php scripts, one which sends xml data
I would like to be able to run ruby and perl scripts from build.xml
writing scripts for Sql Server 2005. I am registering a schema with CREATE XML
I'm relatively new to Perl, writing some XML parsing scripts. I have done two
I have two scripts: xmlsitemap.php (Google XML sitemap) sitemap.php (GUI user friendly sitemap) I
Say my javascript scripts aren't embedded in html/xml ... I want to write a
I have the following XML file: <?xml version=1.0 encoding=utf-8 ?> <scripts> <ScriptName> <name> My
I am trying to load an xml file from a helper method inside scripts

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.