Skip to content

Commit

Permalink
Feat: Package is working again
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaSasDev committed Jan 7, 2025
1 parent 871af0a commit c4378b5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>

<IsDeveloperDependency>true</IsDeveloperDependency>
<DevelopmentDependency>true</DevelopmentDependency>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<IsRoslynComponent>true</IsRoslynComponent>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoWarn>NU5128</NoWarn>

<IsPackable>true</IsPackable>
<!-- Package metadata -->
<PackageId>AterraEngine.Unions.Generators</PackageId>
<Version>3.4.0</Version>
<Authors>Anna Sas</Authors>
Expand All @@ -28,22 +29,24 @@
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<!-- Include external files -->
<ItemGroup>
<None Include="../../LICENSE" Pack="true" PackagePath="" Visible="false"/>
<None Include="../../README.md" Pack="true" PackagePath="" Visible="false"/>
<None Include="../../assets/icon.png" Pack="true" PackagePath="" Visible="false"/>
</ItemGroup>

<!-- Package dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all"/>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0" PrivateAssets="all"/>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" PrivateAssets="all"/>
<PackageReference Include="CodeOfChaos.GeneratorTools" Version="0.6.0" PrivateAssets="all" GeneratePathProperty="true"/>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" PrivateAssets="all" />
<PackageReference Include="CodeOfChaos.GeneratorTools" Version="0.6.0" PrivateAssets="all" GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false"/>
<None Include="$(PkgCodeOfChaos_GeneratorTools)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false"/>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(PkgCodeOfChaos_GeneratorTools)\lib\netstandard2.0\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

</Project>
10 changes: 1 addition & 9 deletions src/AterraEngine.Unions/AterraEngine.Unions.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;netstandard2.0</TargetFrameworks>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down Expand Up @@ -32,12 +32,4 @@
<!-- ProjectReference for the generator as an analyzer -->
<ProjectReference Include="..\AterraEngine.Unions.Generators\AterraEngine.Unions.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
</ItemGroup>

<!-- Fixes a "buggy feature -->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="IsExternalInit" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
163 changes: 0 additions & 163 deletions src/AterraEngine.Unions/NullableAttributes.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;netstandard2.0</TargetFrameworks>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CodeOfChaos.GeneratorTools" Version="0.6.0"/>
<PackageReference Include="CodeOfChaos.GeneratorTools" Version="1.0.7" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0"/>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;netstandard2.0</TargetFrameworks>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
21 changes: 0 additions & 21 deletions tests/Tests.AterraEngine.Unions/UnionExtraAttributeTest.cs

This file was deleted.

0 comments on commit c4378b5

Please sign in to comment.