Skip to content

Commit 860df77

Browse files
committed
Add a build configuration that allows me to use local source of RT.Util.Core. You can still build from the Nuget package by using the “Debug (Nuget)” or “Release” configuration; you do not need to have the project files even if Visual Studio complains about it in the Solution Explorer.
1 parent 948d659 commit 860df77

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

RT.CommandLine.sln

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,33 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RT.CommandLine", "Src\RT.Co
66
EndProject
77
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RT.CommandLine.Tests", "Tests\RT.CommandLine.Tests.csproj", "{294D2B02-3FA6-4B9A-82BF-F80396943892}"
88
EndProject
9+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RT.Util.Core", "..\RT.Util\RT.Util.Core\RT.Util.Core.csproj", "{45112116-A549-97E2-5AB1-8CDC7AE4B250}"
10+
EndProject
911
Global
1012
GlobalSection(SolutionConfigurationPlatforms) = preSolution
11-
Debug|Any CPU = Debug|Any CPU
13+
Debug (local libs)|Any CPU = Debug (local libs)|Any CPU
14+
Debug (Nuget)|Any CPU = Debug (Nuget)|Any CPU
1215
Release|Any CPU = Release|Any CPU
1316
EndGlobalSection
1417
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{DED68431-337E-439C-94E4-ACE2E5363178}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{DED68431-337E-439C-94E4-ACE2E5363178}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{DED68431-337E-439C-94E4-ACE2E5363178}.Debug (local libs)|Any CPU.ActiveCfg = Debug (local libs)|Any CPU
19+
{DED68431-337E-439C-94E4-ACE2E5363178}.Debug (local libs)|Any CPU.Build.0 = Debug (local libs)|Any CPU
20+
{DED68431-337E-439C-94E4-ACE2E5363178}.Debug (Nuget)|Any CPU.ActiveCfg = Debug (Nuget)|Any CPU
21+
{DED68431-337E-439C-94E4-ACE2E5363178}.Debug (Nuget)|Any CPU.Build.0 = Debug (Nuget)|Any CPU
1722
{DED68431-337E-439C-94E4-ACE2E5363178}.Release|Any CPU.ActiveCfg = Release|Any CPU
1823
{DED68431-337E-439C-94E4-ACE2E5363178}.Release|Any CPU.Build.0 = Release|Any CPU
19-
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20-
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Debug (local libs)|Any CPU.ActiveCfg = Debug|Any CPU
25+
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Debug (local libs)|Any CPU.Build.0 = Debug|Any CPU
26+
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Debug (Nuget)|Any CPU.ActiveCfg = Debug|Any CPU
27+
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Debug (Nuget)|Any CPU.Build.0 = Debug|Any CPU
2128
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Release|Any CPU.ActiveCfg = Release|Any CPU
2229
{294D2B02-3FA6-4B9A-82BF-F80396943892}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{45112116-A549-97E2-5AB1-8CDC7AE4B250}.Debug (local libs)|Any CPU.ActiveCfg = Debug|Any CPU
31+
{45112116-A549-97E2-5AB1-8CDC7AE4B250}.Debug (local libs)|Any CPU.Build.0 = Debug|Any CPU
32+
{45112116-A549-97E2-5AB1-8CDC7AE4B250}.Debug (Nuget)|Any CPU.ActiveCfg = Debug|Any CPU
33+
{45112116-A549-97E2-5AB1-8CDC7AE4B250}.Debug (Nuget)|Any CPU.Build.0 = Debug|Any CPU
34+
{45112116-A549-97E2-5AB1-8CDC7AE4B250}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{45112116-A549-97E2-5AB1-8CDC7AE4B250}.Release|Any CPU.Build.0 = Release|Any CPU
2336
EndGlobalSection
2437
GlobalSection(SolutionProperties) = preSolution
2538
HideSolutionNode = FALSE

Src/RT.CommandLine.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,22 @@
1212
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1313
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1414
<IncludeSymbols>true</IncludeSymbols>
15+
<Configurations>Debug (Nuget);Debug (local libs);Release</Configurations>
1516
</PropertyGroup>
1617

1718
<ItemGroup>
1819
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
1920
<PackageReference Include="RT.PostBuild" Version="2.0.1776" />
20-
<PackageReference Include="RT.Util.Core" Version="2.0.1776" />
21+
</ItemGroup>
22+
<ItemGroup Condition="'$(Configuration)' == 'Debug (local libs)'">
23+
<ProjectReference Include="..\..\RT.Util\RT.Util.Core\RT.Util.Core.csproj" />
24+
</ItemGroup>
25+
<ItemGroup Condition="'$(Configuration)' != 'Debug (local libs)'">
26+
<PackageReference Include="RT.Util.Core" Version="2.0.1777" />
2127
</ItemGroup>
2228

2329
<ItemGroup>
2430
<Compile Include="..\External\RT.Util\RT.Serialization\ExactConvert.cs" Link="RT.Util\ExactConvert.cs" />
2531
<Compile Include="..\External\RT.Util\RT.Util.Core\ExtensionMethods\DateTimeExtensions.cs" Link="RT.Util\DateTimeExtensions.cs" />
2632
</ItemGroup>
27-
2833
</Project>

0 commit comments

Comments
 (0)