Can't seem to build v4.20 on Azure Pipelines

Posted: July 17, 2019 at 5:41 PM Quote #242626
Hey everyone,

I'm having trouble getting a (brand new) instance of v4.20 to run on my Azure Build pipeline. I'm seeing an error when each plugin project is built when ClearPluginAssemblies is run. Strangely, this is only happening when I try to build against Microsoft Azure's build agents (Hosted VS2017). When I build the solution in my local environment it succeeds every time. Here's a sample of the logs when I try to build using an Azure agent:


C:\hostedtoolcache\windows\dncs\2.2.301\x64\sdk\2.2.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(153,5): warning NETSDK1071: A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.2.5`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs [d:\a\3280\s\Libraries\Nop.Core\Nop.Core.csproj]
  Nop.Core -> d:\a\3280\s\Libraries\Nop.Core\bin\debug\netcoreapp2.2\Nop.Core.dll
  Nop.Data -> d:\a\3280\s\Libraries\Nop.Data\bin\debug\netcoreapp2.2\Nop.Data.dll
  Nop.Services -> d:\a\3280\s\Libraries\Nop.Services\bin\debug\netcoreapp2.2\Nop.Services.dll
  Nop.Web.Framework -> d:\a\3280\s\Presentation\Nop.Web.Framework\bin\debug\netcoreapp2.2\Nop.Web.Framework.dll
  Nop.Plugin.DiscountRules.CustomerRoles -> d:\a\3280\s\Presentation\Nop.Web\Plugins\DiscountRules.CustomerRoles\Nop.Plugin.DiscountRules.CustomerRoles.dll
  No executable found matching command "dotnet-d:\a\3280\s\Build\ClearPluginAssemblies.dll"
d:\a\3280\s\Build\ClearPluginAssemblies.proj(21,5): error MSB3073: The command "dotnet "d:\a\3280\s\Build\ClearPluginAssemblies.dll" "OutputPath=d:\a\3280\s\Build\..\Presentation\Nop.Web\bin\debug\netcoreapp2.2\|PluginPath=d:\a\3280\s\Plugins\Nop.Plugin.DiscountRules.CustomerRoles\..\..\Presentation\Nop.Web\Plugins\DiscountRules.CustomerRoles\|SaveLocalesFolders="" exited with code 1.

Build FAILED.

C:\hostedtoolcache\windows\dncs\2.2.301\x64\sdk\2.2.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(153,5): warning NETSDK1071: A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.2.5`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs [d:\a\3280\s\Libraries\Nop.Core\Nop.Core.csproj]
d:\a\3280\s\Build\ClearPluginAssemblies.proj(21,5): error MSB3073: The command "dotnet "d:\a\3280\s\Build\ClearPluginAssemblies.dll" "OutputPath=d:\a\3280\s\Build\..\Presentation\Nop.Web\bin\debug\netcoreapp2.2\|PluginPath=d:\a\3280\s\Plugins\Nop.Plugin.DiscountRules.CustomerRoles\..\..\Presentation\Nop.Web\Plugins\DiscountRules.CustomerRoles\|SaveLocalesFolders="" exited with code 1.
    1 Warning(s)
    1 Error(s)

Thanks in advance for your help!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 19, 2019 at 10:37 AM Quote #242685
Anyone?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 23, 2019 at 2:25 PM Quote #242794
Hey everyone, I figured out what the issue was. Just in case anyone has the same problem, here's what I found.

When nopCommerce v4.2 is shipped, the ClearPluginAssemblies solution is included as already built and packaged into ClearPluginAssemblies.dll. However, when I checked in the source code into our version control (TFVC in my case), DLL files are excluded by default. Once I manually checked in this DLL file, the solution built with no problem.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 24, 2019 at 1:00 AM Quote #242815
Thanks for sharing. :)
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Pls up-vote the answer, if it helps you! :)

nopAccelerate - Faster, Reliable & Scalable nopCommerce

http://www.nopAccelerate.com | http://www.xcellence-it.com | http://shop.xcellence-it.com

Need any professional assistance? Drop us your requirements on sales(at)nopaccelerate.com
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more