Skip to content

Commit

Permalink
(MahAppsGH-3709) Add TargetFramework .NET Core 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Dec 5, 2019
1 parent 59f9f16 commit 567f528
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,6 @@ src/MahApps.Metro/Styles/Themes/*.xaml

# cake
tools/

# XamlStyler
!XamlStyler/
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ image: Visual Studio 2019
test: off

install:
- cinst dotnetcore-sdk
- cinst dotnetcore-sdk --version=3.1.100

pull_requests:
do_not_increment_build_number: false
Expand Down
2 changes: 2 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ void SignFiles(IEnumerable<FilePath> files, string description)
}

Task("Sign")
.WithCriteria(() => !isPullRequest)
.ContinueOnError()
.Does(() =>
{
Expand All @@ -228,6 +229,7 @@ Task("Sign")
});

Task("SignNuGet")
.WithCriteria(() => !isPullRequest)
.ContinueOnError()
.Does(() =>
{
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<p>
A toolkit for creating metro-style WPF applications. Lots of goodness out-of-the box.
</p>
<p>
Supporting .NET Framework (4.5+) and .NET Core (3.0 and 3.1)
</p>
<a href="https://gitter.im/MahApps/MahApps.Metro">
<img src="https://img.shields.io/badge/Gitter-Join%20Chat-green.svg?style=flat-square">
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.Props
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project>
<!-- Project properties -->
<PropertyGroup>
<TargetFrameworks>net45;net46;net47;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net45;net46;net47;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<AutoGenerateBindingRedirects Condition=" $(TargetFramework.StartsWith('net4')) ">true</AutoGenerateBindingRedirects>
<LangVersion>7.3</LangVersion>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFrameworks>net45;net46;net47</TargetFrameworks>
<AssemblyName>MahApps.Metro.Caliburn.Demo</AssemblyName>
<RootNamespace>Caliburn.Metro.Demo</RootNamespace>
<DisableFody Condition="'$(Configuration)' == 'Debug' or '$(TargetFramework)' == 'netcoreapp3.0'">true</DisableFody>
<DisableFody Condition=" '$(Configuration)' == 'Debug' or $(TargetFramework.StartsWith('netcoreapp')) ">true</DisableFody>
</PropertyGroup>
<PropertyGroup>
<OutputType>WinExe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFrameworks>net45;net46;net47</TargetFrameworks>
<AssemblyName>MahApps.Metro.Demo</AssemblyName>
<RootNamespace>MetroDemo</RootNamespace>
<DisableFody Condition="'$(Configuration)' == 'Debug' or '$(TargetFramework)' == 'netcoreapp3.0'">true</DisableFody>
<DisableFody Condition=" '$(Configuration)' == 'Debug' or $(TargetFramework.StartsWith('netcoreapp')) ">true</DisableFody>
</PropertyGroup>
<PropertyGroup>
<OutputType>WinExe</OutputType>
Expand All @@ -16,7 +16,7 @@
<ItemGroup>
<ProjectReference Include="..\..\MahApps.Metro\MahApps.Metro.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp3.0'">
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) ">
<Reference Include="System.ComponentModel.DataAnnotations" />
</ItemGroup>
<ItemGroup>
Expand Down
10 changes: 9 additions & 1 deletion src/MahApps.Metro/Directory.Build.Targets
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<ItemGroup>
<None Include="..\..\mahapps.metro.logo.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<!-- NuGet -->
<PropertyGroup>
<Authors>Jan Karger, Dennis Daume, Brendan Forster, Paul Jenkins, Jake Ginnivan, Alex Mitchell</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/MahApps/MahApps.Metro</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/MahApps/MahApps.Metro/develop/mahapps.metro.logo.png</PackageIconUrl>
<PackageIcon>mahapps.metro.logo.png</PackageIcon>
<PackageTags>WPF;UI;Metro;Modern;Material;XAML;Toolkit;Library;.NET;OSS;OpenSource</PackageTags>
<PackageReleaseNotes>https://github.com/MahApps/MahApps.Metro/releases</PackageReleaseNotes>
<RepositoryUrl>https://github.com/MahApps/MahApps.Metro.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GenerateLibraryLayout>true</GenerateLibraryLayout>
</PropertyGroup>

<!-- Sign assembly -->
<PropertyGroup>
<SignAssembly>True</SignAssembly>
Expand Down
8 changes: 5 additions & 3 deletions src/MahApps.Metro/MahApps.Metro.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<!-- Project properties -->
<PropertyGroup>
<TargetFrameworks>net45;net46;net47;netcoreapp3.0</TargetFrameworks>
<AssemblyName>MahApps.Metro</AssemblyName>
<Title>MahApps.Metro</Title>
<RootNamespace>MahApps.Metro</RootNamespace>
<DefaultItemExcludes>$(DefaultItemExcludes);**\*.Template.xaml</DefaultItemExcludes>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp3.0'">
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) ">
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ControlzEx" Version="[4.*, 5.0)" />
<PackageReference Include="Newtonsoft.Json" Version="12.*" PrivateAssets="All" />
<PackageReference Include="XamlColorSchemeGenerator" Version="3.0.0.31" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2*" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- Items include -->
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Mahapps.Metro.Tests/MahApps.Metro.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ItemGroup>
<ProjectReference Include="..\MahApps.Metro\MahApps.Metro.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp3.0'">
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) ">
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.ComponentModel.DataAnnotations" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "3.0.100"
"version": "3.1"
}
}

0 comments on commit 567f528

Please sign in to comment.