Skip to content

Commit

Permalink
Include shared assembly in NuGet (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdolek authored Nov 4, 2023
1 parent 4a065d5 commit 09caf58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<PropertyGroup>
<IncludeBuildOutput>false</IncludeBuildOutput>
<IsRoslynComponent>true</IsRoslynComponent>
Expand Down Expand Up @@ -55,17 +55,16 @@
<None Include="$(OutputPath)\netstandard2.0\W4k.Either.Shared.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(OutputPath)\netstandard2.0\W4k.Either.Shared.pdb" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(OutputPath)\netstandard2.0\W4k.Either.Shared.xml" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />

<!-- Library -->
<!-- intentionally not including any `netstandard2.0` assemblies, `EnsureNet60OrHigher` target won't allow anything below net6.0 anyway -->
<None Include="$(OutputPath)\net6.0\W4k.Either.Shared.dll" Pack="true" PackagePath="lib\net6.0" Visible="true" />
<None Include="$(OutputPath)\net6.0\W4k.Either.Shared.pdb" Pack="true" PackagePath="lib\net6.0" Visible="true" />
<None Include="$(OutputPath)\net6.0\W4k.Either.Shared.xml" Pack="true" PackagePath="lib\net6.0" Visible="true" />
</ItemGroup>

<!-- Readme -->
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\" />

<!-- Icon -->
<None Include="..\..\images\either_128px.png" Pack="true" PackagePath="_img" />
</ItemGroup>

Expand Down
11 changes: 9 additions & 2 deletions src/W4k.Either/W4k.Either.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,24 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<PropertyGroup>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<EmitCompilerGeneratedFiles>false</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)Generated</CompilerGeneratedFilesOutputPath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\W4k.Either.Shared\W4k.Either.Shared.csproj" PrivateAssets="All" />
<ProjectReference Include="..\W4k.Either.CodeGeneration\W4k.Either.CodeGeneration.csproj" PrivateAssets="All" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
<!-- Include shared assembly in package -->
<None Include="$(OutputPath)\W4k.Either.Shared.dll" Pack="true" PackagePath="lib\net6.0" Visible="true" />
<None Include="$(OutputPath)\W4k.Either.Shared.pdb" Pack="true" PackagePath="lib\net6.0" Visible="true" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\" />
<None Include="..\..\images\either_128px.png" Pack="true" PackagePath="_img" />
Expand Down

0 comments on commit 09caf58

Please sign in to comment.