All Binaries in Output Plugin Folder

Posted: July 11, 2019 at 10:37 AM Quote #242434
Hi all, I found in the 3.80 documentation how to cleanup the Plugin output folder. But I can't figure out how to get the same result in version 4.20

Can anyone tell me how to do it?

thanks a lot
Marco
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 11, 2019 at 2:22 PM Quote #242438
Hi Marco,

Please verify NopClear syntax in your plugin csproject file.

For nopCommerce 4.20

  <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>


You can review Nivo slider's .csproj file.

Also, try with first build plugin and then re-build the entire solution.
Many times this working.
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)
Up-vote the answer, if it helps you! :)


Thank You
Raju Paladiya
-------------------------------------------------------
nopAccelerate - Faster, Reliable & Scalable nopCommerce

sales(at)nopaccelerate.com
http://www.nopAccelerate.com | http://www.xcellence-it.com
Posted: July 15, 2019 at 4:26 AM Quote #242506
Hi rajupaladiya,
thanks for your reply. I have 1 question about your code.

It is necessary to reference the project ClearPluginAssemblies or not?

It would seem from your code that you did so:

  <ItemGroup>  
    <ClearPluginAssemblies Include="$(MSBuildProjectDirectory)\..\..\Build\ClearPluginAssemblies.proj" />
  </ItemGroup>

But in the Documentation the csproj example is quite different.




rajupaladiya wrote:
Hi Marco,

Please verify NopClear syntax in your plugin csproject file.

For nopCommerce 4.20

  <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>


You can review Nivo slider's .csproj file.

Also, try with first build plugin and then re-build the entire solution.
Many times this working.
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)
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