2021-03-06 00:12:42 +01:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
|
|
<LangVersion>8.0</LangVersion>
|
|
|
|
<Nullable>enable</Nullable>
|
|
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
|
|
<Description>Core C# source generator for Godot projects.</Description>
|
|
|
|
<Authors>Godot Engine contributors</Authors>
|
|
|
|
|
|
|
|
<PackageId>Godot.SourceGenerators</PackageId>
|
|
|
|
<Version>4.0.0</Version>
|
|
|
|
<PackageVersion>$(PackageVersion_Godot_SourceGenerators)</PackageVersion>
|
|
|
|
<RepositoryUrl>https://github.com/godotengine/godot/tree/master/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators</RepositoryUrl>
|
|
|
|
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
|
|
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
|
|
|
2021-07-23 01:56:37 +02:00
|
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
|
|
<!-- Do not include the generator as a lib dependency -->
|
|
|
|
<IncludeBuildOutput>false</IncludeBuildOutput>
|
2021-03-06 00:12:42 +01:00
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" PrivateAssets="all" />
|
2021-12-28 23:25:16 +01:00
|
|
|
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" PrivateAssets="all" />
|
2021-03-06 00:12:42 +01:00
|
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<!-- Package the generator in the analyzer directory of the nuget package -->
|
|
|
|
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
|
|
|
|
|
|
|
|
<!-- Package the props file -->
|
2021-12-28 23:25:16 +01:00
|
|
|
<None Include="Godot.SourceGenerators.props" Pack="true" PackagePath="build" Visible="true" />
|
2021-03-06 00:12:42 +01:00
|
|
|
</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>
|