Skip to content

Commit

Permalink
Setup NuGet packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed Jan 7, 2024
1 parent bb88217 commit b632d3b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<ItemGroup>
<ProjectReference Include="..\FunctionalInterfaces.SourceGenerator\FunctionalInterfaces.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\FunctionalInterfaces\FunctionalInterfaces.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<ItemGroup>
<ProjectReference Include="..\FunctionalInterfaces.Fody\FunctionalInterfaces.Fody.csproj" />
<ProjectReference Include="..\FunctionalInterfaces.TestAssembly\FunctionalInterfaces.TestAssembly.csproj" />
<ProjectReference Include="..\FunctionalInterfaces\FunctionalInterfaces.csproj" />
</ItemGroup>

</Project>
24 changes: 23 additions & 1 deletion src/FunctionalInterfaces/FunctionalInterfaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,33 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>12</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoPackageAnalysis>true</NoPackageAnalysis>
<DisableFody>true</DisableFody>
<Version>1.0.0</Version>
<Authors>Joni Aromaa</Authors>
<Description>
Create zero allocation capturing struct lambdas!
</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Fody" Version="6.8.0" PrivateAssets="None" />
<PackageReference Include="FodyPackaging" Version="6.8.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\FunctionalInterfaces.Fody\FunctionalInterfaces.Fody.csproj" PrivateAssets="All" />
<ProjectReference Include="..\FunctionalInterfaces.SourceGenerator\FunctionalInterfaces.SourceGenerator.csproj" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Include="$(OutputPath)\FunctionalInterfaces.Fody.dll" Pack="true" PackagePath="weaver/FunctionalInterfaces.dll" Visible="false" />
<None Include="$(OutputPath)\FunctionalInterfaces.SourceGenerator.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

<ItemGroup>
<None Update="FunctionalInterfaces.props" Pack="true" PackagePath="build" />
</ItemGroup>

</Project>
5 changes: 5 additions & 0 deletions src/FunctionalInterfaces/FunctionalInterfaces.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<ItemGroup>
<WeaverFiles Include="$(MsBuildThisFileDirectory)..\weaver\$(MSBuildThisFileName).dll" />
</ItemGroup>
</Project>

0 comments on commit b632d3b

Please sign in to comment.