Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I can't seem to get my code executed, if I put it in the App_Code folder. If I put it in a dll it works fine.
It's just the example from the docs http://documentation.teacommerce.net/net-api/price-calculators/product-calculator/
Does it have something to do with AutoFac?
/Bo
At the moment Tea Commerce only look at .dll files in the bin folder. So that is why. If you have a good reference on the web to how to implement it for App_Code as well - then I would be more than happy to add it to Tea Commerce.
Kind regardsAnders
Hi Anders
Mayby you could take a look at the Umbraco core, because they are able to do it. I have no problem registering a ApplicationEventHandler in App_Code
How about this. This will find App_Code compiled assemblies
foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()){ ......}
Hi Bo
It will be implemented in Tea Commerce 2.2.1. Just tested it and it works. Thanks for the help!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Can't override calculaters in v2 from App_Code
Hi
I can't seem to get my code executed, if I put it in the App_Code folder. If I put it in a dll it works fine.
It's just the example from the docs http://documentation.teacommerce.net/net-api/price-calculators/product-calculator/
Does it have something to do with AutoFac?
/Bo
At the moment Tea Commerce only look at .dll files in the bin folder. So that is why. If you have a good reference on the web to how to implement it for App_Code as well - then I would be more than happy to add it to Tea Commerce.
Kind regards
Anders
Hi Anders
Mayby you could take a look at the Umbraco core, because they are able to do it. I have no problem registering a ApplicationEventHandler in App_Code
/Bo
How about this. This will find App_Code compiled assemblies
/Bo
Hi Bo
It will be implemented in Tea Commerce 2.2.1. Just tested it and it works. Thanks for the help!
Kind regards
Anders
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.