This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
techyian
committed
Apr 18, 2017
1 parent
0cc9b3f
commit 9d322f9
Showing
24 changed files
with
1,170 additions
and
219 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<!-- Mark that this target file has been loaded. --> | ||
<IsPaketRestoreTargetsFileLoaded>true</IsPaketRestoreTargetsFileLoaded> | ||
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath> | ||
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath> | ||
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath> | ||
<!-- Paket command --> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath> | ||
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand> | ||
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand> | ||
</PropertyGroup> | ||
|
||
<Target Name="PaketRestore" BeforeTargets="_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" > | ||
|
||
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" ' /> | ||
|
||
<PropertyGroup> | ||
<PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath> | ||
</PropertyGroup> | ||
|
||
<ReadLinesFromFile File="$(PaketReferencesFilePath)" > | ||
<Output TaskParameter="Lines" ItemName="PaketReferencesFileLines"/> | ||
</ReadLinesFromFile> | ||
|
||
<ItemGroup Condition=" '@(PaketReferencesFileLines)' != '' " > | ||
<PaketReferencesFileLinesInfo Include="@(PaketReferencesFileLines)" > | ||
<PackageName>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName> | ||
<PackageVersion>$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion> | ||
</PaketReferencesFileLinesInfo> | ||
<PackageReference Include="%(PaketReferencesFileLinesInfo.PackageName)"> | ||
<Version>%(PaketReferencesFileLinesInfo.PackageVersion)</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<RestoreConfigFile>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config</RestoreConfigFile> | ||
</PropertyGroup> | ||
|
||
</Target> | ||
|
||
<Target Name="PaketDisableDirectPack" AfterTargets="_IntermediatePack" BeforeTargets="GenerateNuspec" > | ||
<PropertyGroup> | ||
<ContinuePackingAfterGeneratingNuspec>false</ContinuePackingAfterGeneratingNuspec> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<Target Name="PaketOverrideNuspec" AfterTargets="GenerateNuspec" > | ||
<PropertyGroup> | ||
<PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath> | ||
<ContinuePackingAfterGeneratingNuspec>true</ContinuePackingAfterGeneratingNuspec> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<_NuspecFiles Include="$(BaseIntermediateOutputPath)*.nuspec"/> | ||
</ItemGroup> | ||
|
||
<Exec Command='$(PaketCommand) fix-nuspec file "@(_NuspecFiles)" references-file "$(PaketReferencesFilePath)" ' /> | ||
|
||
<ConvertToAbsolutePath Condition="@(_NuspecFiles) != ''" Paths="@(_NuspecFiles)"> | ||
<Output TaskParameter="AbsolutePaths" PropertyName="NuspecFileAbsolutePath" /> | ||
</ConvertToAbsolutePath> | ||
|
||
<!-- Call Pack --> | ||
<PackTask PackItem="$(PackProjectInputFile)" | ||
PackageFiles="@(_PackageFiles)" | ||
PackageFilesToExclude="@(_PackageFilesToExclude)" | ||
PackageVersion="$(PackageVersion)" | ||
PackageId="$(PackageId)" | ||
Title="$(Title)" | ||
Authors="$(Authors)" | ||
Description="$(Description)" | ||
Copyright="$(Copyright)" | ||
RequireLicenseAcceptance="$(PackageRequireLicenseAcceptance)" | ||
LicenseUrl="$(PackageLicenseUrl)" | ||
ProjectUrl="$(PackageProjectUrl)" | ||
IconUrl="$(PackageIconUrl)" | ||
ReleaseNotes="$(PackageReleaseNotes)" | ||
Tags="$(PackageTags)" | ||
TargetPathsToAssemblies="@(_TargetPathsToAssemblies->'%(FinalOutputPath)')" | ||
TargetPathsToSymbols="@(_TargetPathsToSymbols)" | ||
TargetFrameworks="@(_TargetFrameworks)" | ||
AssemblyName="$(AssemblyName)" | ||
PackageOutputPath="$(PackageOutputAbsolutePath)" | ||
IncludeSymbols="$(IncludeSymbols)" | ||
IncludeSource="$(IncludeSource)" | ||
PackageTypes="$(PackageType)" | ||
IsTool="$(IsTool)" | ||
RepositoryUrl="$(RepositoryUrl)" | ||
RepositoryType="$(RepositoryType)" | ||
SourceFiles="@(_SourceFiles->Distinct())" | ||
NoPackageAnalysis="$(NoPackageAnalysis)" | ||
MinClientVersion="$(MinClientVersion)" | ||
Serviceable="$(Serviceable)" | ||
AssemblyReferences="@(_References)" | ||
ContinuePackingAfterGeneratingNuspec="$(ContinuePackingAfterGeneratingNuspec)" | ||
NuspecOutputPath="$(BaseIntermediateOutputPath)" | ||
IncludeBuildOutput="$(IncludeBuildOutput)" | ||
BuildOutputFolder="$(BuildOutputTargetFolder)" | ||
ContentTargetFolders="$(ContentTargetFolders)" | ||
RestoreOutputPath="$(RestoreOutputAbsolutePath)" | ||
NuspecFile="$(NuspecFileAbsolutePath)" | ||
NuspecBasePath="$(NuspecBasePath)" | ||
NuspecProperties="$(NuspecProperties)"/> | ||
</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
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
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
Oops, something went wrong.