[rogercprops] said: Tried both commands and they failed dotnet tool install -g Volo.Abp.Suite --add-source https://nuget.abp.io/<mykey>/v3/index.json Tool 'volo.abp.suite' failed to update due to the following: The settings file in the tool's NuGet package is invalid: Entry point file 'Volo.Abp.Suite.dll' for command 'abp-suite' was not found in the package. Tool 'volo.abp.suite' failed to install. Contact the tool author for assistance. rogerhopkins@Rs-MBP-3 .store % dotnet nuget add source https://nuget.abp.io/<mykey>/index.json error: The source specified has already been added to the list of available package sources. Provide a unique source.
When you run abp login-info
command, do you see your organization, email etc.?
For example:
[htalavera] said: Got it. We were able to make it work. Thank you for the assistance.
Thank you for the detailed explanation. Happy to help :)
[IgorG] said:
for some reason i get an error Volo.Abp.Studio.AbpStudioException: Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown.
i logged in using command:
abp login
What is your license type? (It should be Business
or Enterprise
to be able to get the source code of the module.)
[rogercprops] said: I ran the abp suite command abp suite [07:59:30 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli Checking extensions... 📌 ABP CLI 1.0.1 The application to execute does not exist: '/Users/rogerhopkins/.dotnet/tools/.store/volo.abp.suite/9.2.0/volo.abp.suite/9.2.0/tools/net9.0/any/Volo.Abp.Suite.dll'.
So I went through the steps to do a clean uninstall here: https://abp.io/docs/latest/suite/how-to-uninstall
I tried reinstalling and got this message: abp suite install [08:06:44 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli Checking extensions... [08:06:46 INF] Installing ABP Suite latest version... Tool 'volo.abp.suite' failed to update due to the following: The settings file in the tool's NuGet package is invalid: Entry point file 'Volo.Abp.Suite.dll' for command 'abp-suite' was not found in the package. Tool 'volo.abp.suite' failed to install. Contact the tool author for assistance.
So then I uninstalled ABP Studio, downloaded the install package and reinstalled. In Studio I tried to open Abp Suite and got a prompt that it wasn't installed and asked if I wanted to install. I accepted and that install failed.
So I ran abp suite from terminal and got this message: abp suite install [08:08:27 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli Checking extensions... [08:08:28 INF] Installing ABP Suite latest version... Tool 'volo.abp.suite' failed to update due to the following: The settings file in the tool's NuGet package is invalid: Entry point file 'Volo.Abp.Suite.dll' for command 'abp-suite' was not found in the package. Tool 'volo.abp.suite' failed to install. Contact the tool author for assistance. [08:08:36 INF] You can also run the following command to install ABP Suite. [08:08:36 INF] dotnet tool install -g Volo.Abp.Suite --add-source https://nuget.abp.io/<your-private-key>/v3/index.json
Hi, it looks like nuget.abp.io
hasn't been added as a global NuGet source, which is why you're encountering this issue. You can resolve it by installing ABP Suite using the following command:
dotnet tool install -g Volo.Abp.Suite --add-source https://nuget.abp.io/<your-private-key>/v3/index.json
Alternatively, you can first add the NuGet source globally with:
dotnet nuget add source https://nuget.abp.io/<your-private-key>/v3/index.json
Then, install ABP Suite by running:
abp suite install
[IgorG] said:
[EngincanV] said: Hi, when you need to add new columns or extend existing module entities, the recommended approach is to use Module Entity Extensions. This method automatically includes the new columns in the DataGrid, as well as in the create and update forms.
However, it doesn't support autocomplete functionality out of the box. From your scenario, it looks like you need an autocomplete component that can filter or search for an entity record as the user types. In this case, you'll need to implement the required changes manually.
To do this:
- Override the
UserManagement.razor
page in the identity-pro module.- Add your custom autocomplete component to both the edit and create models.
- On the backend side, extend the
IdentityUser
entity in your application by creating a new user entity and add your custom logic accordingly.Regards.
Override the UserManagement.razor page in the identity-pro module. - in this case i need the layout of the UserManagement.razor page. Where can i get it ?
Hi, you can get the source code of the identity-pro module with the following command:
abp get-source Volo.Abp.Identity.Pro
This command will install the source code of the Identity Pro module (I guess you have access?), and then you can find the UserManagement.razor
in the Blazor project.
Regards.
[htalavera] said: Just to clarify, if we extend the PermissionAppService to include inherited permissions and return them to the UI correctly, will any changes made to the enabled permissions at the user level be saved?
Hi, simply extending the PermissionAppService.GetAsync
method to display inherited permissions in the UI won't automatically enable saving changes to those permissions at the user level.
This is because when permissions are granted via the user or role permission models, they apply only to that specific user or role. In your case, since the permissions are globally granted to tenant users, overriding them at the user level won’t have any real effect (except for adding a few redundant records to the database). So, while newly granted permissions may work as expected, attempting to un-grant inherited ones likely won't take effect.
To handle this properly, you may need to override the UpdateAsync
method in the PermissionAppService
to apply your custom logic and review GlobalPermissionValueProvider
again.
Regards.
Hi, when you need to add new columns or extend existing module entities, the recommended approach is to use Module Entity Extensions. This method automatically includes the new columns in the DataGrid, as well as in the create and update forms.
However, it doesn't support autocomplete functionality out of the box. From your scenario, it looks like you need an autocomplete component that can filter or search for an entity record as the user types. In this case, you'll need to implement the required changes manually.
To do this:
UserManagement.razor
page in the identity-pro module.IdentityUser
entity in your application by creating a new user entity and add your custom logic accordingly.Regards.
[rogercprops] said: The above steps didn't resolve the problem
Hi, could you please open a new terminal and run the abp suite
command, then share the output with us?
If you've recently upgraded ABP Studio, created a new solution, and then attempted to open ABP Suite, ABP Studio first checks the project's compatibility with your installed ABP Suite version. If there's a version mismatch, it prompts you to update ABP Suite before launching it.
In some cases, if the suite is launched before the update completes, it can result in errors like the one you're experiencing. By running the abp suite
command manually, we can confirm whether this is the issue.
Regards
[nguyenngoc.son] said: If we have multi templates and each template have different model, how we can do it dynamic instead of hardcode the model for each template
Hi, the model does not have to be a named class, it can be an anonymous class with the related properties. So, maybe you can have a key-value pairs (or dictionary to be more specific), convert it to an ExpandoObject
and pass it as a model like below:
// Get these values from an input as key-value
var dictionary = new Dictionary<string, string>
{
{ "Name", "John" },
{ "Age", "30" },
{ "City", "New York" }
};
// Convert to ExpandoObject (which behaves like an anonymous type)
dynamic expando = new ExpandoObject();
var expandoDict = (IDictionary<string, object>)expando;
foreach (var kvp in dictionary)
{
expandoDict[kvp.Key] = kvp.Value;
}
// Use TemplateRenderer
var rendered = await _templateRenderer.RenderAsync(
templateContent,
expando,
"Razor"
);
Hi, you can use the script that was shared at https://abp.io/qa/questions/8627/3a17775e-701a-1b24-6604-8bc0622ac518 and pass the version as 0.9.8
.
Regards.