This is very possible, because i have similar class mapping as in the 
issue. With multiple abstract classes hierarchy.
Still why this happens only in VS 2015. IT Works on VS2013


On Friday, November 6, 2015 at 11:17:35 AM UTC+1, Gunnar Liljas wrote:
>
> Maybe this issue comes into play:
>
> https://nhibernate.jira.com/browse/NH-2931
>
> 2015-11-06 9:23 GMT+01:00 Luka <[email protected] <javascript:>>:
>
>> The problem is that this class is mapped, and it exists when I look at 
>> mapping.SubClasses collection of the mapper (it is mapped as subclass)
>>
>>
>> On Thursday, November 5, 2015 at 9:52:26 AM UTC+1, Luka wrote:
>>>
>>> Hi,
>>> I have a strange problem...
>>> When I run my application (F5 -debug) from Visual studio 2015, it throws 
>>> exception: Could not compile mapping document DomainModel. Cannot extend 
>>> unmapped class:ClassA.
>>> But if I run the same application (F5-debug) from Visual Studio 2013 it 
>>> works without problem.
>>>
>>> Considerations:
>>> .Net version: 4.5.1
>>> NH version: latest stable (4.0.4) from nuget
>>> Mapping used: Mapping by convention and by code.
>>> Windows version : Server 2012 R2 x64
>>> Build configuration: Debug, AnyCpu
>>> C# version: 5.0
>>>
>>> Steps:
>>> 1. Re-Build application in VS 2015
>>> 2. Run the application from Visual Studio 2015 in debug mode
>>> 3. Throws exception
>>>
>>> 4. Re-build application in VS 2013
>>> 5. Run the application from VS 2013 in debug mode
>>> 6. Works without any errors
>>>
>>> 7.Run the Application that was build in VS 2013, from VS 2015
>>> 8. Works without any problems.
>>>
>>> So I think it has something to do with the Roslyn compiler of VS 2015.
>>>
>>>
>>>
>>>
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "nhusers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/nhusers.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to