1+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2+ <PropertyGroup >
3+ <!-- Mark that this target file has been loaded. -->
4+ <IsPaketRestoreTargetsFileLoaded >true</IsPaketRestoreTargetsFileLoaded >
5+ <PaketToolsPath >$(MSBuildThisFileDirectory)</PaketToolsPath >
6+ <MonoPath Condition =" '$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')" >/Library/Frameworks/Mono.framework/Commands/mono</MonoPath >
7+ <MonoPath Condition =" '$(MonoPath)' == ''" >mono</MonoPath >
8+ <!-- Paket command -->
9+ <PaketExePath Condition =" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')" >$(PaketRootPath)paket.exe</PaketExePath >
10+ <PaketExePath Condition =" '$(PaketExePath)' == '' " >$(PaketToolsPath)paket.exe</PaketExePath >
11+ <PaketCommand Condition =" '$(OS)' == 'Windows_NT'" >"$(PaketExePath)"</PaketCommand >
12+ <PaketCommand Condition =" '$(OS)' != 'Windows_NT' " >$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand >
13+ </PropertyGroup >
14+
15+ <Target Name =" PaketRestore" BeforeTargets =" _GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" >
16+
17+ <Exec Command =' $(PaketCommand) restore --project "$(MSBuildProjectFullPath)" ' />
18+
19+ <PropertyGroup >
20+ <PaketReferencesFilePath >$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath >
21+ </PropertyGroup >
22+
23+ <ReadLinesFromFile File =" $(PaketReferencesFilePath)" >
24+ <Output TaskParameter =" Lines" ItemName =" PaketReferencesFileLines" />
25+ </ReadLinesFromFile >
26+
27+ <ItemGroup Condition =" '@(PaketReferencesFileLines)' != '' " >
28+ <PaketReferencesFileLinesInfo Include =" @(PaketReferencesFileLines)" >
29+ <PackageName >$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0])</PackageName >
30+ <PackageVersion >$([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1])</PackageVersion >
31+ </PaketReferencesFileLinesInfo >
32+ <PackageReference Include =" %(PaketReferencesFileLinesInfo.PackageName)" >
33+ <Version >%(PaketReferencesFileLinesInfo.PackageVersion)</Version >
34+ </PackageReference >
35+ </ItemGroup >
36+
37+ <PropertyGroup >
38+ <RestoreConfigFile >$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).NuGet.Config</RestoreConfigFile >
39+ </PropertyGroup >
40+
41+ </Target >
42+
43+ <Target Name =" PaketDisableDirectPack" AfterTargets =" _IntermediatePack" BeforeTargets =" GenerateNuspec" >
44+ <PropertyGroup >
45+ <ContinuePackingAfterGeneratingNuspec >false</ContinuePackingAfterGeneratingNuspec >
46+ </PropertyGroup >
47+ </Target >
48+
49+ <Target Name =" PaketOverrideNuspec" AfterTargets =" GenerateNuspec" >
50+ <PropertyGroup >
51+ <PaketReferencesFilePath >$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath >
52+ <ContinuePackingAfterGeneratingNuspec >true</ContinuePackingAfterGeneratingNuspec >
53+ </PropertyGroup >
54+
55+ <ItemGroup >
56+ <_NuspecFiles Include =" $(BaseIntermediateOutputPath)*.nuspec" />
57+ </ItemGroup >
58+
59+ <Exec Command =' $(PaketCommand) fix-nuspec file "@(_NuspecFiles)" references-file "$(PaketReferencesFilePath)" ' />
60+
61+ <ConvertToAbsolutePath Condition =" @(_NuspecFiles) != ''" Paths =" @(_NuspecFiles)" >
62+ <Output TaskParameter =" AbsolutePaths" PropertyName =" NuspecFileAbsolutePath" />
63+ </ConvertToAbsolutePath >
64+
65+ <!-- Call Pack -->
66+ <PackTask PackItem =" $(PackProjectInputFile)"
67+ PackageFiles =" @(_PackageFiles)"
68+ PackageFilesToExclude =" @(_PackageFilesToExclude)"
69+ PackageVersion =" $(PackageVersion)"
70+ PackageId =" $(PackageId)"
71+ Title =" $(Title)"
72+ Authors =" $(Authors)"
73+ Description =" $(Description)"
74+ Copyright =" $(Copyright)"
75+ RequireLicenseAcceptance =" $(PackageRequireLicenseAcceptance)"
76+ LicenseUrl =" $(PackageLicenseUrl)"
77+ ProjectUrl =" $(PackageProjectUrl)"
78+ IconUrl =" $(PackageIconUrl)"
79+ ReleaseNotes =" $(PackageReleaseNotes)"
80+ Tags =" $(PackageTags)"
81+ TargetPathsToAssemblies =" @(_TargetPathsToAssemblies->'%(FinalOutputPath)')"
82+ TargetPathsToSymbols =" @(_TargetPathsToSymbols)"
83+ TargetFrameworks =" @(_TargetFrameworks)"
84+ AssemblyName =" $(AssemblyName)"
85+ PackageOutputPath =" $(PackageOutputAbsolutePath)"
86+ IncludeSymbols =" $(IncludeSymbols)"
87+ IncludeSource =" $(IncludeSource)"
88+ PackageTypes =" $(PackageType)"
89+ IsTool =" $(IsTool)"
90+ RepositoryUrl =" $(RepositoryUrl)"
91+ RepositoryType =" $(RepositoryType)"
92+ SourceFiles =" @(_SourceFiles->Distinct())"
93+ NoPackageAnalysis =" $(NoPackageAnalysis)"
94+ MinClientVersion =" $(MinClientVersion)"
95+ Serviceable =" $(Serviceable)"
96+ AssemblyReferences =" @(_References)"
97+ ContinuePackingAfterGeneratingNuspec =" $(ContinuePackingAfterGeneratingNuspec)"
98+ NuspecOutputPath =" $(BaseIntermediateOutputPath)"
99+ IncludeBuildOutput =" $(IncludeBuildOutput)"
100+ BuildOutputFolder =" $(BuildOutputTargetFolder)"
101+ ContentTargetFolders =" $(ContentTargetFolders)"
102+ RestoreOutputPath =" $(RestoreOutputAbsolutePath)"
103+ NuspecFile =" $(NuspecFileAbsolutePath)"
104+ NuspecBasePath =" $(NuspecBasePath)"
105+ NuspecProperties =" $(NuspecProperties)" />
106+ </Target >
107+
108+ </Project >
0 commit comments