Godot.NET.Sdk.csproj 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <Project Sdk="Microsoft.Build.NoTargets/2.0.1">
  2. <PropertyGroup>
  3. <TargetFramework>netstandard2.0</TargetFramework>
  4. <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
  5. <Description>MSBuild .NET Sdk for Godot projects.</Description>
  6. <Authors>Godot Engine contributors</Authors>
  7. <PackageId>Godot.NET.Sdk</PackageId>
  8. <Version>4.0.0</Version>
  9. <PackageVersion>$(PackageVersion_Godot_NET_Sdk)</PackageVersion>
  10. <RepositoryUrl>https://github.com/godotengine/godot/tree/master/modules/mono/editor/Godot.NET.Sdk</RepositoryUrl>
  11. <PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
  12. <PackageType>MSBuildSdk</PackageType>
  13. <PackageTags>MSBuildSdk</PackageTags>
  14. <PackageLicenseExpression>MIT</PackageLicenseExpression>
  15. <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
  16. <!-- Exclude target framework from the package dependencies as we don't include the build output -->
  17. <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
  18. <IncludeBuildOutput>false</IncludeBuildOutput>
  19. </PropertyGroup>
  20. <ItemGroup>
  21. <!-- Package Sdk\Sdk.props and Sdk\Sdk.targets file -->
  22. <None Include="Sdk\Sdk.props" Pack="true" PackagePath="Sdk" Visible="false" />
  23. <None Include="Sdk\Sdk.targets" Pack="true" PackagePath="Sdk" Visible="false" />
  24. <!-- SdkPackageVersions.props -->
  25. <None Include="..\..\..\SdkPackageVersions.props" Pack="true" PackagePath="Sdk" Visible="false" />
  26. </ItemGroup>
  27. <Target Name="CopyNupkgToSConsOutputDir" AfterTargets="Pack">
  28. <PropertyGroup>
  29. <GodotSourceRootPath>$(SolutionDir)\..\..\..\..\</GodotSourceRootPath>
  30. <GodotOutputDataDir>$(GodotSourceRootPath)\bin\GodotSharp\</GodotOutputDataDir>
  31. </PropertyGroup>
  32. <Copy SourceFiles="$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(GodotOutputDataDir)Tools\nupkgs\" />
  33. </Target>
  34. </Project>