Page 1 of 1

Types exists in both packages (v2018.0.2)

Posted: Wed Apr 04, 2018 1:17 pm
by Amer

Hello,

I have just upgraded from 2018.0.1 to 2018.0.2 , now my 2 projects give the same error when trying to build & run any one of them:

Models\ewexcelcfg.cs(56,23): error CS0116: A namespace cannot directly contain members such as fields or methods [D:\Path\To\Project.csproj]
Models\ewexcelcfg.cs(57,25): error CS0116: A namespace cannot directly contain members such as fields or methods [D:\Path\To\Project.csproj]
Models\ewexcelcfg.cs(58,25): error CS0116: A namespace cannot directly contain members such as fields or methods [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5731,70): error CS0433: The type 'ImageFormat' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5806,19): error CS0433: The type 'ImageFormat' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5833,19): error CS0433: The type 'ImageFormat' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5841,67): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5920,60): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5920,19): error CS0433: The type 'Bitmap' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5946,37): error CS0433: The type 'PropertyItem' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5946,79): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5473,46): error CS0433: The type 'ImageFormat' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5486,21): error CS0433: The type 'ImageFormat' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5488,12): error CS0433: The type 'ImageFormat' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5493,12): error CS0433: The type 'PropertyItem' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(6006,77): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(6006,36): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5974,77): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(5974,36): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(6021,77): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]
Models\aspnetfn.cs(6021,36): error CS0433: The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' [D:\Path\To\Project.csproj]

etc.

My "DotNet --version" is: 2.1.103

What may cause this problem?


Re: Types exists in both packages

Posted: Wed Apr 04, 2018 1:29 pm
by Webmaster

If you are using extensions for registered users, make sure you have downloaded the new extensions from registered user site.

Re-generate ALL scripts with the new template and new extensions.


Re: Types exists in both packages (v2018.0.2)

Posted: Wed Apr 04, 2018 1:57 pm
by Amer

Yes, it was an extensions issue...

It is my fault because I have downloaded the extensions yesterday at the moment you have updated the website page for ASP.Net maker and before you sent the registered users notification email... I think the new extension zip file was not uploaded to the website at that moment... next time I will be little more patient :)

By the way, it will be a good idea to mention the date or version of the extensions zip file on registered user’s page, so we will know when we should download it, instead of downloading the file every month and comparing the files inside.

Thank you very much.


Re: Types exists in both packages (v2018.0.2)

Posted: Wed Apr 04, 2018 2:51 pm
by Webmaster

You only need to download again when there is a new minor upgrade version. The notification email also tell you if you need to download or not.