Skip to content

Commit

Permalink
Merge pull request #149 from progdogusmc/dotnetcore-support
Browse files Browse the repository at this point in the history
.NET Core 3.1 Support
  • Loading branch information
damieng authored Apr 1, 2020
2 parents ce0ddcc + 56e7e35 commit f260de8
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 140 deletions.
15 changes: 12 additions & 3 deletions nuget/Auth0.OidcClient.WPF.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package>
<metadata>
<id>Auth0.OidcClient.WPF</id>
<version>3.1.3</version>
<version>3.1.4</version>
<authors>Auth0</authors>
<owners>Auth0</owners>
<license type="expression">Apache-2.0</license>
Expand All @@ -12,6 +12,9 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Auth0 OIDC Client for WPF apps</description>
<releaseNotes>
Version 3.1.4
- Now supports .NET Core 3.1 projects

Version 3.1.3
- WPF version is now actually strong-named.

Expand Down Expand Up @@ -75,11 +78,17 @@
<dependency id="Auth0.OidcClient.Core" version="3.1.2" />
<dependency id="Microsoft.Toolkit.Wpf.UI.Controls.WebView" version="6.0.0"/>
</group>
<group targetFramework="netcoreapp3.1">
<dependency id="Auth0.OidcClient.Core" version="3.1.2" />
<dependency id="Microsoft.Toolkit.Forms.UI.Controls.WebView" version="6.0.0"/>
</group>
</dependencies>
</metadata>
<files>
<file src="..\src\Auth0.OidcClient.WPF\bin\Release\Auth0.OidcClient.dll" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WPF\bin\Release\Auth0.OidcClient.xml" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WPF\bin\Release\net462\Auth0.OidcClient.dll" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WPF\bin\Release\net462\Auth0.OidcClient.xml" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WPF\bin\Release\netcoreapp3.1\Auth0.OidcClient.dll" target="lib\netcoreapp3.1" />
<file src="..\src\Auth0.OidcClient.WPF\bin\Release\netcoreapp3.1\Auth0.OidcClient.xml" target="lib\netcoreapp3.1" />
<file src="..\build\Auth0Icon.png" />
</files>
</package>
15 changes: 12 additions & 3 deletions nuget/Auth0.OidcClient.WinForms.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package>
<metadata>
<id>Auth0.OidcClient.WinForms</id>
<version>3.1.2</version>
<version>3.1.3</version>
<authors>Auth0</authors>
<owners>Auth0</owners>
<license type="expression">Apache-2.0</license>
Expand All @@ -12,6 +12,9 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Auth0 OIDC Client for WinForms apps</description>
<releaseNotes>
Version 3.1.3
- Now supports .NET Core 3.1 projects

Version 3.1.2
- Allow ID tokens "issued at" (iat) claims from "the future" to allow
slow local clocks on mobile and desktop devices.
Expand Down Expand Up @@ -74,11 +77,17 @@
<dependency id="Auth0.OidcClient.Core" version="3.1.2" />
<dependency id="Microsoft.Toolkit.Forms.UI.Controls.WebView" version="6.0.0"/>
</group>
<group targetFramework="netcoreapp3.1">
<dependency id="Auth0.OidcClient.Core" version="3.1.2" />
<dependency id="Microsoft.Toolkit.Forms.UI.Controls.WebView" version="6.0.0"/>
</group>
</dependencies>
</metadata>
<files>
<file src="..\src\Auth0.OidcClient.WinForms\bin\Release\Auth0.OidcClient.dll" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WinForms\bin\Release\Auth0.OidcClient.xml" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WinForms\bin\Release\net462\Auth0.OidcClient.dll" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WinForms\bin\Release\net462\Auth0.OidcClient.xml" target="lib\net462" />
<file src="..\src\Auth0.OidcClient.WinForms\bin\Release\netcoreapp3.1\Auth0.OidcClient.dll" target="lib\netcoreapp3.1" />
<file src="..\src\Auth0.OidcClient.WinForms\bin\Release\netcoreapp3.1\Auth0.OidcClient.xml" target="lib\netcoreapp3.1" />
<file src="..\build\Auth0Icon.png" />
</files>
</package>
85 changes: 8 additions & 77 deletions src/Auth0.OidcClient.WPF/Auth0.OidcClient.WPF.csproj
Original file line number Diff line number Diff line change
@@ -1,105 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{F5F9BBD8-0BC0-415C-9DF1-D830699B00C4}</ProjectGuid>
<TargetFrameworks>net462;netcoreapp3.1</TargetFrameworks>
<OutputType>library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Auth0.OidcClient</RootNamespace>
<AssemblyName>Auth0.OidcClient</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<TargetFrameworkProfile />
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWPF>true</UseWPF>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;WPF</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TargetFrameworks>net462;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;WPF</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\Auth0.OidcClient.xml</DocumentationFile>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\build\Auth0OidcClientStrongName.snk</AssemblyOriginatorKeyFile>
<TargetFrameworks>net462;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Auth0Client.cs" />
<Compile Include="WebBrowserBrowser.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>
<Compile Include="WebViewBrowser.cs" />
<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>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Auth0.OidcClient.Core\Auth0.OidcClient.Core.csproj">
<Project>{1f79db59-f3a8-45b7-972b-ecd15259d1c9}</Project>
<Name>Auth0.OidcClient.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Auth0.OidcClient.Core\Auth0.OidcClient.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="IdentityModel.OidcClient">
<Version>3.1.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Toolkit.Wpf.UI.Controls.WebView">
<Version>6.0.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\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>
65 changes: 8 additions & 57 deletions src/Auth0.OidcClient.WinForms/Auth0.OidcClient.WinForms.csproj
Original file line number Diff line number Diff line change
@@ -1,85 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{34085D04-7E7B-4A5E-8377-D3995983919E}</ProjectGuid>
<TargetFrameworks>net462;netcoreapp3.1</TargetFrameworks>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Auth0.OidcClient</RootNamespace>
<AssemblyName>Auth0.OidcClient</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;WINFORMS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TargetFrameworks>net462;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;WINFORMS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\Auth0.OidcClient.xml</DocumentationFile>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\build\Auth0OidcClientStrongName.snk</AssemblyOriginatorKeyFile>
<TargetFrameworks>net462;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows.Forms" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Xml" />
<Reference Include="mscorlib" />
</ItemGroup>
<ItemGroup>
<Compile Include="Auth0Client.cs" />
<Compile Include="ExtendedWebBrowser.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="WebBrowserBrowser.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="WebViewBrowser.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.manifest" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Auth0.OidcClient.Core\Auth0.OidcClient.Core.csproj">
<Project>{1f79db59-f3a8-45b7-972b-ecd15259d1c9}</Project>
<Name>Auth0.OidcClient.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Auth0.OidcClient.Core\Auth0.OidcClient.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="IdentityModel.OidcClient">
<Version>3.1.2</Version>
</PackageReference>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Toolkit.Forms.UI.Controls.WebView">
<Version>6.0.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\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>

0 comments on commit f260de8

Please sign in to comment.