Skip to content

Commit

Permalink
Merge pull request #6 from Dirkster99/NetCore3
Browse files Browse the repository at this point in the history
Multitargeting NetCore 3/.Net4
  • Loading branch information
Dirkster99 authored Sep 3, 2019
2 parents 194d2ab + 9912359 commit 381bae6
Show file tree
Hide file tree
Showing 19 changed files with 153 additions and 233 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[![Build status](https://img.shields.io/appveyor/ci/Dirkster99/NumericUpDownLib.svg)](https://ci.appveyor.com/project/Dirkster99/NumericUpDownLib)
[![Release](https://img.shields.io/github/release/Dirkster99/NumericUpDownLib.svg)](https://github.com/Dirkster99/NumericUpDownLib/releases/latest)
[![NuGet](https://img.shields.io/nuget/dt/Dirkster.NumericUpDownLib.svg)](http://nuget.org/packages/Dirkster.NumericUpDownLib)

![Net4](https://badgen.net/badge/Framework/.Net 4/blue) ![NetCore3](https://badgen.net/badge/Framework/NetCore 3/blue)

# Overview

This library implements numeric up down WPF controls to edit a value:
Expand Down
28 changes: 28 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2.4.{build}

configuration: Release

platform: Any CPU

image: Visual Studio 2019 Preview

install:
- cmd: choco install dotnetcore-sdk --pre

before_build:
- cmd: nuget restore source/NumericUpDown.sln

build:

verbosity: minimal

artifacts:

- path: source\TestGenerics\bin\Release
name: TestGenerics

- path: source\TestThemes\bin\Release
name: TestThemes

- path: source\NumericUpDownLib\bin\Release
name: NumericUpDownLib
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\..\..\..\..\packages\log4net.2.0.8\lib\net45-full\log4net.dll</HintPath>
</Reference>
<Reference Include="MLib, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\..\packages\Dirkster.MLib.1.0.9.1\lib\net4\MLib.dll</HintPath>
<Reference Include="MLib, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\..\..\packages\Dirkster.MLib.1.2.0\lib\net4\MLib.dll</HintPath>
</Reference>
<Reference Include="PresentationFramework" />
<Reference Include="System" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Dirkster.MLib" version="1.0.9.1" targetFramework="net452" />
<package id="Dirkster.MLib" version="1.2.0" targetFramework="net452" />
<package id="log4net" version="2.0.8" targetFramework="net452" />
</packages>
2 changes: 1 addition & 1 deletion source/Demo/UpDownDemoLib/UpDownDemoLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\NumericUpDownLib\NumericUpDownLib.csproj">
<Project>{98e332ac-86e6-4db3-a757-4d84432b4a2b}</Project>
<Project>{e542beed-60f4-48b0-8ac6-24dbfc03b0c4}</Project>
<Name>NumericUpDownLib</Name>
</ProjectReference>
</ItemGroup>
Expand Down
32 changes: 16 additions & 16 deletions source/numericupdownoneproject.sln → source/NumericUpDown.sln
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.16
# Visual Studio Version 16
VisualStudioVersion = 16.0.29209.152
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestThemes", "TestThemes\TestThemes.csproj", "{58BD0E02-6BFF-43F0-9B93-D3371E97794B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestGenerics", "TestGenerics\TestGenerics.csproj", "{BDBB3D84-0268-43E2-BBC6-F5CA2068262E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NumericUpDownLib", "NumericUpDownLib\NumericUpDownLib.csproj", "{98E332AC-86E6-4DB3-A757-4D84432B4A2B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MLibTest", "MLibTest", "{8305C6D6-C5E9-48B1-BE93-6BAB0C772C6B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Components", "Components", "{C69AB586-96F2-48A7-B2AA-8294DE1E1C4A}"
Expand All @@ -22,6 +20,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UpDownDemoLib", "Demo\UpDow
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Demo", "Demo", "{5FC97D08-2690-4233-B3D2-582FBD6CB6EB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NumericUpDownLib", "NumericUpDownLib\NumericUpDownLib.csproj", "{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -56,18 +56,6 @@ Global
{BDBB3D84-0268-43E2-BBC6-F5CA2068262E}.Release|x64.Build.0 = Release|Any CPU
{BDBB3D84-0268-43E2-BBC6-F5CA2068262E}.Release|x86.ActiveCfg = Release|Any CPU
{BDBB3D84-0268-43E2-BBC6-F5CA2068262E}.Release|x86.Build.0 = Release|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Debug|x64.ActiveCfg = Debug|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Debug|x64.Build.0 = Debug|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Debug|x86.ActiveCfg = Debug|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Debug|x86.Build.0 = Debug|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Release|Any CPU.Build.0 = Release|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Release|x64.ActiveCfg = Release|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Release|x64.Build.0 = Release|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Release|x86.ActiveCfg = Release|Any CPU
{98E332AC-86E6-4DB3-A757-4D84432B4A2B}.Release|x86.Build.0 = Release|Any CPU
{252126D1-E1D9-49C3-910B-FCF2266265EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{252126D1-E1D9-49C3-910B-FCF2266265EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{252126D1-E1D9-49C3-910B-FCF2266265EF}.Debug|x64.ActiveCfg = Debug|x64
Expand Down Expand Up @@ -116,6 +104,18 @@ Global
{ED3A742D-4055-4DA2-BBCE-74E817B211BF}.Release|x64.Build.0 = Release|Any CPU
{ED3A742D-4055-4DA2-BBCE-74E817B211BF}.Release|x86.ActiveCfg = Release|Any CPU
{ED3A742D-4055-4DA2-BBCE-74E817B211BF}.Release|x86.Build.0 = Release|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Debug|x64.ActiveCfg = Debug|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Debug|x64.Build.0 = Debug|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Debug|x86.ActiveCfg = Debug|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Debug|x86.Build.0 = Debug|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Release|Any CPU.Build.0 = Release|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Release|x64.ActiveCfg = Release|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Release|x64.Build.0 = Release|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Release|x86.ActiveCfg = Release|Any CPU
{E542BEED-60F4-48B0-8AC6-24DBFC03B0C4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
10 changes: 10 additions & 0 deletions source/NumericUpDownLib/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
137 changes: 40 additions & 97 deletions source/NumericUpDownLib/NumericUpDownLib.csproj
Original file line number Diff line number Diff line change
@@ -1,113 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{98E332AC-86E6-4DB3-A757-4D84432B4A2B}</ProjectGuid>
<OutputType>library</OutputType>
<RootNamespace>NumericUpDownLib</RootNamespace>
<AssemblyName>NumericUpDownLib</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworks>net4;netcoreapp3.0</TargetFrameworks>
<UseWPF>true</UseWPF>

<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.4.0.0</Version>
<AssemblyVersion>2.4.0.0</AssemblyVersion>
<FileVersion>2.4.0.0</FileVersion>
<Company>Open Source</Company>
<Product>NumericUpDownLib</Product>
<Copyright>2013-2019</Copyright>
<Description>Provides a numeric up down WPF control that can be used to edit (integer, byte, decimal, double, float, short and many more) values with a textbox and/or up/down arrow (repeat) buttons. Editing can be based on input via mouse wheel, mouse drag, cursor keys, or text editing.</Description>
<PackageProjectUrl>https://github.com/Dirkster99/NumericUpDownLib</PackageProjectUrl>
<RepositoryUrl>https://github.com/Dirkster99/NumericUpDownLib</RepositoryUrl>
<PackageId>Dirkster.NumericUpDownLib</PackageId>
<Authors>https://github.com/Dirkster99/NumericUpDownLib</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>numericupdown numeric up down integer float double percentage increment decrement custom wpf control mvvm c# .net metro black light themed control library</PackageTags>
<PackageReleaseNotes>This control is now supported in NetCore 3 (with Preview 8) and .Net 4.</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<PackageIconUrl>https://raw.githubusercontent.com/Dirkster99/NumericUpDownLib/master/SyncArrow_64x.png</PackageIconUrl>

</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>
<DocumentationFile>bin\Debug\NumericUpDownLib.xml</DocumentationFile>
</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>
<DocumentationFile>bin\Release\NumericUpDownLib.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>

<ItemGroup>
<Compile Include="Converters\BoolToVisibilityPropConverter.cs" />
<Compile Include="Converters\FactorToDoubleConverter.cs" />
<Compile Include="FloatUpDown.cs" />
<Compile Include="Models\MouseDirections.cs" />
<Compile Include="Models\MouseIncrementor.cs" />
<Compile Include="ULongUpDown.cs" />
<Compile Include="UIntegerUpDown.cs" />
<Compile Include="UShortUpDown.cs" />
<Compile Include="ShortUpDown.cs" />
<Compile Include="LongUpDown.cs" />
<Compile Include="SByteUpDown.cs" />
<Compile Include="DoubleUpDown.cs" />
<Compile Include="DecimalUpDown.cs" />
<Compile Include="ByteUpDown.cs" />
<Compile Include="NumericUpDown.cs" />
<Compile Include="Converters\ByteToPlaceHolderStringConverter.cs" />
<Compile Include="Base\InputBaseUpDown.cs" />
<Compile Include="Base\NumericRepeatButtonControl.xaml.cs">
<DependentUpon>NumericRepeatButtonControl.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="Base\AbstractBaseUpDown.xaml.cs">
<Compile Update="Base\AbstractBaseUpDown.xaml.cs">
<DependentUpon>AbstractBaseUpDown.xaml</DependentUpon>
</Compile>
<Compile Include="Themes\ResourceKeys.cs" />
<Page Include="Base\NumericRepeatButtonControl.xaml">
<Compile Update="Base\NumericRepeatButtonControl.xaml.cs">
<SubType>Code</SubType>
<DependentUpon>NumericRepeatButtonControl.xaml</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<Page Update="Base\AbstractBaseUpDown.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Base\AbstractBaseUpDown.xaml">
<Generator>MSBuild:Compile</Generator>
<Page Update="Base\NumericRepeatButtonControl.xaml">
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\DarkBrushs.xaml">
<Generator>MSBuild:Compile</Generator>
<Page Update="Themes\DarkBrushs.xaml">
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator>
<Page Update="Themes\Generic.xaml">
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\LightBrushs.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Update="Themes\LightBrushs.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Base\ClassDiagram1.cd" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

</Project>
21 changes: 21 additions & 0 deletions source/NumericUpDownLib/NumericUpDownLib.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<Page Update="Base\AbstractBaseUpDown.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Base\NumericRepeatButtonControl.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Themes\DarkBrushs.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Themes\Generic.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Themes\LightBrushs.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
</Project>
55 changes: 0 additions & 55 deletions source/NumericUpDownLib/Properties/AssemblyInfo.cs

This file was deleted.

Loading

0 comments on commit 381bae6

Please sign in to comment.