4.20 fails to build. ClearPluginAssemblies.proj

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 4 ans
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?
Il y a 4 ans
have u installed .net core 2.2 into your system? if not then install this one first then try to run time.
Il y a 4 ans
Yes, I have 2.2.401 installed.
Il y a 4 ans
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>
Il y a 4 ans
This is a clean installation. Where would I find this code?
Il y a 4 ans
Slotraccoon wrote:
This is a clean installation. Where would I find this code?

In plugin .csproj file.
Il y a 4 ans
You can check in Nivo slider plugin's .csproj file for reference.
Il y a 4 ans
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.
Il y a 4 ans
Thank you for the advice. Strangely the issue had very little to do with nopCommerce but because there were brackets in my username!
Il y a 4 ans
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.