4.20 fails to build. ClearPluginAssemblies.proj

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Help please! I have a new installation of VS2019 and nopCommerce 4.20. When I build I get the error

....\Build\ClearPluginAssemblies.proj(21,5): error MSB3073: The command "dotnet "ClearPluginAssemblies.dll" ..... exited with Code 1

Please can someone tell me how to fix this problem?
4 years ago
have u installed .net core 2.2 into your system? if not then install this one first then try to run time.
4 years ago
Yes, I have 2.2.401 installed.
4 years ago
Slotraccoon wrote:
Help please! I have a new installation of VS2019 and nopCommerce 4.20. When I build I get the error

....\Build\ClearPluginAssemblies.proj(21,5): error MSB3073: The command "dotnet "ClearPluginAssemblies.dll" ..... exited with Code 1

Please can someone tell me how to fix this problem?



In nopCommerce 4.20, it's syntax seems like below. Make sure in your plugin it correct.

 <ItemGroup>    
    <ClearPluginAssemblies Include="$(MSBuildProjectDirectory)\..\..\Build\ClearPluginAssemblies.proj" />
  </ItemGroup>
  
  <!-- This target execute after "Build" target -->
  <Target Name="NopTarget" AfterTargets="Build">
    <!-- Delete unnecessary libraries from plugins path -->
    <MSBuild Projects="@(ClearPluginAssemblies)" Properties="PluginPath=$(MSBuildProjectDirectory)\$(OutDir)" Targets="NopClear" />
  </Target>
4 years ago
This is a clean installation. Where would I find this code?
4 years ago
Slotraccoon wrote:
This is a clean installation. Where would I find this code?

In plugin .csproj file.
4 years ago
You can check in Nivo slider plugin's .csproj file for reference.
4 years ago
I just had this same problem.  Long story short - make sure you have the Build directory under the solution folder.  That code is compiled and run during builds.  See <solution>\Build\Note.txt.
4 years ago
Thank you for the advice. Strangely the issue had very little to do with nopCommerce but because there were brackets in my username!
4 years ago
i am having same issue.Included the ClearPluginAssemblies.csproj in my solution.Still the errors persists.

Any directions?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.