2022-02-28 04:57:53 +08:00
|
|
|
<Project>
|
|
|
|
<PropertyGroup>
|
|
|
|
<_HasNuGetPackage Condition=" '$(_HasNuGetPackage)' == '' And '$(PackageId)' != '' And '$(GeneratePackageOnBuild.ToLower())' == 'true' ">true</_HasNuGetPackage>
|
|
|
|
<_HasNuGetPackage Condition=" '$(_HasNuGetPackage)' == '' ">false</_HasNuGetPackage>
|
2022-10-08 18:26:04 +08:00
|
|
|
<_HasSymbolsNuGetPackage Condition=" '$(_HasSymbolsNuGetPackage)' == '' And '$(PackageId)' != '' And '$(IncludeSymbols.ToLower())' == 'true' And '$(SymbolPackageFormat)' == 'snupkg' ">true</_HasSymbolsNuGetPackage>
|
|
|
|
<_HasSymbolsNuGetPackage Condition=" '$(_HasSymbolsNuGetPackage)' == '' ">false</_HasSymbolsNuGetPackage>
|
2022-02-28 04:57:53 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CopyNupkgToSConsOutputDir" AfterTargets="Pack"
|
|
|
|
Condition=" '$(_HasNuGetPackage)' == 'true' ">
|
|
|
|
<PropertyGroup>
|
|
|
|
<GodotSourceRootPath>$(MSBuildThisFileDirectory)\..\..\</GodotSourceRootPath>
|
|
|
|
<GodotOutputDataDir>$(GodotSourceRootPath)\bin\GodotSharp\</GodotOutputDataDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
<Copy SourceFiles="$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(GodotOutputDataDir)Tools\nupkgs\" />
|
2022-10-08 18:26:04 +08:00
|
|
|
<Copy Condition=" '$(_HasSymbolsNuGetPackage)' == 'true' " SourceFiles="$(PackageOutputPath)$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$(GodotOutputDataDir)Tools\nupkgs\" />
|
2022-02-28 04:57:53 +08:00
|
|
|
</Target>
|
|
|
|
<Target Name="PushNuGetPackagesToLocalSource" BeforeTargets="Pack"
|
|
|
|
Condition=" '$(_HasNuGetPackage)' == 'true' And '$(PushNuGetToLocalSource)' != '' ">
|
|
|
|
<Copy SourceFiles="$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(PushNuGetToLocalSource)\" />
|
2022-10-08 18:26:04 +08:00
|
|
|
<Copy Condition=" '$(_HasSymbolsNuGetPackage)' == 'true' " SourceFiles="$(PackageOutputPath)$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$(PushNuGetToLocalSource)\" />
|
2022-02-28 04:57:53 +08:00
|
|
|
</Target>
|
|
|
|
<Target Name="ClearNuGetLocalPackageCache" BeforeTargets="Pack"
|
|
|
|
Condition=" '$(_HasNuGetPackage)' == 'true' And '$(ClearNuGetLocalCache.ToLower())' == 'true' ">
|
2022-10-08 18:26:04 +08:00
|
|
|
<RemoveDir Directories="$(NugetPackageRoot)/$(PackageId.ToLower())/$(PackageVersion)" />
|
2022-02-28 04:57:53 +08:00
|
|
|
</Target>
|
|
|
|
</Project>
|