mirror of
https://github.com/bitwarden/server
synced 2026-01-01 16:13:33 +00:00
update projects to net47
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp2.0;net47</TargetFrameworks>
|
||||
<RootNamespace>Bit.Core</RootNamespace>
|
||||
<GenerateUserSecretsAttribute>false</GenerateUserSecretsAttribute>
|
||||
</PropertyGroup>
|
||||
@@ -75,11 +75,7 @@
|
||||
<PackageReference Include="YubicoDotNetClient" Version="1.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
|
||||
<PackageReference Include="Microsoft.Azure.NotificationHubs" Version="1.0.9" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if NET461
|
||||
#if NET47
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Core.Models.Table;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if NET461
|
||||
#if NET47
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Azure.NotificationHubs;
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Bit.Core.Utilities
|
||||
services.AddSingleton<IPushNotificationService, RelayPushNotificationService>();
|
||||
services.AddSingleton<IPushRegistrationService, RelayPushRegistrationService>();
|
||||
}
|
||||
#if NET461
|
||||
#if NET47
|
||||
else if(!globalSettings.SelfHosted)
|
||||
{
|
||||
services.AddSingleton<IPushNotificationService, NotificationHubPushNotificationService>();
|
||||
|
||||
Reference in New Issue
Block a user