Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvk committed Jul 2, 2017
1 parent 2fbce27 commit 43c1bdb
Show file tree
Hide file tree
Showing 32 changed files with 2,066 additions and 1,884 deletions.
52 changes: 52 additions & 0 deletions CodeJam.Extensibility.sln.GhostDoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<GhostDoc>
<IgnoreFilePatterns>
<IgnoreFilePattern>*.min.js</IgnoreFilePattern>
<IgnoreFilePattern>jquery*.js</IgnoreFilePattern>
</IgnoreFilePatterns>
<SpellChecker>
<IncludeExtensions>
</IncludeExtensions>
<IgnoreExtensions>
</IgnoreExtensions>
<IgnoreFiles>
</IgnoreFiles>
</SpellChecker>
<HelpConfigurations selected="HelpFile">
<HelpConfiguration name="HelpFile">
<OutputPath>.\Help</OutputPath>
<CleanupOutputPath>true</CleanupOutputPath>
<HelpFileName>CodeJam.Extensibility</HelpFileName>
<ImageFolderPath />
<Theme />
<HtmlFormats>
<HtmlHelp>true</HtmlHelp>
<MSHelpViewer>false</MSHelpViewer>
<MSHelp2>false</MSHelp2>
<Website>false</Website>
</HtmlFormats>
<IncludeScopes>
<Public>true</Public>
<Internal>false</Internal>
<Protected>false</Protected>
<Private>false</Private>
<Inherited>true</Inherited>
<InheritedFromReferences>true</InheritedFromReferences>
<EnableTags>false</EnableTags>
<TagList />
<AutoGeneratedDocs />
<DocsThatRequireEditing />
</IncludeScopes>
<SyntaxLanguages>
<CSharp>true</CSharp>
<VisualBasic>true</VisualBasic>
<CPlusPlus>true</CPlusPlus>
</SyntaxLanguages>
<ResolveCrefLinks>true</ResolveCrefLinks>
<HeaderText />
<FooterText />
<SelectedProjects />
</HelpConfiguration>
</HelpConfigurations>
<GeneralProperties>
</GeneralProperties>
</GhostDoc>
72 changes: 36 additions & 36 deletions demos/Extensibility/RegStrategies/Program.cs
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
using System;

using CodeJam.Extensibility.Demos.FruitModel;
using CodeJam.Extensibility.Registration;
using CodeJam.Services;

namespace CodeJam.Extensibility.Demos
{
using FruitSvc = IRegElementsService<FruitInfo>;
using KeyedFruitSvc = IRegKeyedElementsService<string, FruitInfo>;

internal class Program
{
static void Main()
{
var extMgr = new ExtensionManager(null);
var types = typeof(Program).Assembly.GetTypes();

// Elements registration
var regSvcMgr = new ServiceContainer();
extMgr.Scan(new RegFruitStrategy(regSvcMgr), types);
var fruitSvc = regSvcMgr.GetRequiredService<FruitSvc>();
foreach (var fi in fruitSvc.GetRegisteredElements())
Console.WriteLine("{0}({1})", fi.Name, fi.Type);

// Keyed elements registration
var keyedRegSvcMgr = new ServiceContainer();
extMgr.Scan(new RegKeyedFruitStrategy(keyedRegSvcMgr), types);
var keyedFruitSvc = keyedRegSvcMgr.GetRequiredService<KeyedFruitSvc>();
Console.WriteLine("lemon type is '{0}'",
keyedFruitSvc.GetElement("lemon").Type);

Console.Read();
}
}
}
using System;

using CodeJam.Extensibility.Demos.FruitModel;
using CodeJam.Extensibility.Registration;
using CodeJam.Services;

namespace CodeJam.Extensibility.Demos
{
using FruitSvc = IRegElementsService<FruitInfo>;
using KeyedFruitSvc = IRegKeyedElementsService<string, FruitInfo>;

internal class Program
{
static void Main()
{
var extMgr = new ExtensionManager(null);
var types = typeof(Program).Assembly.GetTypes();

// Elements registration
var regSvcMgr = new ServiceContainer();
extMgr.Scan(new RegFruitStrategy(regSvcMgr), types);
var fruitSvc = regSvcMgr.GetRequiredService<FruitSvc>();
foreach (var fi in fruitSvc.GetRegisteredElements())
Console.WriteLine("{0}({1})", fi.Name, fi.Type);

// Keyed elements registration
var keyedRegSvcMgr = new ServiceContainer();
extMgr.Scan(new RegKeyedFruitStrategy(keyedRegSvcMgr), types);
var keyedFruitSvc = keyedRegSvcMgr.GetRequiredService<KeyedFruitSvc>();
Console.WriteLine("lemon type is '{0}'",
keyedFruitSvc.GetElement("lemon").Type);

Console.Read();
}
}
}
168 changes: 86 additions & 82 deletions demos/Extensibility/RegStrategies/RegStrategies.csproj
Original file line number Diff line number Diff line change
@@ -1,83 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{966CD925-722D-47A1-907D-3EE1F0EACC2D}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CodeJam.Extensibility.Demos</RootNamespace>
<AssemblyName>RegStrategies</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="CodeJam, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7662d8fd5b220919, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\CodeJam.1.0.0-beta7\lib\net45\CodeJam.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="JetBrains.Annotations, Version=10.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\JetBrains.Annotations.10.0.0\lib\net20\JetBrains.Annotations.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="FruitModel\FruitAttribute.cs" />
<Compile Include="FruitModel\FruitInfo.cs" />
<Compile Include="Fruits\Apple.cs" />
<Compile Include="Fruits\Lemon.cs" />
<Compile Include="Fruits\Orange.cs" />
<Compile Include="Fruits\Peach.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RegFruitStrategy.cs" />
<Compile Include="RegKeyedFruitStrategy.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\CodeJam.Extensibility.csproj">
<Project>{7D9CAEC6-4973-4592-A321-54C9EFACA0F8}</Project>
<Name>CodeJam.Extensibility</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{966CD925-722D-47A1-907D-3EE1F0EACC2D}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CodeJam.Extensibility.Demos</RootNamespace>
<AssemblyName>RegStrategies</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="CodeJam, Version=1.1.0.0, Culture=neutral, PublicKeyToken=7662d8fd5b220919, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\CodeJam.1.3.0\lib\net46\CodeJam.dll</HintPath>
</Reference>
<Reference Include="CodeJam.Blocks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7662d8fd5b220919, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\CodeJam.Blocks.1.3.1\lib\net46\CodeJam.Blocks.dll</HintPath>
</Reference>
<Reference Include="JetBrains.Annotations, Version=10.4.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\JetBrains.Annotations.10.4.0\lib\net\JetBrains.Annotations.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.ValueTuple, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.ValueTuple.4.3.1\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="FruitModel\FruitAttribute.cs" />
<Compile Include="FruitModel\FruitInfo.cs" />
<Compile Include="Fruits\Apple.cs" />
<Compile Include="Fruits\Lemon.cs" />
<Compile Include="Fruits\Orange.cs" />
<Compile Include="Fruits\Peach.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RegFruitStrategy.cs" />
<Compile Include="RegKeyedFruitStrategy.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\CodeJam.Extensibility.csproj">
<Project>{7D9CAEC6-4973-4592-A321-54C9EFACA0F8}</Project>
<Name>CodeJam.Extensibility</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
19 changes: 16 additions & 3 deletions demos/Extensibility/RegStrategies/app.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup></configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /></startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="CodeJam" publicKeyToken="7662d8fd5b220919" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
10 changes: 6 additions & 4 deletions demos/Extensibility/RegStrategies/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CodeJam" version="1.0.0-beta7" targetFramework="net452" />
<package id="JetBrains.Annotations" version="10.0.0" targetFramework="net452" />
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CodeJam" version="1.3.0" targetFramework="net46" />
<package id="CodeJam.Blocks" version="1.3.1" targetFramework="net46" />
<package id="JetBrains.Annotations" version="10.4.0" targetFramework="net46" />
<package id="System.ValueTuple" version="4.3.1" targetFramework="net46" />
</packages>
Loading

0 comments on commit 43c1bdb

Please sign in to comment.