Browse Source

Simplified virtual file set adding for embedded files sets.

pull/179/head
Halil İbrahim Kalkan 9 years ago
parent
commit
441233fc07
  1. 12
      src/AbpDesk/AbpDesk.MongoBlog/AbpDesk/Blogging/AbpDeskMongoBlogModule.cs
  2. 20
      src/Volo.Abp.Account.Web/AbpAccountWebModule.cs
  3. 12
      src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/AbpAspNetCoreMvcUiBootstrapModule.cs
  4. 12
      src/Volo.Abp.AspNetCore.Mvc.UI/AbpAspNetCoreMvcUiModule.cs
  5. 20
      src/Volo.Abp.Identity.Web/AbpIdentityWebModule.cs

12
src/AbpDesk/AbpDesk.MongoBlog/AbpDesk/Blogging/AbpDeskMongoBlogModule.cs

@ -28,17 +28,9 @@ namespace AbpDesk.Blogging
{ {
options.FileSets.Add( options.FileSets.Add(
new EmbeddedFileSet( new EmbeddedFileSet(
"/Areas/", "/",
GetType().Assembly, GetType().Assembly,
"Areas" "" //TODO: This is not tested yet!
)
);
options.FileSets.Add(
new EmbeddedFileSet(
"/wwwroot/",
GetType().Assembly,
"wwwroot" //TODO: This is not tested yet!
) )
); );
}); });

20
src/Volo.Abp.Account.Web/AbpAccountWebModule.cs

@ -21,25 +21,9 @@ namespace Volo.Abp.Account.Web
{ {
options.FileSets.Add( options.FileSets.Add(
new EmbeddedFileSet( new EmbeddedFileSet(
"/Areas/", "/",
GetType().GetTypeInfo().Assembly, GetType().GetTypeInfo().Assembly,
"Volo.Abp.Account.Web.Areas" "Volo.Abp.Account.Web"
)
);
options.FileSets.Add(
new EmbeddedFileSet(
"/Pages/",
GetType().GetTypeInfo().Assembly,
"Volo.Abp.Account.Web.Pages"
)
);
options.FileSets.Add(
new EmbeddedFileSet(
"/wwwroot/",
GetType().GetTypeInfo().Assembly,
"Volo.Abp.Account.Web.wwwroot"
) )
); );
}); });

12
src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/AbpAspNetCoreMvcUiBootstrapModule.cs

@ -19,17 +19,9 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
{ {
options.FileSets.Add( options.FileSets.Add(
new EmbeddedFileSet( new EmbeddedFileSet(
"/wwwroot/", "/",
GetType().GetTypeInfo().Assembly, GetType().GetTypeInfo().Assembly,
"Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.wwwroot" "Volo.Abp.AspNetCore.Mvc.UI.Bootstrap"
)
);
options.FileSets.Add(
new EmbeddedFileSet(
"/Views/",
GetType().GetTypeInfo().Assembly,
"Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Views"
) )
); );
}); });

12
src/Volo.Abp.AspNetCore.Mvc.UI/AbpAspNetCoreMvcUiModule.cs

@ -19,17 +19,9 @@ namespace Volo.Abp.AspNetCore.Mvc
{ {
options.FileSets.Add( options.FileSets.Add(
new EmbeddedFileSet( new EmbeddedFileSet(
"/Views/", "/",
GetType().GetTypeInfo().Assembly, GetType().GetTypeInfo().Assembly,
"Volo.Abp.AspNetCore.Mvc.Views" "Volo.Abp.AspNetCore.Mvc"
)
);
options.FileSets.Add(
new EmbeddedFileSet(
"/wwwroot/",
GetType().GetTypeInfo().Assembly,
"Volo.Abp.AspNetCore.Mvc.wwwroot"
) )
); );
}); });

20
src/Volo.Abp.Identity.Web/AbpIdentityWebModule.cs

@ -27,25 +27,9 @@ namespace Volo.Abp.Identity.Web
{ {
options.FileSets.Add( options.FileSets.Add(
new EmbeddedFileSet( new EmbeddedFileSet(
"/Pages/", "/",
GetType().Assembly, GetType().Assembly,
"Volo.Abp.Identity.Web.Pages" "Volo.Abp.Identity.Web"
)
);
options.FileSets.Add(
new EmbeddedFileSet(
"/Areas/",
GetType().Assembly,
"Volo.Abp.Identity.Web.Areas"
)
);
options.FileSets.Add(
new EmbeddedFileSet(
"/wwwroot/",
GetType().Assembly,
"Volo.Abp.Identity.Web.wwwroot"
) )
); );
}); });

Loading…
Cancel
Save