Permalink
Browse files

Fixed #300 - Enabled NuGet package restore

  • Loading branch information...
1 parent 63e9426 commit 27a8c62e5d59214a169b0ed7d055a01c493422a7 @madskristensen committed Dec 17, 2013
Showing with 160 additions and 99,292 deletions.
  1. +6 −0 .nuget/NuGet.Config
  2. BIN .nuget/NuGet.exe
  3. +136 −0 .nuget/NuGet.targets
  4. +5 −9 EditorExtensions/WebEssentials2013.csproj
  5. +1 −0 EditorExtensions/app.config
  6. +2 −2 EditorExtensions/packages.config
  7. +7 −0 WebEssentials2013.sln
  8. +3 −0 WebEssentialsTests/WebEssentialsTests.csproj
  9. BIN packages/AjaxMin.4.67.4639.17289/AjaxMin.4.67.4639.17289.nupkg
  10. BIN packages/AjaxMin.5.2.5021.15814/AjaxMin.5.2.5021.15814.nupkg
  11. +0 −16 packages/AjaxMin.5.2.5021.15814/AjaxMin.5.2.5021.15814.nuspec
  12. BIN packages/AjaxMin.5.2.5021.15814/lib/net20/AjaxMin.dll
  13. BIN packages/AjaxMin.5.2.5021.15814/lib/net35/AjaxMin.dll
  14. BIN packages/AjaxMin.5.2.5021.15814/lib/net40/AjaxMin.dll
  15. BIN packages/AjaxMin.5.2.5021.15814/tools/net35/AjaxMin.dll
  16. +0 −38 packages/AjaxMin.5.2.5021.15814/tools/net35/AjaxMin.targets
  17. BIN packages/AjaxMin.5.2.5021.15814/tools/net35/AjaxMinTask.dll
  18. BIN packages/AjaxMin.5.2.5021.15814/tools/net40/AjaxMin.dll
  19. +0 −38 packages/AjaxMin.5.2.5021.15814/tools/net40/AjaxMin.targets
  20. BIN packages/AjaxMin.5.2.5021.15814/tools/net40/AjaxMinTask.dll
  21. BIN packages/FluentAssertions.2.1.0.0/FluentAssertions.2.1.0.0.nupkg
  22. +0 −57 packages/FluentAssertions.2.1.0.0/FluentAssertions.2.1.0.0.nuspec
  23. BIN packages/FluentAssertions.2.1.0.0/lib/net35/FluentAssertions.dll
  24. +0 −6,185 packages/FluentAssertions.2.1.0.0/lib/net35/FluentAssertions.xml
  25. BIN packages/FluentAssertions.2.1.0.0/lib/net40/FluentAssertions.dll
  26. +0 −6,305 packages/FluentAssertions.2.1.0.0/lib/net40/FluentAssertions.xml
  27. BIN packages/FluentAssertions.2.1.0.0/lib/net45/FluentAssertions.dll
  28. +0 −6,305 packages/FluentAssertions.2.1.0.0/lib/net45/FluentAssertions.xml
  29. BIN packages/FluentAssertions.2.1.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll
  30. +0 −5,934 packages/FluentAssertions.2.1.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml
  31. BIN packages/FluentAssertions.2.1.0.0/lib/sl4/FluentAssertions.Silverlight.dll
  32. +0 −5,996 packages/FluentAssertions.2.1.0.0/lib/sl4/FluentAssertions.Silverlight.xml
  33. BIN .../FluentAssertions.2.1.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll
  34. +0 −3,429 .../FluentAssertions.2.1.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml
  35. BIN packages/FluentAssertions.2.1.0.0/lib/winrt45/FluentAssertions.dll
  36. +0 −6,096 packages/FluentAssertions.2.1.0.0/lib/winrt45/FluentAssertions.xml
  37. BIN packages/MarkdownSharp.1.13.0.0/MarkdownSharp.1.13.0.0.nupkg
  38. +0 −16 packages/MarkdownSharp.1.13.0.0/MarkdownSharp.1.13.0.0.nuspec
  39. BIN packages/MarkdownSharp.1.13.0.0/lib/35/MarkdownSharp.dll
  40. +0 −433 packages/MarkdownSharp.1.13.0.0/lib/35/MarkdownSharp.xml
  41. BIN packages/Minimatch.1.0.0.0/Minimatch.1.0.0.0.nupkg
  42. +0 −17 packages/Minimatch.1.0.0.0/Minimatch.1.0.0.0.nuspec
  43. +0 −77 packages/Minimatch.1.0.0.0/lib/portable-net40+sl50+wp80+win/Minimatch.XML
  44. BIN packages/Minimatch.1.0.0.0/lib/portable-net40+sl50+wp80+win/Minimatch.dll
  45. BIN packages/Newtonsoft.Json.5.0.8/Newtonsoft.Json.5.0.8.nupkg
  46. +0 −16 packages/Newtonsoft.Json.5.0.8/Newtonsoft.Json.5.0.8.nuspec
  47. BIN packages/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.dll
  48. +0 −8,968 packages/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.xml
  49. BIN packages/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.dll
  50. +0 −8,105 packages/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.xml
  51. BIN packages/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.dll
  52. +0 −8,380 packages/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.xml
  53. BIN packages/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.dll
  54. +0 −8,380 packages/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.xml
  55. BIN packages/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.dll
  56. +0 −7,936 packages/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.xml
  57. BIN packages/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll
  58. +0 −7,532 packages/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.xml
  59. BIN packages/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll
  60. +0 −7,904 packages/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.xml
  61. +0 −93 packages/Newtonsoft.Json.5.0.8/tools/install.ps1
  62. BIN packages/WebMarkupMin.Core.0.8.11/WebMarkupMin.Core.0.8.11.nupkg
  63. +0 −27 packages/WebMarkupMin.Core.0.8.11/WebMarkupMin.Core.0.8.11.nuspec
  64. +0 −882 packages/WebMarkupMin.Core.0.8.11/content/WebMarkupMin.Configuration.xsd
  65. +0 −29 packages/WebMarkupMin.Core.0.8.11/content/app.config.transform
  66. +0 −29 packages/WebMarkupMin.Core.0.8.11/content/web.config.transform
  67. BIN packages/WebMarkupMin.Core.0.8.11/lib/net40/WebMarkupMin.Core.dll
  68. +0 −53 packages/WebMarkupMin.Core.0.8.11/readme.txt
  69. +0 −5 packages/repositories.config
View
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ </solution>
+</configuration>
View
Binary file not shown.
View
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
+
+ <!-- Determines if package restore consent is required to restore packages -->
+ <RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
+
+ <!-- Download NuGet.exe if it does not already exist -->
+ <DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
+ </PropertyGroup>
+
+ <ItemGroup Condition=" '$(PackageSources)' == '' ">
+ <!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
+ <!-- The official NuGet package source (https://www.nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
+ <!--
+ <PackageSource Include="https://www.nuget.org/api/v2/" />
+ <PackageSource Include="https://my-nuget-source/nuget/" />
+ -->
+ </ItemGroup>
+
+ <PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
+ <!-- Windows specific commands -->
+ <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
+ <!-- We need to launch nuget.exe with the mono command if we're not on windows -->
+ <NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
+ <PackagesConfig>packages.config</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <!-- NuGet command -->
+ <NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
+ <PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
+
+ <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
+ <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
+
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
+ <NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>
+
+ <PaddedSolutionDir Condition=" '$(OS)' == 'Windows_NT'">"$(SolutionDir) "</PaddedSolutionDir>
+ <PaddedSolutionDir Condition=" '$(OS)' != 'Windows_NT' ">"$(SolutionDir)"</PaddedSolutionDir>
+
+ <!-- Commands -->
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)</RestoreCommand>
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- We need to ensure packages are restored prior to assembly resolve -->
+ <BuildDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(BuildDependsOn);
+ </BuildDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ <!--
+ Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
+ This effectively acts as a lock that makes sure that the download operation will only happen once and all
+ parallel builds will have to wait for it to complete.
+ -->
+ <MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
+ </Target>
+
+ <Target Name="_DownloadNuGet">
+ <DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
+
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ Condition=" '$(OS)' != 'Windows_NT' " />
+
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true"
+ Condition=" '$(OS)' == 'Windows_NT' " />
+ </Target>
+
+ <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <OutputFilename ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Reference Include="System.Core" />
+ <Using Namespace="System" />
+ <Using Namespace="System.IO" />
+ <Using Namespace="System.Net" />
+ <Using Namespace="Microsoft.Build.Framework" />
+ <Using Namespace="Microsoft.Build.Utilities" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ OutputFilename = Path.GetFullPath(OutputFilename);
+
+ Log.LogMessage("Downloading latest version of NuGet.exe...");
+ WebClient webClient = new WebClient();
+ webClient.DownloadFile("https://www.nuget.org/nuget.exe", OutputFilename);
+
+ return true;
+ }
+ catch (Exception ex) {
+ Log.LogErrorFromException(ex);
+ return false;
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+</Project>
@@ -36,6 +36,8 @@
<StartProgram>$(DevEnvDir)\devenv.exe</StartProgram>
<StartArguments>/rootsuffix Exp</StartArguments>
<ZipPackageCompressionLevel>Normal</ZipPackageCompressionLevel>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>Source.extension.vsixmanifest</ApplicationManifest>
@@ -84,9 +86,9 @@
<CopyVsixExtensionLocation>bin/release/new folder</CopyVsixExtensionLocation>
</PropertyGroup>
<ItemGroup>
- <Reference Include="AjaxMin, Version=5.2.5021.15808, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f, processorArchitecture=MSIL">
+ <Reference Include="AjaxMin, Version=5.5.5091.22824, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\AjaxMin.5.2.5021.15814\lib\net40\AjaxMin.dll</HintPath>
+ <HintPath>..\packages\AjaxMin.5.5.5091.22839\lib\net40\AjaxMin.dll</HintPath>
</Reference>
<Reference Include="CssSorter">
<HintPath>..\CssSorter.dll</HintPath>
@@ -184,10 +186,6 @@
<Reference Include="System.Xaml" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
- <Reference Include="WebMarkupMin.Core, Version=0.8.11.0, Culture=neutral, PublicKeyToken=99472178d266584b, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\WebMarkupMin.Core.0.8.11\lib\net40\WebMarkupMin.Core.dll</HintPath>
- </Reference>
<Reference Include="WindowsBase" />
<Reference Include="ZenCoding, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
@@ -713,9 +711,6 @@
<EmbeddedResource Include="BrowserLink\Menu\MenuBrowserLink.js" />
<Content Include="Classifications\RobotsTxt\robots.txt" />
<None Include="Classifications\Markdown\Sample.md" />
- <None Include="WebMarkupMin.Configuration.xsd">
- <SubType>Designer</SubType>
- </None>
</ItemGroup>
<ItemGroup>
<VSCTCompile Include="EditorExtensions.vsct">
@@ -867,4 +862,5 @@
</Content>
</ItemGroup>
</Target>
+ <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
</Project>
@@ -6,6 +6,7 @@
</sectionGroup>
</configSections>
+
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="AjaxMin" version="5.2.5021.15814" targetFramework="net45" />
+ <package id="AjaxMin" version="5.5.5091.22839" targetFramework="net45" />
<package id="MarkdownSharp" version="1.13.0.0" targetFramework="net45" />
<package id="Minimatch" version="1.0.0.0" targetFramework="net45" />
<package id="Newtonsoft.Json" version="5.0.8" targetFramework="net45" />
- <package id="WebMarkupMin.Core" version="0.8.11" targetFramework="net45" />
+ <package id="WebMarkupMin.Core" version="0.8.13" targetFramework="net45" />
</packages>
@@ -19,6 +19,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebEssentials2013", "Editor
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebEssentialsTests", "WebEssentialsTests\WebEssentialsTests.csproj", "{E05B0E57-CF56-4513-9D24-18B6EE7C3712}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{6A26D63B-3436-438D-8F27-C42E100B2254}"
+ ProjectSection(SolutionItems) = preProject
+ .nuget\NuGet.Config = .nuget\NuGet.Config
+ .nuget\NuGet.exe = .nuget\NuGet.exe
+ .nuget\NuGet.targets = .nuget\NuGet.targets
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -16,6 +16,8 @@
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -181,6 +183,7 @@
(robocopy /mir /e /ns /nc /nfl /ndl /np /njh /njs "$(ProjectDir)fixtures" "$(TargetDir)fixtures") ^&amp; IF %ERRORLEVEL% LEQ 1 exit 0
</PostBuildEvent>
</PropertyGroup>
+ <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -1,16 +0,0 @@
-<?xml version="1.0"?>
-<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
- <metadata>
- <id>AjaxMin</id>
- <version>5.2.5021.15814</version>
- <title>Microsoft Ajax Minifier</title>
- <authors>Microsoft Corporation, Ron Logan</authors>
- <owners>Microsoft Corporation, Ron Logan</owners>
- <licenseUrl>http://ajaxmin.codeplex.com/license</licenseUrl>
- <projectUrl>http://ajaxmin.codeplex.com/</projectUrl>
- <requireLicenseAcceptance>false</requireLicenseAcceptance>
- <description>JavaScript and CSS minification Library for use in .NET applications that want to provide minification or parsing functionality.</description>
- <copyright>Copyright 2013 by Microsoft Corp. All rights reserved.</copyright>
- <tags>JavaScript CSS minification crunch parser ast ajaxmin</tags>
- </metadata>
-</package>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <!--
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMin" />
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinBundleTask" />-->
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestTask" />
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestCleanTask" />
-
- <PropertyGroup>
- <!-- if the project has a Content folder, we want that to be the root output; otherwise just dump everything relative to the project root -->
- <AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)=='' and Exists('$(ProjectDir)Content\')">$(ProjectDir)Content\</AjaxMinOutputFolder>
- <AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)==''">$(ProjectDir)</AjaxMinOutputFolder>
-
- <!-- default is to NOT treat warnings as errors -->
- <AjaxMinTreatWarningsAsErrors Condition="$(AjaxMinTreatWarningsAsErrors)==''">false</AjaxMinTreatWarningsAsErrors>
- </PropertyGroup>
-
- <ItemGroup>
- <AjaxMinManifests Include="**/*.ajaxmin"/>
- </ItemGroup>
-
- <!-- target to clean output for all ajaxmin manifest files in the project -->
- <Target Name="CleanAjaxMinManifests" AfterTargets="Clean" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).cleantrigger')">
- <Message Text="Cleaning AjaxMin Manifests" Importance="high" />
- <AjaxMinManifestCleanTask OutputFolder="$(AjaxMinOutputFolder)" Manifests="@(AjaxMinManifests)" />
- </Target>
-
- <!-- target to build all ajaxmin manifest files in the project -->
- <Target Name="BuildAjaxMinManifests" AfterTargets="Build" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).buildtrigger')">
- <Message Text="Processing AjaxMin Manifests" Importance="high" />
- <AjaxMinManifestTask ProjectDefaultSwitches="-define:$(DefineConstants) $(AjaxMinProjectDefaultSwitches)"
- Configuration="$(Configuration)"
- TreatWarningsAsErrors="$(AjaxMinTreatWarningsAsErrors)"
- InputFolder="$(ProjectDir)"
- OutputFolder="$(AjaxMinOutputFolder)"
- Manifests="@(AjaxMinManifests)" />
- </Target>
-</Project>
Binary file not shown.
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <!--
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMin" />
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinBundleTask" />-->
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestTask" />
- <UsingTask AssemblyFile="AjaxMinTask.dll" TaskName="AjaxMinManifestCleanTask" />
-
- <PropertyGroup>
- <!-- if the project has a Content folder, we want that to be the root output; otherwise just dump everything relative to the project root -->
- <AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)=='' and Exists('$(ProjectDir)Content\')">$(ProjectDir)Content\</AjaxMinOutputFolder>
- <AjaxMinOutputFolder Condition="$(AjaxMinOutputFolder)==''">$(ProjectDir)</AjaxMinOutputFolder>
-
- <!-- default is to NOT treat warnings as errors -->
- <AjaxMinTreatWarningsAsErrors Condition="$(AjaxMinTreatWarningsAsErrors)==''">false</AjaxMinTreatWarningsAsErrors>
- </PropertyGroup>
-
- <ItemGroup>
- <AjaxMinManifests Include="**/*.ajaxmin"/>
- </ItemGroup>
-
- <!-- target to clean output for all ajaxmin manifest files in the project -->
- <Target Name="CleanAjaxMinManifests" AfterTargets="Clean" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).cleantrigger')">
- <Message Text="Cleaning AjaxMin Manifests" Importance="high" />
- <AjaxMinManifestCleanTask OutputFolder="$(AjaxMinOutputFolder)" Manifests="@(AjaxMinManifests)" />
- </Target>
-
- <!-- target to build all ajaxmin manifest files in the project -->
- <Target Name="BuildAjaxMinManifests" AfterTargets="Build" Inputs="@AjaxMinManifests" Outputs="@(AjaxMinManifests->'%(FullPath).buildtrigger')">
- <Message Text="Processing AjaxMin Manifests" Importance="high" />
- <AjaxMinManifestTask ProjectDefaultSwitches="-define:$(DefineConstants) $(AjaxMinProjectDefaultSwitches)"
- Configuration="$(Configuration)"
- TreatWarningsAsErrors="$(AjaxMinTreatWarningsAsErrors)"
- InputFolder="$(ProjectDir)"
- OutputFolder="$(AjaxMinOutputFolder)"
- Manifests="@(AjaxMinManifests)" />
- </Target>
-</Project>
Oops, something went wrong.

0 comments on commit 27a8c62

Please sign in to comment.