-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of the outdated nuget.targets and replace it with a custom build file
- Loading branch information
Showing
8 changed files
with
84 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/bin/bash | ||
|
||
fw_depends nginx mono xsp | ||
|
||
wget -q -N http://nuget.org/nuget.exe -O ${TROOT}/lib/.nuget/NuGet.exe |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<PropertyGroup> | ||
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir> | ||
<Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration> | ||
<NuGetExe Condition=" '$(NuGetExe)'=='' ">packages/nuget.exe</NuGetExe> | ||
<NuGetExeDir>packages/</NuGetExeDir> | ||
<NuGetDownloadAddress Condition=" '$(NuGetDownloadAddress)'=='' ">http://nuget.org/nuget.exe</NuGetDownloadAddress> | ||
<NuGetCommand Condition=" '$(NuGetCommand)'=='' AND '$(OS)' == 'Windows_NT'">"$(NuGetExe)"</NuGetCommand> | ||
<NuGetCommand Condition=" '$(NuGetCommand)'=='' AND '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExe)"</NuGetCommand> | ||
<Properties>Configuration=$(Configuration);SolutionDir=$(SolutionDir)</Properties> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Solution Include="*.sln" /> | ||
</ItemGroup> | ||
|
||
<UsingTask TaskName="DownloadFile" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" Condition=" '$(OS)' == 'Windows_NT' "> | ||
<ParameterGroup> | ||
<Address ParameterType="System.String" Required="true"/> | ||
<OutputFilename ParameterType="System.String" Required="true" /> | ||
</ParameterGroup> | ||
<Task> | ||
<Reference Include="System" /> | ||
<Code Type="Fragment" Language="cs"> | ||
<![CDATA[ | ||
new System.Net.WebClient().DownloadFile(Address, OutputFilename); | ||
]]> | ||
</Code> | ||
</Task> | ||
</UsingTask> | ||
|
||
<Target Name="DownloadNuGet"> | ||
<MakeDir Directories="$(NuGetExeDir)" Condition=" !Exists('$(NuGetExeDir)') " /> | ||
<DownloadFile Address="$(NuGetDownloadAddress)" OutputFilename="$(NuGetExe)" Condition=" '$(OS)' == 'Windows_NT' AND !Exists('$(NuGetExe)')" /> | ||
<Exec Command="wget $(NuGetDownloadAddress) -O $(NuGetExe)" Condition=" '$(OS)' != 'Windows_NT' AND !Exists('$(NuGetExe)') " /> | ||
</Target> | ||
|
||
<Target Name="RestorePackages" DependsOnTargets="DownloadNuGet"> | ||
<Exec Command="$(NuGetCommand) restore "%(Solution.Identity)"" /> | ||
</Target> | ||
|
||
<Target Name="Clean"> | ||
<MSBuild Targets="Clean" Projects="@(Solution)" Properties="$(Properties)" /> | ||
</Target> | ||
|
||
<Target Name="Build" DependsOnTargets="RestorePackages"> | ||
<MSBuild Targets="Build" Projects="@(Solution)" Properties="$(Properties)" /> | ||
</Target> | ||
|
||
<Target Name="Rebuild" DependsOnTargets="RestorePackages"> | ||
<MSBuild Targets="Rebuild" Projects="@(Solution)" Properties="$(Properties)" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.