Skip to content

Commit

Permalink
Razor page namespace fix (#1326)
Browse files Browse the repository at this point in the history
* fixing razorpage namespace for the cli tool

* including folder path now
  • Loading branch information
deepchoudhery authored Apr 27, 2020
1 parent 84bf7c3 commit 20de751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VS.Web.CG.Mvc/RazorPage/RazorPageScaffolderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ protected RazorPageWithContextTemplateModel GetRazorPageWithContextTemplateModel

private string GetDefaultPageModelNamespaceName(string relativeFolderPath)
{
return NameSpaceUtilities.GetSafeNameSpaceFromPath(relativeFolderPath, ApplicationInfo.ApplicationName);
return NameSpaceUtilities.GetSafeNameSpaceFromPath(relativeFolderPath, _projectContext.RootNamespace);
}

private static string DetermineContentVersion(RazorPageGeneratorModel razorGeneratorModel)
Expand Down

0 comments on commit 20de751

Please sign in to comment.