Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SitecoreAssembliesToInclude directive does not work properly #77

Open
slapikv opened this issue Nov 11, 2020 · 2 comments
Open

SitecoreAssembliesToInclude directive does not work properly #77

slapikv opened this issue Nov 11, 2020 · 2 comments

Comments

@slapikv
Copy link

slapikv commented Nov 11, 2020

We have a patch from Sitecore and want to apply it to our solution via SitecoreAssembliesToInclude directive in the Website.wpp.targets but as the result, in the bin, we see the non-hotfix dll from Nuget(packages referenced via project reference not packages.config).
We also tried to add dll to the Project layer, where we do not have a NuGet package with that dll - the result is the same dll from NuGet is published(but project layer should be published the last).
In addition, we tried https://github.com/richardszalay/helix-publishing-pipeline#extensibility for both profile and project name but with no success.

@paulgeorge
Copy link

paulgeorge commented Apr 9, 2021

@slapikv I was seeing the same behaviour until I moved the SitecoreAssembliesToInclude into it's own <ItemGroup> when I did that and rebuilt the included files were then output into the deploy folder as expected.

@slapikv
Copy link
Author

slapikv commented Jan 6, 2022

As a workaround for this issue, we have utilized a post-build event script in the WebRoot project.
Here is the code example:

 REM important! always check Azure publishing after changing this!
 REM publish it to project bin
 xcopy /Y /I "$(ProjectDir)..\..\SitecoreSupport\bin\*" "$(OutDir)\.."

 REM publish it to IntermediateOutputPath during build, temporary fix for exceeded path length
 REM note: this path is used as IntermediateOutputPath in this project .csproj file
 xcopy /Y /I "$(ProjectDir)..\..\SitecoreSupport\bin\*" "C:\[YourProjectFolder]\bld\Package\PackageTmp\bin"

 REM publish it to Docker folder to support Azure DevOps CI/CD
 xcopy /Y /I "$(ProjectDir)..\..\SitecoreSupport\bin\*" "$(ProjectDir)\..\..\..\docker\deploy\website\bin"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants