Godot.SourceGenerators.Sample.csproj 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net8.0</TargetFramework>
  4. <LangVersion>12</LangVersion>
  5. </PropertyGroup>
  6. <PropertyGroup>
  7. <!-- $(GodotProjectDir) would normally be defined by the Godot.NET.Sdk -->
  8. <GodotProjectDir>$(MSBuildProjectDirectory)</GodotProjectDir>
  9. <GodotProjectDirBase64 Condition=" $([MSBuild]::VersionGreaterThanOrEquals($(MSBuildAssemblyVersion), '17.3')) ">$([MSBuild]::ConvertToBase64('$(GodotProjectDir)'))</GodotProjectDirBase64>
  10. <!-- For compiling GetGodotPropertyDefaultValues. -->
  11. <DefineConstants>$(DefineConstants);TOOLS</DefineConstants>
  12. </PropertyGroup>
  13. <PropertyGroup>
  14. <!-- The emitted files are not part of the compilation nor design.
  15. They're only for peeking at the generated sources. Sometimes the
  16. emitted files get corrupted, but that won't break anything. -->
  17. <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
  18. <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GeneratedFiles</CompilerGeneratedFilesOutputPath>
  19. </PropertyGroup>
  20. <ItemGroup>
  21. <ProjectReference Include="..\..\..\glue\GodotSharp\GodotSharp\GodotSharp.csproj">
  22. <Private>False</Private>
  23. </ProjectReference>
  24. <ProjectReference Include="..\Godot.SourceGenerators\Godot.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
  25. </ItemGroup>
  26. <!-- This file is imported automatically when using PackageReference to
  27. reference Godot.SourceGenerators, but not when using ProjectReference -->
  28. <Import Project="..\Godot.SourceGenerators\Godot.SourceGenerators.props" />
  29. </Project>