change compilation symbol and fix Sqlite database isssue.

This commit is contained in:
Oceania2018 2018-08-21 17:37:09 -05:00
parent a7e0280b1d
commit a7acf7e14d
9 changed files with 15 additions and 7 deletions

View file

@ -45,7 +45,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="DotNetToolkit" Version="1.6.0" /> <PackageReference Include="DotNetToolkit" Version="1.6.0" />
<PackageReference Include="EntityFrameworkCore.BootKit" Version="1.9.0" /> <PackageReference Include="EntityFrameworkCore.BootKit" Version="1.9.1" />
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="2.1.1" /> <PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="2.1.1" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" /> <PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="RestSharp" Version="106.3.1" /> <PackageReference Include="RestSharp" Version="106.3.1" />

View file

@ -5,6 +5,10 @@
<Platforms>AnyCPU;x64</Platforms> <Platforms>AnyCPU;x64</Platforms>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Fasttext\" /> <Folder Include="Fasttext\" />
</ItemGroup> </ItemGroup>

View file

@ -17,6 +17,10 @@
<PackageTags>BotSharp, NLP, NLU, POS, CRS, NER, LSTM, CRF</PackageTags> <PackageTags>BotSharp, NLP, NLU, POS, CRS, NER, LSTM, CRF</PackageTags>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\BotSharp.MachineLearning\BotSharp.MachineLearning.csproj" /> <ProjectReference Include="..\BotSharp.MachineLearning\BotSharp.MachineLearning.csproj" />
</ItemGroup> </ItemGroup>

View file

@ -20,7 +20,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netcoreapp2.1\BotSharp.RestApi.xml</DocumentationFile> <DocumentationFile>bin\Debug\netcoreapp2.1\BotSharp.RestApi.xml</DocumentationFile>
<DefineConstants>TRACE;DEBUG;MODE_RASA</DefineConstants> <DefineConstants>TRACE;DEBUG;RASA_UI</DefineConstants>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">

View file

@ -6,7 +6,7 @@ using System.Text;
namespace BotSharp.RestApi.Rasa namespace BotSharp.RestApi.Rasa
{ {
#if MODE_RASA #if RASA_UI
[Route("[controller]")] [Route("[controller]")]
public class ConfigController : ControllerBase public class ConfigController : ControllerBase
{ {

View file

@ -8,7 +8,7 @@ using System.Text;
namespace BotSharp.RestApi.Rasa namespace BotSharp.RestApi.Rasa
{ {
#if MODE_RASA #if RASA_UI
[Route("[controller]")] [Route("[controller]")]
public class ParseController : ControllerBase public class ParseController : ControllerBase
{ {

View file

@ -6,7 +6,7 @@ using System.Text;
namespace BotSharp.RestApi.Rasa namespace BotSharp.RestApi.Rasa
{ {
#if MODE_RASA #if RASA_UI
[Route("[controller]")] [Route("[controller]")]
public class StatusController : ControllerBase public class StatusController : ControllerBase
{ {

View file

@ -13,7 +13,7 @@ using System.Threading.Tasks;
namespace BotSharp.RestApi.Rasa namespace BotSharp.RestApi.Rasa
{ {
#if MODE_RASA #if RASA_UI
[Route("[controller]")] [Route("[controller]")]
public class TrainController : ControllerBase public class TrainController : ControllerBase
{ {

View file

@ -5,7 +5,7 @@ using System.Text;
namespace BotSharp.RestApi.Rasa namespace BotSharp.RestApi.Rasa
{ {
#if MODE_RASA #if RASA_UI
[Route("[controller]")] [Route("[controller]")]
public class VersionController : ControllerBase public class VersionController : ControllerBase
{ {