Skip to content

Commit 0d4d753

Browse files
committed
allow toggling between package and project references
1 parent 6b35af0 commit 0d4d753

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

samples/Scratch/Scratch.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net5.0</TargetFramework>
6+
<UsePackageRef>true</UsePackageRef>
67
</PropertyGroup>
7-
<ItemGroup>
8+
<ItemGroup Condition="'$(UsePackageRef)' != 'true'">
89
<ProjectReference Include="..\..\src\Tocsoft.DateTimeAbstractions\Tocsoft.DateTimeAbstractions.csproj" />
910
<ProjectReference Include="..\..\src\Tocsoft.DateTimeAbstractions.Analyzer\Tocsoft.DateTimeAbstractions.Analyzer.csproj"
1011
OutputItemType="Analyzer"
1112
ReferenceOutputAssembly="false" />
1213
</ItemGroup>
14+
<ItemGroup Condition="'$(UsePackageRef)' == 'true'">
15+
<PackageReference Include="Tocsoft.DateTimeAbstractions" Version="0.1.4-alpha.0.4" />
16+
</ItemGroup>
1317
</Project>

samples/Scratch/nuget.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<configuration>
33
<packageSources>
44
<clear />
5-
<add key="nuget.org" value="../Tocsoft.DateTimeAbstractions/bin/debug" />
5+
<add key="nuget.org" value="https://www.myget.org/F/tocsoft/api/v3/index.json" />
66
</packageSources>
77
</configuration>

0 commit comments

Comments
 (0)