Change host project type from Sdk to Sdk.Web

This commit is contained in:
Cyberboss
2018-08-15 10:44:00 -04:00
parent 6fc3158ba9
commit 29864dfd59
3 changed files with 29 additions and 8 deletions
@@ -143,7 +143,7 @@ namespace Tgstation.Server.Host.Models
var wasEmpty = false;
if (!databaseConfiguration.NoMigrations)
{
Logger.LogWarning("Running in debug mode. Using all or nothing migration strategy!");
Logger.LogWarning("Using all or nothing migration strategy!");
await Database.EnsureCreatedAsync(cancellationToken).ConfigureAwait(false);
}
else
@@ -0,0 +1,27 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:52906/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Tgstation.Server.Host": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:52907/"
}
}
}
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<DebugType>Full</DebugType>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
@@ -43,11 +42,6 @@
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.2.4" />
<PackageReference Include="Z.EntityFramework.Plus.EFCore" Version="1.8.5" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Tgstation.Server.Api\Tgstation.Server.Api.csproj" />