modelsbuilder / ModelsBuilder.Original

The Community Models Builder for Umbraco
MIT License
114 stars 49 forks source link

Can't seem to be able to use assembly attributes #117

Closed doronuziel71 closed 8 years ago

doronuziel71 commented 8 years ago

Hi,

I'm trying to set the base class to be of type BaseContent

have added this line to AssemblyInfo.cs

[assembly: ModelsBaseClass(typeof(BaseContent))]

Yet when I try to generate models, (I've tried both AppData, or using Visual Studio custom Tool)

The models still apear to be inheriting from PublishedContentModel

Am I missing something?

Thanks, Doron

zpqrtbnk commented 8 years ago

Sorry for the horribly late reply. The line should be added to a .cs file alongside the models, ie some sort of Models.cs file in the same directories the files are generated in.

Making sense?

doronuziel71 commented 8 years ago

Ok.

Thanks alot.

I will give this a try.

On 7 Nov 2016 3:41 p.m., "Stephan" notifications@github.com wrote:

Sorry for the horribly late reply. The line should be added to a .cs file alongside the models, ie some sort of Models.cs file in the same directories the files are generated in.

Making sense?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zpqrtbnk/Zbu.ModelsBuilder/issues/117#issuecomment-258837985, or mute the thread https://github.com/notifications/unsubscribe-auth/AEuINZoXm_MjDapf8MpmrR-Nr1iZdM8gks5q7yqJgaJpZM4JpSlg .

zpqrtbnk commented 8 years ago

Cool, it works by all my tests, so closing the issue - but in case of any problem, just reopen it!