Skip to content

Commit 885520a

Browse files
committed
#14: Fix migration problem
1 parent 87f9173 commit 885520a

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

angular/AbpCompanyName.AbpProjectName.AngularUI.sln

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio 15
43
VisualStudioVersion = 15.0.26228.4
@@ -8,25 +7,25 @@ EndProject
87
Global
98
GlobalSection(SolutionConfigurationPlatforms) = preSolution
109
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
1210
Debug|x64 = Debug|x64
1311
Debug|x86 = Debug|x86
12+
Release|Any CPU = Release|Any CPU
1413
Release|x64 = Release|x64
1514
Release|x86 = Release|x86
1615
EndGlobalSection
1716
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1817
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1918
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
20-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x64.ActiveCfg = Debug|x64
21-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x64.Build.0 = Debug|x64
22-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x86.ActiveCfg = Debug|x86
23-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x86.Build.0 = Debug|x86
19+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x64.ActiveCfg = Debug|Any CPU
20+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x64.Build.0 = Debug|Any CPU
21+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x86.ActiveCfg = Debug|Any CPU
22+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Debug|x86.Build.0 = Debug|Any CPU
2423
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
2524
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|Any CPU.Build.0 = Release|Any CPU
26-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x64.ActiveCfg = Release|x64
27-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x64.Build.0 = Release|x64
28-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x86.ActiveCfg = Release|x86
29-
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x86.Build.0 = Release|x86
25+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x64.ActiveCfg = Release|Any CPU
26+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x64.Build.0 = Release|Any CPU
27+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x86.ActiveCfg = Release|Any CPU
28+
{11BD8782-23F0-45A0-9A00-A213373B0F5D}.Release|x86.Build.0 = Release|Any CPU
3029
EndGlobalSection
3130
GlobalSection(SolutionProperties) = preSolution
3231
HideSolutionNode = FALSE

aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Web/WebContentFolderHelper.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,19 @@ public static string CalculateContentRootFolder()
2929
directoryInfo = directoryInfo.Parent;
3030
}
3131

32-
return Path.Combine(directoryInfo.FullName, @"src\AbpCompanyName.AbpProjectName.Web");
32+
var webMvcFolder = Path.Combine(directoryInfo.FullName, @"src\AbpCompanyName.AbpProjectName.Web.Mvc");
33+
if (Directory.Exists(webMvcFolder))
34+
{
35+
return webMvcFolder;
36+
}
37+
38+
var webHostFolder = Path.Combine(directoryInfo.FullName, @"src\AbpCompanyName.AbpProjectName.Web.Host");
39+
if (Directory.Exists(webHostFolder))
40+
{
41+
return webHostFolder;
42+
}
43+
44+
throw new ApplicationException("Could not find root folder of the web project!");
3345
}
3446

3547
private static bool DirectoryContains(string directory, string fileName)

aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFramework/AbpCompanyName.AbpProjectName.EntityFramework.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Migrator.EF6.Tools" Version="1.0.8">
19+
<PackageReference Include="Migrator.EF6.Tools" Version="1.1.0">
2020
<PrivateAssets>All</PrivateAssets>
2121
</PackageReference>
2222
<PackageReference Include="Abp.EntityFramework" Version="1.5.0" />
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<DotNetCliToolReference Include="Migrator.EF6.Tools" Version="1.0.8" />
32+
<DotNetCliToolReference Include="Migrator.EF6.Tools" Version="1.1.0" />
3333
</ItemGroup>
3434

3535
</Project>

0 commit comments

Comments
 (0)