mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Restoring tooling packages before msbuild is invoked
This commit is contained in:
@@ -27,7 +27,10 @@ SET project=%2
|
|||||||
IF "%target%" == "" SET target=Build
|
IF "%target%" == "" SET target=Build
|
||||||
IF "%project%" =="" SET project=Orchard.proj
|
IF "%project%" =="" SET project=Orchard.proj
|
||||||
|
|
||||||
nuget.exe restore .\src\Orchard.sln
|
lib\nuget\nuget.exe restore .\src\Orchard.sln
|
||||||
|
lib\nuget\nuget.exe install SlowCheetah -e -o build\libs
|
||||||
|
lib\nuget\nuget.exe install MSBuildTasks -e -o build\libs
|
||||||
|
|
||||||
msbuild /t:%target% %project%
|
msbuild /t:%target% %project%
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Import Project="$(BuildFolder)\libs\MSBuildTasks\tools\MSBuild.Community.Tasks.Targets"/>
|
<Import Project="$(BuildFolder)\libs\MSBuildTasks\tools\MSBuild.Community.Tasks.Targets"/>
|
||||||
|
<Import Project="$(BuildFolder)\libs\SlowCheetah\tools\SlowCheetah.Transforms.targets"/>
|
||||||
|
|
||||||
<!-- Coordinating Targets -->
|
<!-- Coordinating Targets -->
|
||||||
|
|
||||||
@@ -111,12 +112,6 @@
|
|||||||
<RemoveDir Directories="$(ArtifactsFolder)" />
|
<RemoveDir Directories="$(ArtifactsFolder)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!-- Restore necessary tooling -->
|
|
||||||
<Target Name="RestoreTooling">
|
|
||||||
<Exec Command="$(LibFolder)\nuget\nuget.exe install SlowCheetah -e -o $(BuildFolder)\libs" WorkingDirectory="$(MSBuildProjectDirectory)"/>
|
|
||||||
<Exec Command="$(LibFolder)\nuget\nuget.exe install MSBuildTasks -e -o $(BuildFolder)\libs" WorkingDirectory="$(MSBuildProjectDirectory)"/>
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Target Name="Compile" DependsOnTargets="RestoreTooling">
|
<Target Name="Compile" DependsOnTargets="RestoreTooling">
|
||||||
<!-- Compile to "OutputFolder" -->
|
<!-- Compile to "OutputFolder" -->
|
||||||
<MSBuild
|
<MSBuild
|
||||||
|
|||||||
Reference in New Issue
Block a user