You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Main benefits: - Projects can be built offline. Previously you needed internet access the first time building to download the packages. - Changes to packages like Godot.NET.Sdk can be easily tested before publishing. This was already possible but required too many manual steps. - First time builds are a bit faster, as the Sdk package doesn't need to be downloaded. In practice, the package is very small so it makes little difference. Bumped Godot.NET.Sdk to 4.0.0-dev3 in order to enable the recent changes regarding '.mono/' -> '.godot/mono/'.
51 lines
2.0 KiB
XML
51 lines
2.0 KiB
XML
<Project Sdk="Microsoft.Build.NoTargets/2.0.1">
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
<Description>MSBuild .NET Sdk for Godot projects.</Description>
|
|
<Authors>Godot Engine contributors</Authors>
|
|
|
|
<PackageId>Godot.NET.Sdk</PackageId>
|
|
<Version>4.0.0</Version>
|
|
<PackageProjectUrl>https://github.com/godotengine/godot/tree/master/modules/mono/editor/Godot.NET.Sdk</PackageProjectUrl>
|
|
<PackageType>MSBuildSdk</PackageType>
|
|
<PackageTags>MSBuildSdk</PackageTags>
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<NuspecFile>Godot.NET.Sdk.nuspec</NuspecFile>
|
|
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);SetNuSpecProperties</GenerateNuspecDependsOn>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="ReadGodotNETSdkVersion" BeforeTargets="BeforeBuild;BeforeRebuild;CoreCompile">
|
|
<PropertyGroup>
|
|
<PackageVersion>$([System.IO.File]::ReadAllText('$(ProjectDir)Godot.NET.Sdk_PackageVersion.txt').Trim())</PackageVersion>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="SetNuSpecProperties" Condition=" Exists('$(NuspecFile)') " DependsOnTargets="ReadGodotNETSdkVersion">
|
|
<PropertyGroup>
|
|
<NuspecProperties>
|
|
id=$(PackageId);
|
|
description=$(Description);
|
|
authors=$(Authors);
|
|
version=$(PackageVersion);
|
|
packagetype=$(PackageType);
|
|
tags=$(PackageTags);
|
|
projecturl=$(PackageProjectUrl)
|
|
</NuspecProperties>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="CopyNupkgToSConsOutputDir" AfterTargets="Pack">
|
|
<PropertyGroup>
|
|
<GodotSourceRootPath>$(SolutionDir)\..\..\..\..\</GodotSourceRootPath>
|
|
<GodotOutputDataDir>$(GodotSourceRootPath)\bin\GodotSharp\</GodotOutputDataDir>
|
|
</PropertyGroup>
|
|
<Copy SourceFiles="$(OutputPath)$(PackageId).$(PackageVersion).nupkg"
|
|
DestinationFolder="$(GodotOutputDataDir)Tools\nupkgs\" />
|
|
</Target>
|
|
</Project>
|