mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 06:03:12 +08:00
Add the Server SDK to Billing (#6727)
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.Build.Traversal": "4.1.0",
|
"Microsoft.Build.Traversal": "4.1.0",
|
||||||
"Microsoft.Build.Sql": "1.0.0"
|
"Microsoft.Build.Sql": "1.0.0",
|
||||||
|
"Bitwarden.Server.Sdk": "1.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
<Sdk Name="Bitwarden.Server.Sdk" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<UserSecretsId>bitwarden-Billing</UserSecretsId>
|
<UserSecretsId>bitwarden-Billing</UserSecretsId>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Label="Server SDK settings">
|
||||||
|
<!-- These features will be gradually turned on -->
|
||||||
|
<BitIncludeFeatures>false</BitIncludeFeatures>
|
||||||
|
<BitIncludeTelemetry>false</BitIncludeTelemetry>
|
||||||
|
<BitIncludeAuthentication>false</BitIncludeAuthentication>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Billing' " />
|
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Billing' " />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\bitwarden_license\src\Commercial.Core\Commercial.Core.csproj" />
|
<ProjectReference Include="..\..\bitwarden_license\src\Commercial.Core\Commercial.Core.csproj" />
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ public class Program
|
|||||||
{
|
{
|
||||||
Host
|
Host
|
||||||
.CreateDefaultBuilder(args)
|
.CreateDefaultBuilder(args)
|
||||||
|
.UseBitwardenSdk()
|
||||||
.ConfigureWebHostDefaults(webBuilder =>
|
.ConfigureWebHostDefaults(webBuilder =>
|
||||||
{
|
{
|
||||||
webBuilder.UseStartup<Startup>();
|
webBuilder.UseStartup<Startup>();
|
||||||
|
|||||||
Reference in New Issue
Block a user