Skip to content

Commit

Permalink
Merge pull request #4 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 eafdb30 + ef6a606 commit a6610fa
Show file tree
Hide file tree
Showing 13 changed files with 128 additions and 427 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://ci.appveyor.com/api/projects/status/hs63uymamjh9p34u?svg=true)](https://ci.appveyor.com/project/Dirkster99/mrulib)
[![Release](https://img.shields.io/github/release/Dirkster99/MRULib.svg)](https://github.com/Dirkster99/MRULib/releases/latest)
[![NuGet](https://img.shields.io/nuget/dt/Dirkster.MRULib.svg)](http://nuget.org/packages/Dirkster.MRULib)

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

<h1><img src="https://github.com/Dirkster99/MRULib/blob/master/ProjectIcon.png?raw=true" height="64"/>&nbsp;Overview</h1>
The MRUib project supplies MVVM/WPF controls that manage a Most Recently Used list of files.
See <a href="https://www.codeproject.com/Articles/1202738/MRU-Most-Recently-Used-WPF-control">CodeProject article</a> for more details.
Expand Down
26 changes: 26 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 1.3.{build}

configuration: Release

platform: Any CPU

image: Visual Studio 2019 Preview

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

before_build:

- cmd: nuget restore source\MRU.sln

build:

verbosity: minimal

artifacts:

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

- path: source\MRULib\bin\Release
name: MRULib
32 changes: 16 additions & 16 deletions source/MRU.sln
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.8
# Visual Studio Version 16
VisualStudioVersion = 16.0.29209.152
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MRUDemo", "MRUDemo\MRUDemo.csproj", "{9E35A279-E568-4C60-881C-BC7797B161A7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MRULib", "MRULib\MRULib.csproj", "{59C17825-DE5A-42BF-89A6-715B64AF89F8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MRULibTest", "MRULibTest\MRULibTest.csproj", "{A3204CE9-5AD2-4802-BB40-86830A1EA40B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MRULib", "MRULib\MRULib.csproj", "{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -30,18 +30,6 @@ Global
{9E35A279-E568-4C60-881C-BC7797B161A7}.Release|x64.Build.0 = Release|x64
{9E35A279-E568-4C60-881C-BC7797B161A7}.Release|x86.ActiveCfg = Release|x86
{9E35A279-E568-4C60-881C-BC7797B161A7}.Release|x86.Build.0 = Release|x86
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Debug|x64.ActiveCfg = Debug|x64
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Debug|x64.Build.0 = Debug|x64
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Debug|x86.ActiveCfg = Debug|x86
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Debug|x86.Build.0 = Debug|x86
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Release|Any CPU.Build.0 = Release|Any CPU
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Release|x64.ActiveCfg = Release|x64
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Release|x64.Build.0 = Release|x64
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Release|x86.ActiveCfg = Release|x86
{59C17825-DE5A-42BF-89A6-715B64AF89F8}.Release|x86.Build.0 = Release|x86
{A3204CE9-5AD2-4802-BB40-86830A1EA40B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A3204CE9-5AD2-4802-BB40-86830A1EA40B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3204CE9-5AD2-4802-BB40-86830A1EA40B}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand All @@ -54,6 +42,18 @@ Global
{A3204CE9-5AD2-4802-BB40-86830A1EA40B}.Release|x64.Build.0 = Release|Any CPU
{A3204CE9-5AD2-4802-BB40-86830A1EA40B}.Release|x86.ActiveCfg = Release|Any CPU
{A3204CE9-5AD2-4802-BB40-86830A1EA40B}.Release|x86.Build.0 = Release|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Debug|x64.ActiveCfg = Debug|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Debug|x64.Build.0 = Debug|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Debug|x86.ActiveCfg = Debug|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Debug|x86.Build.0 = Debug|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Release|Any CPU.Build.0 = Release|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Release|x64.ActiveCfg = Release|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Release|x64.Build.0 = Release|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Release|x86.ActiveCfg = Release|Any CPU
{FACD3BF7-B5BC-4D92-ACE5-AC42FF0422AB}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 1 addition & 1 deletion source/MRUDemo/MRUDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MRULib\MRULib.csproj">
<Project>{59c17825-de5a-42bf-89a6-715b64af89f8}</Project>
<Project>{facd3bf7-b5bc-4d92-ace5-ac42ff0422ab}</Project>
<Name>MRULib</Name>
</ProjectReference>
</ItemGroup>
Expand Down
10 changes: 10 additions & 0 deletions source/MRULib/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)
)]
188 changes: 47 additions & 141 deletions source/MRULib/MRULib.csproj
Original file line number Diff line number Diff line change
@@ -1,160 +1,66 @@
<?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>{59C17825-DE5A-42BF-89A6-715B64AF89F8}</ProjectGuid>
<OutputType>library</OutputType>
<RootNamespace>MRULib</RootNamespace>
<AssemblyName>MRULib</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<TargetFrameworkProfile />
<TargetFrameworks>net451;netcoreapp3.0</TargetFrameworks>
<UseWPF>true</UseWPF>

<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.3.0.0</Version>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<Company>Open Source</Company>
<Product>MRULib</Product>
<Copyright>2017-2019</Copyright>
<Description>Implements a WPF/MVVM Control libray (with backend) that manages a Most Recently Used list of files.</Description>
<PackageProjectUrl>https://github.com/Dirkster99/MRULib</PackageProjectUrl>
<RepositoryUrl>https://github.com/Dirkster99/MRULib</RepositoryUrl>
<PackageId>Dirkster.MRULib</PackageId>
<Authors>https://github.com/Dirkster99/MRULib</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>MRU most recent files custom wpf control mvvm c# .net metro dark 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/MRULib/master/ProjectIcon.png</PackageIconUrl>

<!--
Readme.txt
https://raw.githubusercontent.com/Dirkster99/MRULib/master/README.md
-->

</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\MRULib.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\MRULib.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<PlatformTarget>x64</PlatformTarget>
<OutputPath>bin\x64\Debug\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<PlatformTarget>x64</PlatformTarget>
<OutputPath>bin\x64\Release\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<OutputPath>bin\x86\Debug\</OutputPath>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>

<ItemGroup>
<Compile Include="Controls\BindingProxy .cs" />
<Compile Include="Controls\PathTrimmingTextBlock.cs" />
<Compile Include="Controls\PathTrimmingFileHyperlink.xaml.cs">
<DependentUpon>PathTrimmingFileHyperlink.xaml</DependentUpon>
<Compile Update="Controls\CheckPin.xaml.cs">
<DependentUpon>CheckPin.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\FileHyperlink.xaml.cs">
<Compile Update="Controls\FileHyperlink.xaml.cs">
<DependentUpon>FileHyperlink.xaml</DependentUpon>
</Compile>
<Compile Include="Converters\BoolToVisibilityConverter.cs" />
<Compile Include="Converters\IntIsPinnedToVisibilityConverter.cs" />
<Compile Include="Converters\IntToBoolConverter.cs" />
<Compile Include="Converters\ZeroToVisibilityConverter.cs" />
<Compile Include="MRU\Enums\MoveMRUItem.cs" />
<Compile Include="MRU\Models\Persist\MRUEntry.cs" />
<Compile Include="MRU\Models\Persist\MRUEntrySerializer.cs" />
<Compile Include="MRU\Models\Persist\MRUList.cs" />
<Compile Include="MRU\Models\Persist\XmlSerializerUtil.cs" />
<Compile Include="MRU\Models\TimeSpanModel.cs" />
<Compile Include="MRU\Models\TimeSpanModelList.cs" />
<Compile Include="Interfaces\IMRUListViewModel.cs" />
<Compile Include="Interfaces\IMRUEntryViewModel.cs" />
<Compile Include="MRU_Service.cs" />
<Compile Include="Themes\ResourceKeys.cs" />
<Page Include="Controls\CheckPin.xaml">
<Generator>MSBuild:Compile</Generator>
<Compile Update="Controls\PathTrimmingFileHyperlink.xaml.cs">
<DependentUpon>PathTrimmingFileHyperlink.xaml</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<Page Update="Controls\CheckPin.xaml">
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\PathTrimmingFileHyperlink.xaml">
<Generator>MSBuild:Compile</Generator>
<Page Update="Controls\FileHyperlink.xaml">
<SubType>Designer</SubType>
</Page>
<Page Include="Controls\FileHyperlink.xaml">
<Page Update="Controls\PathTrimmingFileHyperlink.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Themes\DarkBrushes.xaml">
<Generator>MSBuild:Compile</Generator>
<Page Update="Themes\DarkBrushes.xaml">
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator>
<Page Update="Themes\Generic.xaml">
<SubType>Designer</SubType>
</Page>
<Compile Include="Controls\CheckPin.xaml.cs">
<DependentUpon>CheckPin.xaml</DependentUpon>
</Compile>
<Compile Include="MRU\Enums\GroupType.cs" />
<Compile Include="MRU\Models\FileSystemCommands.cs" />
<Compile Include="MRU\Models\FSItemType.cs" />
<Compile Include="MRU\Models\PathModel.cs" />
<Compile Include="MRU\ViewModels\Base\RelayCommand.cs" />
<Compile Include="MRU\ViewModels\GroupViewModel.cs" />
<Compile Include="MRU\ViewModels\Collections\CollectionBasedDictionary.cs" />
<Compile Include="MRU\ViewModels\Collections\CollectionBasedDictionary.DictionaryEnumerator.cs" />
<Compile Include="MRU\ViewModels\Collections\CollectionBasedDictionary.KeyCollection.cs" />
<Compile Include="MRU\ViewModels\Collections\CollectionBasedDictionary.ValueCollection.cs" />
<Compile Include="MRU\ViewModels\Collections\ObservableDictionary.cs" />
<Compile Include="MRU\ViewModels\Collections\ReadonlyObservableDictionary.cs" />
<Page Include="Themes\LightBrushes.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Update="Themes\LightBrushes.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="MRU\ViewModels\Base\BaseViewModel.cs" />
<Compile Include="MRU\ViewModels\MRUEntryViewModel.cs" />
<Compile Include="MRU\MRUListViewModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

</Project>
24 changes: 24 additions & 0 deletions source/MRULib/MRULib.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<Page Update="Controls\CheckPin.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Controls\FileHyperlink.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Controls\PathTrimmingFileHyperlink.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Themes\DarkBrushes.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Themes\Generic.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Themes\LightBrushes.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
</Project>
Loading

0 comments on commit a6610fa

Please sign in to comment.