<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <LangVersion>10.0</LangVersion>
    <IsRoslynComponent>true</IsRoslynComponent>
    <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
    <AssemblyName>Grenat.Functional.DDD.Generators</AssemblyName>
  </PropertyGroup>

  <PropertyGroup>
    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
    <!-- Make sure the library generated by this project is not included in the package, because it is not necessary at runtime (only compile time) -->
    <IncludeBuildOutput>false</IncludeBuildOutput>
    <Version>0.5.0</Version>
    <AssemblyVersion>$(Version).0</AssemblyVersion>
    <FileVersion>$(Version).0</FileVersion>
    <Authors>Bastien Foucher</Authors>
    <Title>Grenat.Functional.DDD.Generators</Title>
    <Description>A C# source generator to generate setters and builders for Grenat.Functional.DDD</Description>
    <PackageProjectUrl>https://github.com/BastienFoucher/Grenat.Functional.DDD.Generators</PackageProjectUrl>
    <RepositoryUrl>https://github.com/BastienFoucher/Grenat.Functional.DDD.Generators</RepositoryUrl>
  </PropertyGroup>

  <ItemGroup>
    <!-- Make sure the generator package is a generator and not a library -->
    <None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
  </ItemGroup>

</Project>