31 error using Prepare.bat

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I have tried several times to use the prepare.bat file and it seems I am at a roadblock.

I have attached the log file to see if you guys out there can help me out..

My system is Windows 7 Ult. 64bit

Thanks
------------------------------------------------------------------------------------------------------------------------------
"C:\apps\code\nopCommerce\nopCommerce_2.00_Source\build\nop.proj" (default target) (1) ->
       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\NopCommerce.sln" (default target) (2) ->
       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\Tests\Nop.Services.Tests\Nop.Services.Tests.csproj" (default target) (13) ->
       (CoreCompile target) ->
         Catalog\ProductServiceTests.cs(29,21): warning CS0108: 'Nop.Services.Tests.Catalog.ProductServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Catalog\PriceCalculationServiceTests.cs(24,21): warning CS0108: 'Nop.Services.Tests.Catalog.PriceCalculationServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Catalog\ProductAttributeParserAndFormatterTests.cs(41,21): warning CS0108: 'Nop.Services.Tests.Catalog.ProductAttributeParserTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Catalog\PriceFormatterTests.cs(33,21): warning CS0108: 'Nop.Services.Tests.Catalog.PriceFormatterTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Configuration\ConfigurationProviderTests.cs(14,21): warning CS0108: 'Nop.Services.Tests.Configuration.ConfigurationProviderTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Customers\CustomerExtensionTests.cs(12,21): warning CS0108: 'Nop.Services.Tests.Customers.CustomerExtensionTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Customers\CustomerServiceTests.cs(30,21): warning CS0108: 'Nop.Services.Tests.Customers.CustomerServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Directory\CurrencyServiceTests.cs(26,21): warning CS0108: 'Nop.Services.Tests.Directory.CurrencyServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Directory\MeasureServiceTests.cs(25,21): warning CS0108: 'Nop.Services.Tests.Directory.MeasureServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Discounts\DiscountServiceTests.cs(26,21): warning CS0108: 'Nop.Services.Tests.Discounts.DiscountServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         ExportImport\ExportManagerTests.cs(31,21): warning CS0108: 'Nop.Services.Tests.ExportImport.ExportManagerTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Helpers\DateTimeHelperTests.cs(23,21): warning CS0108: 'Nop.Services.Tests.Helpers.DateTimeHelperTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Localization\LanguageServiceTests.cs(23,21): warning CS0108: 'Nop.Services.Tests.Localization.LanguageServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Logging\CustomerActivityServiceTests.cs(27,21): warning CS0108: 'Nop.Services.Tests.Logging.CustomerActivityServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Orders\CheckoutAttributeParserAndFormatterTests.cs(38,21): warning CS0108: 'Nop.Services.Tests.Orders.CheckoutAttributeParserAndFormatterTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Orders\OrderProcessingServiceTests.cs(74,21): warning CS0108: 'Nop.Services.Tests.Orders.OrderProcessingServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Orders\OrderTotalCalculationServiceTests.cs(50,21): warning CS0108: 'Nop.Services.Tests.Orders.OrderTotalCalculationServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Payments\PaymentServiceTests.cs(18,21): warning CS0108: 'Nop.Services.Tests.Payments.PaymentServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Security\EncryptionServiceTests.cs(15,21): warning CS0108: 'Nop.Services.Tests.Security.EncryptionServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Configuration\ConfigFileSettingServiceTests.cs(19,21): warning CS0108: 'Nop.Services.Tests.Configuration.ConfigFileSettingServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Shipping\ShippingServiceTests.cs(31,21): warning CS0108: 'Nop.Services.Tests.Shipping.ShippingServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Tax\TaxServiceTests.cs(26,21): warning CS0108: 'Nop.Services.Tests.Tax.TaxServiceTests.SetUp()' hides inherited member 'Nop.Services.Tests.ServiceTest.SetUp()'. Use the new keyword if hiding was intended.
         Catalog\PriceFormatterTests.cs(27,22): warning CS0649: Field 'Nop.Services.Tests.Catalog.PriceFormatterTests._workContext' is never assigned to, and will always have its default value null
         Tax\TaxServiceTests.cs(21,22): warning CS0649: Field 'Nop.Services.Tests.Tax.TaxServiceTests._workContext' is never assigned to, and will always have its default value null


       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\build\nop.proj" (default target) (1) ->
       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\NopCommerce.sln" (default target) (2) ->
       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\Plugins\Nop.Plugin.DiscountRules.BillingCountry\Nop.Plugin.DiscountRules.BillingCountry.csproj" (default target) (6) ->
       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\Presentation\Nop.Web.Framework\Nop.Web.Framework.csproj" (default target) (11) ->
         Themes\ThemeableVirtualPathProviderViewEngine.cs(21,42): warning CS0649: Field 'Nop.Web.Framework.Themes.ThemeableVirtualPathProviderViewEngine._emptyLocations' is never assigned to, and will always have its default value null


       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\build\nop.proj" (default target) (1) ->
       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\NopCommerce.sln" (default target) (2) ->
       "C:\apps\code\nopCommerce\nopCommerce_2.00_Source\Presentation\Nop.Web\Nop.Web.csproj" (default target) (25) ->
         Controllers\CatalogController.cs(1190,25): warning CS0162: Unreachable code detected
         Controllers\InstallController.cs(262,38): warning CS0168: The variable 'exc' is declared but never used
         Controllers\CustomerController.cs(340,29): warning CS0162: Unreachable code detected
         Controllers\CustomerController.cs(345,29): warning CS0162: Unreachable code detected
         Controllers\CustomerController.cs(353,29): warning CS0162: Unreachable code detected
         Controllers\CustomerController.cs(358,29): warning CS0162: Unreachable code detected

    31 Warning(s)
    0 Error(s)
12 years ago
These are warnings, not compile errors.
They should not be stopping you from producing a build of the project using the prepare.bat.
12 years ago
It's happening for me as well just build again and you will not get any warnings...
12 years ago
If the warning do not appear after building again, this does not mean that they are not there anymore.
It means that msbuild is doing an incremental build and not building what is already built. In other words if you do a rebuild the warnings will appear again.
So these are valid warnings and should not be neglected as they might lead to subtle problems in the code logic.
But this is in the hands of the NopCommerce team so you should not worry about it for now.
12 years ago
I recieved the same 31 warnings everytime.  It didnt seem to affect anything.  Execute the deploy file and move foward.

Chad
12 years ago
I did Re-Build and then re-ran the prepare.bat and had no errors.

Thank you.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.