diff --git a/src/AbpCompanyName.AbpProjectName.Core/Web/WebContentFolderHelper.cs b/src/AbpCompanyName.AbpProjectName.Core/Web/WebContentFolderHelper.cs index 60baa01..14fb95a 100644 --- a/src/AbpCompanyName.AbpProjectName.Core/Web/WebContentFolderHelper.cs +++ b/src/AbpCompanyName.AbpProjectName.Core/Web/WebContentFolderHelper.cs @@ -12,7 +12,7 @@ public static class WebContentDirectoryFinder { public static string CalculateContentRootFolder() { - var coreAssemblyDirectoryPath = Path.GetDirectoryName(typeof(AbpProjectNameCoreModule).Assembly.Location); + var coreAssemblyDirectoryPath = Path.GetDirectoryName(AppContext.BaseDirectory); if (coreAssemblyDirectoryPath == null) { throw new ApplicationException("Could not find location of AbpCompanyName.AbpProjectName.Core assembly!"); diff --git a/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/AbpCompanyName.AbpProjectName.EntityFrameworkCore.csproj b/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/AbpCompanyName.AbpProjectName.EntityFrameworkCore.csproj index 4bcceaf..451fc05 100644 --- a/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/AbpCompanyName.AbpProjectName.EntityFrameworkCore.csproj +++ b/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/AbpCompanyName.AbpProjectName.EntityFrameworkCore.csproj @@ -19,7 +19,7 @@ - + All diff --git a/src/AbpCompanyName.AbpProjectName.Web/AbpCompanyName.AbpProjectName.Web.csproj b/src/AbpCompanyName.AbpProjectName.Web/AbpCompanyName.AbpProjectName.Web.csproj index 478ef79..a62afa9 100644 --- a/src/AbpCompanyName.AbpProjectName.Web/AbpCompanyName.AbpProjectName.Web.csproj +++ b/src/AbpCompanyName.AbpProjectName.Web/AbpCompanyName.AbpProjectName.Web.csproj @@ -38,7 +38,7 @@ - + All diff --git a/test/AbpCompanyName.AbpProjectName.Tests/AbpCompanyName.AbpProjectName.Tests.csproj b/test/AbpCompanyName.AbpProjectName.Tests/AbpCompanyName.AbpProjectName.Tests.csproj index 4c658d1..2ca087a 100644 --- a/test/AbpCompanyName.AbpProjectName.Tests/AbpCompanyName.AbpProjectName.Tests.csproj +++ b/test/AbpCompanyName.AbpProjectName.Tests/AbpCompanyName.AbpProjectName.Tests.csproj @@ -9,6 +9,8 @@ false false false + true + true @@ -17,16 +19,16 @@ - + - - + + - + diff --git a/test/AbpCompanyName.AbpProjectName.Web.Tests/AbpCompanyName.AbpProjectName.Web.Tests.csproj b/test/AbpCompanyName.AbpProjectName.Web.Tests/AbpCompanyName.AbpProjectName.Web.Tests.csproj index d8af649..b6cad48 100644 --- a/test/AbpCompanyName.AbpProjectName.Web.Tests/AbpCompanyName.AbpProjectName.Web.Tests.csproj +++ b/test/AbpCompanyName.AbpProjectName.Web.Tests/AbpCompanyName.AbpProjectName.Web.Tests.csproj @@ -10,6 +10,8 @@ false false false + true + true @@ -18,7 +20,7 @@ - + @@ -31,4 +33,29 @@ + + + + + + + + + + + PreserveNewest + + + + + + + + + + + + + + diff --git a/test/AbpCompanyName.AbpProjectName.Web.Tests/Startup.cs b/test/AbpCompanyName.AbpProjectName.Web.Tests/Startup.cs index 0fb122b..b184b38 100644 --- a/test/AbpCompanyName.AbpProjectName.Web.Tests/Startup.cs +++ b/test/AbpCompanyName.AbpProjectName.Web.Tests/Startup.cs @@ -3,9 +3,11 @@ using Abp.AspNetCore.TestBase; using Abp.Dependency; using AbpCompanyName.AbpProjectName.EntityFrameworkCore; +using AbpCompanyName.AbpProjectName.Web.Controllers; using Castle.MicroKernel.Registration; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc.ApplicationParts; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; diff --git a/test/AbpCompanyName.AbpProjectName.Web.Tests/xunit.runner.json b/test/AbpCompanyName.AbpProjectName.Web.Tests/xunit.runner.json new file mode 100644 index 0000000..34b2fe2 --- /dev/null +++ b/test/AbpCompanyName.AbpProjectName.Web.Tests/xunit.runner.json @@ -0,0 +1,3 @@ +{ + "shadowCopy": false +} \ No newline at end of file