Types exists in both packages (v2018.0.2)

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Amer
User
Posts: 79

Types exists in both packages (v2018.0.2)

Post 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?


Webmaster
User
Posts: 9430

Post 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.


Amer
User
Posts: 79

Post 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.


Webmaster
User
Posts: 9430

Post 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.


Post Reply