12345678910111213141516171819202122232425262728293031323334353637383940 |
- <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>
- <PackageVersion>$(PackageVersion_Godot_NET_Sdk)</PackageVersion>
- <RepositoryUrl>https://github.com/godotengine/godot/tree/master/modules/mono/editor/Godot.NET.Sdk</RepositoryUrl>
- <PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
- <PackageType>MSBuildSdk</PackageType>
- <PackageTags>MSBuildSdk</PackageTags>
- <PackageLicenseExpression>MIT</PackageLicenseExpression>
- <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
- <!-- Exclude target framework from the package dependencies as we don't include the build output -->
- <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
- <IncludeBuildOutput>false</IncludeBuildOutput>
- </PropertyGroup>
- <ItemGroup>
- <!-- Package Sdk\Sdk.props and Sdk\Sdk.targets file -->
- <None Include="Sdk\Sdk.props" Pack="true" PackagePath="Sdk" Visible="false" />
- <None Include="Sdk\Sdk.targets" Pack="true" PackagePath="Sdk" Visible="false" />
- <!-- SdkPackageVersions.props -->
- <None Include="..\..\..\SdkPackageVersions.props" Pack="true" PackagePath="Sdk" Visible="false" />
- </ItemGroup>
- <Target Name="CopyNupkgToSConsOutputDir" AfterTargets="Pack">
- <PropertyGroup>
- <GodotSourceRootPath>$(SolutionDir)\..\..\..\..\</GodotSourceRootPath>
- <GodotOutputDataDir>$(GodotSourceRootPath)\bin\GodotSharp\</GodotOutputDataDir>
- </PropertyGroup>
- <Copy SourceFiles="$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(GodotOutputDataDir)Tools\nupkgs\" />
- </Target>
- </Project>
|