Hi Volosoft,
This morning I downloaded the latest Visual Studio update (version 15.9.9). When editing one of my Entities I noticed that using the Power Tools caused Visual Studio to crash when updating one of the entity's attributes.
Steps to reproduce:
The installed Power Tools extension has version 1.8.1.2
For the time being I get around the issue by deleting the original entity and all code generated and creating fresh entities instead of regenerating them. (we are setting up a new project).
Kind regards, Roel van Happen
Hello,
We recently purchased ASP.NET Zero and started working on our installation.
I looked into adding a custom Metronic theme and I successfully added a new colour (using MetronicThemeChanger) to the pallette of the Default theme, including the custom theme folders with metronic-customize, etc.
However, I noticed that assets/common/styles/themes/mytheme/metronic-customize.css
is used and that assets/common/styles/themes/mytheme/metronic-customize.less
is not compiled/built to the .css
variant. So when I make changes to the .less
file, the changes are not reflected in the .css
file.
I saw that DynamicResourcesHelper.ts
includes the PrimeNG CSS and the above mentioned metronic-customize.css
, but how can I change this to include/use the .less
variant without changing core code? Changing it in DynamicResourcesHelper.ts
would mean that I can't upgrade without losing this modification. I can't edit AppPreBootstrap
, which seems to load in the DynamicResourcesHelper
, as that is basically core code as well.
I also tried adding the .less
file in angular.json
(tried it both before styles.css
and after it), but the changes in the .less
file are still overridden by the .css
one.
And I also tried using @import
for that file in src/styles.css
, which doesn't seem to work either.
Any tips on how to approach this would be appreciated. :)
Hello @ismcagdas,
I'll use the workaround in the meantime, whilst waiting for the new release.
Thanks for the help and quick reply! :)
Hi,
We are trying to Add Items to our menu from a database entitie. If we try to getAll we get the exeption that the user was not logged in. And if you login the menu is already loaded so it does not get the call to the database.
As an example we created the Entitie Car so in the menu we have Car but as a submenu we would like to see all the cars that are available inside the database. Car Audi BMW Tesla
How can we create this type of menu dynamically?
We are using the latest version of ASP.Net Zero ASP.Net Core MVC 7.2.0
The problem with the GetAll is that we are not logged in yet and the menu is determined on launch not on login. So there is no connection with the database. It seems that we need to somehow add a dynamic menu service but I'm a bit confused how to implement this. Do you have any examples for this?
Hello, We are trying to implement kanban in our project - ASP.Net core MVC so that we can make better use of the drag and drop functionalities. Reference: https://keenthemes.com/metronic/preview/demo12/components/extended/kanban-board.html We could see that the ASP.Net zero makes use of the Metronic for UI customization. Could you please let us know if there are any NPM or any other way to implement the Kanban in the ASP.Net zero application
Hello @ismcagdas
According to your own F.A.Q. Can I use all Metronic components ant themes in ASP.NET Zero? your answer is: ASP.NET Zero uses Metronic as the UI theme. Metronic is one of the world's most popular, strongest and richest UI themes, probably even the first. That's why we have chosen it. When you buy ASP.NET Zero, you will have access to all Metronic theme layouts and components. You can use all of them in your applications.
But it is not the case because Kanban is not implemented even though it is an component inside Metronic see the link in our previous question. When trying to implement this library globally because we want to use it on multiple pages the submenu's aren't working anymore.
So the question remains how to implement kanban globally in our project like the component from Metronic? And why isn't it already incorporated like stated in the F.A.Q.?
Hi,
The version used is 8.7.0.
We're currently trying to extend the chat functionality with a custom SignalR hub. Hoever, my colleague and I came across a very weird issue also illustrated in this thread: https://support.aspnetzero.com/QA/Questions/9080/Javascript-Error
The difference being that we didn't manage to encounter any exception using Postman, yet all properties of global variable abp
cannot be found. The two properties we're trying to access are abp.services.app
and abp.signalr
.
I've attached a screenshot to illustrate how logging the abp
to the console inside my partial view displays all the available and filled properties. But then, the next line of code (so no in-between tampering or mutation), it says it cannot call startConnection()
because abp.signalr
is undefined all of a sudden.
The startConnection()
method call is executed as such and we've mapped the hub in Startup.cs.
<script type="text/javascript">
var registrationChatHub = null;
var abp = abp;
console.log('ABP contents:', abp);
abp.signalr.startConnection(abp.appPath + 'signalr-chat-registration', function (connection) {
registrationChatHub = connection; // save reference
connection.on('getMessage', function (message) {
console.log('received msg:', message);
});
}).then(function (connection) {
abp.log.debug('Connected to RegistrationHub server.');
abp.event.trigger('registrationHub.connected');
});
abp.event.on('registrationHub.connected', function () {
registrationChatHub.invoke('sendMessage', 'Hello!');
});
</script>
Any help would be greatly appreciated.
I've followed the guide found at https://docs.aspnetzero.com/en/common/latest/Version-Updating and merged it to my development and resolved the conflicts as instructed on the linked page, but when I try to build the solution, it fails with 3 errors that always pop-up (the last ones in the screenshot just appeared today):
I do have .NET 5.0 SDK installed, so that shouldn't be an issue either.
Any help would be appreciated.
Hi,
Thank you for the information. I've re-done the merge conflicts and fixed that part along with it. It works now.
Thank you.