I am using Visual Studio Community 2015. I have one executable c# project which references two different dll projects and these two dlls are referencing the same shared project. It worked this way. I mean I could build that executable project but today after pulling latest commits (I think it shouldn't be a reason) I cant build the executable project because of an error
Error CS0433 The type 'TypeDefinedInSharedProject' exists in both 'DllProject1, Version=2016.1202.6180.26482, Culture=neutral, PublicKeyToken=SomeKeyToken' and 'DllProject2, Version=2016.1202.6180.26481, Culture=neutral, PublicKeyToken=SomeKeyToken'
I think that the .cs file where TypeDefinedInSharedProject type is declared is somehow linked to the project at build time and I suppose that if I change type of that shared project to class library project I will be able to build executable project. I had similar problem earlier and I solved it this way. I can do this now but I am just curious why it worked earlier but now doesn't. What can be a reason of it?