Skip to content

Commit

Permalink
Use local ProjectReference or remote PackageReference depending on CL…
Browse files Browse the repository at this point in the history
…I flag (ProjectReferences)
  • Loading branch information
badeend committed Apr 3, 2024
1 parent d646146 commit a044d58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Badeend.ValueCollections\Badeend.ValueCollections.csproj" />
<PackageReference Include="Badeend.ValueCollections" Version="$(Version)" Condition="'$(ProjectReferences)' == 'Remote'" />
<ProjectReference Include="..\Badeend.ValueCollections\Badeend.ValueCollections.csproj" Condition="'$(ProjectReferences)' == 'Local'" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<NoWarn>NU1901;NU1902;NU1903;NU1904</NoWarn>
<EnablePackageValidation>true</EnablePackageValidation>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<!-- Available options: Local, Remote -->
<ProjectReferences Condition="'$(ProjectReferences)' == ''">Local</ProjectReferences>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'!='Debug'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down

0 comments on commit a044d58

Please sign in to comment.