What's your project's github root URL?
Hi,
This sounds like another version of the user-role: customRole-role.
You can check the implementation code of module Identity: https://github.com/abpframework/abp/tree/dev/modules/identity
Some point:
Hi,
It works for me:
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(FileDescriptorController), IncludeSelf = true)]
[AllowAnonymous]
public class MyFileDescriptorController : FileDescriptorController
{
public MyFileDescriptorController(IFileDescriptorAppService fileDescriptorAppService) : base(fileDescriptorAppService)
{
}
[AllowAnonymous]
[HttpPost]
[Route("upload")]
public override Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
{
return FileDescriptorAppService.CreateAsync(directoryId, inputWithStream);
}
}
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IFileDescriptorAppService), typeof(FileDescriptorAppService), typeof(MyFileDescriptorAppService))]
[AllowAnonymous]
public class MyFileDescriptorAppService : FileDescriptorAppService
{
public MyFileDescriptorAppService(IFileManager fileManager,
IFileDescriptorRepository fileDescriptorRepository,
IBlobContainer<FileManagementContainer> blobContainer,
IDistributedCache<FileDownloadTokenCacheItem, string> downloadTokenCache)
: base(fileManager, fileDescriptorRepository, blobContainer, downloadTokenCache)
{
}
[AllowAnonymous]
public override async Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
{
return new FileDescriptorDto()
{
Name = "OK"
};
}
}
The system cannot find the file specified.
See: https://stackoverflow.com/questions/17840825/cryptographicexception-was-unhandled-system-cannot-find-the-specified-file
Hi,
The problem was fixed: https://github.com/abpframework/abp/pull/15927
You can put the file index.js in the Pages/Docs/Admin/Documents folder.
And it will get work, this is my project details:
BTW, You probably will see a style problem:
You can put the index.css file in the Pages/Documents/Project folder.
.code-toolbar .line-highlight {
margin-top: 1.5em !important;
background: rgba(233, 237, 241, 0.34) !important;
padding: 1px !important; }
.input-group .input-group-text{
background-color: transparent!important;
}
Hi,
Sorry again,
The rich text editor convert my reply and make it wrong.
Please try this: https://gist.github.com/realLiangshiwei/7ffd48434a102097ca9168016a8a5359
Hi,
If you want to keep the sub-module independent, you should use it as a separate application deployment.
But it will make your project more complex, it used to be a single application, but now it has become a distributed application
I can show you how to do it if this is what you want.
Anyway as a workaround I just added the migration files to the main ef project manually.
Yes, you need to add the migration file manually
Hi,
The CSS Isolation can't work with RazorRuntimeCompilation: https://github.com/dotnet/aspnetcore/issues/42411
ABP enable the RazorRuntimeCompilation by default, you can disable it:
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<AbpAspNetCoreMvcOptions>(options =>
{
options.EnableRazorRuntimeCompilationOnDevelopment = false;
});
}