1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-09 07:08:15 -05:00

update projects to net47

This commit is contained in:
Kyle Spearrin 2017-11-16 11:01:49 -05:00
parent f18e517b1a
commit f2e2db52a1
6 changed files with 7 additions and 17 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<Version>1.14.2</Version> <Version>1.14.2</Version>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks> <TargetFrameworks>netcoreapp2.0;net47</TargetFrameworks>
<RootNamespace>Bit.Api</RootNamespace> <RootNamespace>Bit.Api</RootNamespace>
<UserSecretsId>bitwarden-Api</UserSecretsId> <UserSecretsId>bitwarden-Api</UserSecretsId>
</PropertyGroup> </PropertyGroup>
@ -15,7 +15,6 @@
<PackageReference Include="jsreport.AspNetCore" Version="1.0.0" /> <PackageReference Include="jsreport.AspNetCore" Version="1.0.0" />
<PackageReference Include="jsreport.Binary" Version="1.8.2" /> <PackageReference Include="jsreport.Binary" Version="1.8.2" />
<PackageReference Include="jsreport.Local" Version="1.0.3" /> <PackageReference Include="jsreport.Local" Version="1.0.3" />
<PackageReference Include="System.Net.Http" Version="4.3.3" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" /> <PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.0" /> <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.0" />
@ -25,11 +24,6 @@
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.0.2" /> <PackageReference Include="IdentityServer4.AccessTokenValidation" Version="2.0.2" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" /> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="2.0.0" /> <DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="2.0.0" />

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks> <TargetFrameworks>netcoreapp2.0;net47</TargetFrameworks>
<RootNamespace>Bit.Core</RootNamespace> <RootNamespace>Bit.Core</RootNamespace>
<GenerateUserSecretsAttribute>false</GenerateUserSecretsAttribute> <GenerateUserSecretsAttribute>false</GenerateUserSecretsAttribute>
</PropertyGroup> </PropertyGroup>
@ -75,11 +75,7 @@
<PackageReference Include="YubicoDotNetClient" Version="1.2.0" /> <PackageReference Include="YubicoDotNetClient" Version="1.2.0" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' "> <ItemGroup Condition=" '$(TargetFramework)' == 'net47' ">
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Data" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
<PackageReference Include="Microsoft.Azure.NotificationHubs" Version="1.0.9" /> <PackageReference Include="Microsoft.Azure.NotificationHubs" Version="1.0.9" />
</ItemGroup> </ItemGroup>

View File

@ -1,4 +1,4 @@
#if NET461 #if NET47
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Bit.Core.Models.Table; using Bit.Core.Models.Table;

View File

@ -1,4 +1,4 @@
#if NET461 #if NET47
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Azure.NotificationHubs; using Microsoft.Azure.NotificationHubs;

View File

@ -78,7 +78,7 @@ namespace Bit.Core.Utilities
services.AddSingleton<IPushNotificationService, RelayPushNotificationService>(); services.AddSingleton<IPushNotificationService, RelayPushNotificationService>();
services.AddSingleton<IPushRegistrationService, RelayPushRegistrationService>(); services.AddSingleton<IPushRegistrationService, RelayPushRegistrationService>();
} }
#if NET461 #if NET47
else if(!globalSettings.SelfHosted) else if(!globalSettings.SelfHosted)
{ {
services.AddSingleton<IPushNotificationService, NotificationHubPushNotificationService>(); services.AddSingleton<IPushNotificationService, NotificationHubPushNotificationService>();

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<Version>1.14.2</Version> <Version>1.14.2</Version>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks> <TargetFrameworks>netcoreapp2.0;net47</TargetFrameworks>
<RootNamespace>Bit.Identity</RootNamespace> <RootNamespace>Bit.Identity</RootNamespace>
<UserSecretsId>bitwarden-Identity</UserSecretsId> <UserSecretsId>bitwarden-Identity</UserSecretsId>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>