I have ASP.NET CORE MVC & jQuery with .NET Framework 4.6.1 on ASP.NET Zero version 6.2.1 up and running. I have added some entities with the RAD tool to test out a few things. I tried to upgrade to ASP.NET Zero 6.4.0, and did this by copying and pasting all files from 6.4.0 to my 6.2.1 files in Windows Explorer, overwriting any files in conflict. I realize this would probably break the entities I added with the RAD tool, but as a test, I expected at least to be up and running on 6.4.0 without the entities I added.
After copying over the files, I ran yarn, Update-Database, and npm run create-bundles.
Shouldn't this work (meaning get 6.4.0 working)?
I get these build errors:
Severity Code Description Project File Line Suppression State
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Host\HostSettingsAppService.cs 94 Active
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Host\HostSettingsAppService.cs 248 Active
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Tenants\TenantSettingsAppService.cs 136 Active
Error CS0117 'AppSettings.UserManagement' does not contain a definition for 'IsCookieConsentEnabled' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Configuration\Tenants\TenantSettingsAppService.cs 312 Active
Warning MSB3245 Could not resolve this reference. Could not locate the assembly "System.ComponentModel.DataAnnotations". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. XYZ.WER.Core.Shared C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2110
Warning MSB3245 Could not resolve this reference. Could not locate the assembly "System.ComponentModel.DataAnnotations". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. XYZ.WER.Application.Shared C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2110
Error CS0579 Duplicate 'Area' attribute XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Controllers\CommonController.cs 8 Active
Error CS0101 The namespace 'XYZ.WER.Identity' already contains a definition for 'ISmsSender' XYZ.WER.Core D:\WER\src\XYZ.WER.Core\Net\Sms\ISmsSender.cs 5 Active
Error CS0101 The namespace 'XYZ.WER.Web.Areas.App.Controllers' already contains a definition for 'CommonController' XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Controllers\CommonController.cs 10 Active
Error CS0101 The namespace 'XYZ.WER.Web.Areas.App.Views.Shared.Components.AppDefaultBrand' already contains a definition for 'AppDefaultBrandViewComponent' XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Views\Shared\Components\AppDefaultBrand\AppDefaultBrandViewComponent.cs 9 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Activities\ActivitiesAppService.cs 78 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Contacts\ContactsAppService.cs 81 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\Opportunities\OpportunitiesAppService.cs 77 Active
Warning CS0472 The result of the expression is always 'true' since a value of type 'int' is never equal to 'null' of type 'int?' XYZ.WER.Application D:\WER\src\XYZ.WER.Application\ServiceRequests\ServiceRequestsAppService.cs 77 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme11UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme2UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme3UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme7UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\Theme8UiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\Metronic\ThemeDefaultUiCustomizer.cs 11 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 24 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 30 Active
Error CS0246 The type or namespace name 'IUiCustomizer' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 35 Active
Error CS0246 The type or namespace name 'IUiThemeCustomizerFactory' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Core D:\WER\src\XYZ.WER.Web.Core\UiCustomization\UiThemeCustomizerFactory.cs 11 Active
Error CS0246 The type or namespace name 'IUiThemeCustomizerFactory' could not be found (are you missing a using directive or an assembly reference?) XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Views\WERRazorPage.cs 16 Active
Error CS0234 The type or namespace name 'Swagger' does not exist in the namespace 'XYZ.WER.Web' (are you missing an assembly reference?) XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Startup\Startup.cs 42 Active
Error CS0111 Type 'CommonController' already defines a member called 'LookupModal' with the same parameter types XYZ.WER.Web.Mvc D:\WER\src\XYZ.WER.Web.Mvc\Areas\App\Controllers\CommonController.cs 12 Active
Error CS0111 Type 'ISmsSender' already defines a member called 'SendAsync' with the same parameter types XYZ.WER.Core D:\WER\src\XYZ.WER.Core\Net\Sms\ISmsSender.cs 7 Active
I do get ASP-NET Zero version 6.4.0 working by itself just fine, but not when copying over all the files to my existing 6.2.1 solution.
1 Answer(s)
-
0
Hi, there might be addtional/removed files between each version.
you can try to replace (instead of ovewrite) your entire project (6.2.1) with 6.4.0. Then you can see what files are added/removed when using
git diff