Skip to content

Commit

Permalink
Condition for debug/release
Browse files Browse the repository at this point in the history
  • Loading branch information
HakanL committed Dec 20, 2024
1 parent 95d5211 commit 736bef0
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions src/Haukcode.ArtNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,34 @@
<RepositoryUrl>https://github.com/HakanL/Haukcode.ArtNet</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<PackageTags>ArtNet</PackageTags>
<PackageReleaseNotes>1.2.2 - Bug fixes
1.1.0 - Implemented ArtSync
1.0.18 - Fixed bug in RdmPacketFactory
1.0.17 - Fixed bug in ArtNetReplyPacket
1.0.0 - Initial release
</PackageReleaseNotes>
<PackageReleaseNotes>
1.2.2 - Bug fixes
1.1.0 - Implemented ArtSync
1.0.18 - Fixed bug in RdmPacketFactory
1.0.17 - Fixed bug in ArtNetReplyPacket
1.0.0 - Initial release
</PackageReleaseNotes>
<AssemblyVersion>1.0.18.0</AssemblyVersion>
<FileVersion>1.0.18.0</FileVersion>
<Version>1.2.2</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Nullable>enable</Nullable>
</PropertyGroup>

<Choose>
<When Condition="'$(Configuration)' == 'Debug'">
<ItemGroup>
<ProjectReference Include="..\..\Haukcode.HighPerfComm\src\Haukcode.HighPerfComm.csproj" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="Haukcode.HighPerfComm" Version="1.0.13" />
</ItemGroup>
</Otherwise>
</Choose>
<PropertyGroup>
<UseProjectReference>true</UseProjectReference>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<UseProjectReference>true</UseProjectReference>
</PropertyGroup>

<ItemGroup Condition="'$(UseProjectReference)' == 'true'">
<ProjectReference Include="..\..\Haukcode.HighPerfComm\src\Haukcode.HighPerfComm.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(UseProjectReference)' != 'true'">
<PackageReference Include="Haukcode.HighPerfComm" Version="1.0.15" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
<ItemGroup>
Expand Down

0 comments on commit 736bef0

Please sign in to comment.