Skip to content

Commit

Permalink
Merge pull request #15 from thedmi/chore/independent-package-versioning
Browse files Browse the repository at this point in the history
chore: Enable independent package versioning
  • Loading branch information
thedmi authored Mar 8, 2024
2 parents c54c4ab + 35182d2 commit 36ed5f3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Test
run: dotnet test -c debug --filter "FullyQualifiedName~AutomatedTests"
- name: Build
run: dotnet build --no-restore -c release
run: dotnet build -c release
5 changes: 4 additions & 1 deletion sources/Capsule.Generator/Capsule.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Capsule.Core\Capsule.Core.csproj" />
<!-- Conditionally reference either the project or the package. This enables integrated development of features
that span multiple projects, while still resorting to package references for the published nuget packages. -->
<ProjectReference Include="..\Capsule.Core\Capsule.Core.csproj" Condition=" '$(Configuration)' == 'Debug' " />
<PackageReference Include="Capsule.Core" Version="1.0.0" Condition=" '$(Configuration)' == 'Release' " />
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 8 additions & 2 deletions sources/Capsule.Test/Capsule.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,17 @@
</PackageReference>
<PackageReference Include="Shouldly" Version="4.2.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Capsule.Core\Capsule.Core.csproj" />
<ProjectReference Include="..\Capsule.Generator\Capsule.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="..\Capsule.Testing\Capsule.Testing.csproj" />
</ItemGroup>

<ItemGroup>
<!-- Conditionally reference either the project or the package. This enables integrated development of features
that span multiple projects, while still resorting to package references for the published nuget packages. -->
<ProjectReference Include="..\Capsule.Testing\Capsule.Testing.csproj" Condition=" '$(Configuration)' == 'Debug' " />
<PackageReference Include="Capsule.Testing" Version="1.0.0" Condition=" '$(Configuration)' == 'Release' " />
</ItemGroup>

</Project>
5 changes: 4 additions & 1 deletion sources/Capsule.Testing/Capsule.Testing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Capsule.Core\Capsule.Core.csproj" />
<!-- Conditionally reference either the project or the package. This enables integrated development of features
that span multiple projects, while still resorting to package references for the published nuget packages. -->
<ProjectReference Include="..\Capsule.Core\Capsule.Core.csproj" Condition=" '$(Configuration)' == 'Debug' " />
<PackageReference Include="Capsule.Core" Version="1.0.0" Condition=" '$(Configuration)' == 'Release' " />
</ItemGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand Down

0 comments on commit 36ed5f3

Please sign in to comment.