Author Topic: Update to latest TNet won't build. Duplicate definitions.  (Read 1956 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Update to latest TNet won't build. Duplicate definitions.
« on: June 12, 2015, 08:46:14 AM »
Just imported TNet via Asset window over the existing TNet.

Assets/TNet/Common/DataNode.cs(35,18): error CS0101: The namespace `TNet' already contains a definition for `IDataNodeSerializable'
Assets/TNet/Common/DataNode.cs(35,18): error CS0101: The namespace `TNet' already contains a definition for `DataNode'
Assets/TNet/Common/TNSerializer.cs(102,18): error CS0101: The namespace `TNet' already contains a definition for `IBinarySerializable'
Assets/TNet/Common/TNSerializer.cs(166,21): error CS0101: The namespace `TNet' already contains a definition for `Serialization'

Kerozard

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Update to latest TNet won't build. Duplicate definitions.
« Reply #1 on: June 12, 2015, 02:34:42 PM »
It looks like the DataNode.cs and TNSerializer.cs got moved from the Client folder to the common folder. Removing the old version from the client folder fixed it for me.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Update to latest TNet won't build. Duplicate definitions.
« Reply #2 on: June 12, 2015, 04:04:10 PM »
Yup, precisely. It's important to delete the old package before importing the new one.