Skip to content

Commit

Permalink
Merge pull request #1 from Kritner/master
Browse files Browse the repository at this point in the history
Demonstrate using Directory.Build.props for NuGet version management
  • Loading branch information
Kritner authored Oct 10, 2018
2 parents 2d05e08 + d4ebab3 commit 808a997
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>

<PropertyGroup>
<NuGet-Kritner-SolarProjection>1.0.2</NuGet-Kritner-SolarProjection>
</PropertyGroup>

</Project>
44 changes: 44 additions & 0 deletions DirectoryBuildProps.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2047
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{71BBAA42-2BB3-4078-9C2C-CF0A42209BDA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassLibrary1", "src\ClassLibrary1\ClassLibrary1.csproj", "{1AB05C75-46E1-46B0-81E3-D69AF5C02614}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassLibrary2", "src\ClassLibrary2\ClassLibrary2.csproj", "{DDAE8A29-F70C-454C-ADF2-7B4857F65887}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassLibrary3", "src\ClassLibrary3\ClassLibrary3.csproj", "{CA765BF3-36C8-4807-B658-79DE54CB0689}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1AB05C75-46E1-46B0-81E3-D69AF5C02614}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1AB05C75-46E1-46B0-81E3-D69AF5C02614}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1AB05C75-46E1-46B0-81E3-D69AF5C02614}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1AB05C75-46E1-46B0-81E3-D69AF5C02614}.Release|Any CPU.Build.0 = Release|Any CPU
{DDAE8A29-F70C-454C-ADF2-7B4857F65887}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DDAE8A29-F70C-454C-ADF2-7B4857F65887}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DDAE8A29-F70C-454C-ADF2-7B4857F65887}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DDAE8A29-F70C-454C-ADF2-7B4857F65887}.Release|Any CPU.Build.0 = Release|Any CPU
{CA765BF3-36C8-4807-B658-79DE54CB0689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CA765BF3-36C8-4807-B658-79DE54CB0689}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CA765BF3-36C8-4807-B658-79DE54CB0689}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CA765BF3-36C8-4807-B658-79DE54CB0689}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1AB05C75-46E1-46B0-81E3-D69AF5C02614} = {71BBAA42-2BB3-4078-9C2C-CF0A42209BDA}
{DDAE8A29-F70C-454C-ADF2-7B4857F65887} = {71BBAA42-2BB3-4078-9C2C-CF0A42209BDA}
{CA765BF3-36C8-4807-B658-79DE54CB0689} = {71BBAA42-2BB3-4078-9C2C-CF0A42209BDA}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CF197BD0-7796-431D-A02B-825433FC8B76}
EndGlobalSection
EndGlobal
8 changes: 8 additions & 0 deletions src/ClassLibrary1/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace ClassLibrary1
{
public class Class1
{
}
}
11 changes: 11 additions & 0 deletions src/ClassLibrary1/ClassLibrary1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Kritner.SolarProjection" Version="$(NuGet-Kritner-SolarProjection)" />
</ItemGroup>

</Project>
8 changes: 8 additions & 0 deletions src/ClassLibrary2/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace ClassLibrary2
{
public class Class1
{
}
}
11 changes: 11 additions & 0 deletions src/ClassLibrary2/ClassLibrary2.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Kritner.SolarProjection" Version="$(NuGet-Kritner-SolarProjection)" />
</ItemGroup>

</Project>
8 changes: 8 additions & 0 deletions src/ClassLibrary3/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System;

namespace ClassLibrary3
{
public class Class1
{
}
}
11 changes: 11 additions & 0 deletions src/ClassLibrary3/ClassLibrary3.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Kritner.SolarProjection" Version="$(NuGet-Kritner-SolarProjection)" />
</ItemGroup>

</Project>

0 comments on commit 808a997

Please sign in to comment.