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

Autopublish for "legacy" Helix Solution doesn't work #43

Open
Antonytm opened this issue Feb 3, 2022 · 0 comments
Open

Autopublish for "legacy" Helix Solution doesn't work #43

Antonytm opened this issue Feb 3, 2022 · 0 comments

Comments

@Antonytm
Copy link

Antonytm commented Feb 3, 2022

I want to create a new Sitecore Helix MVC solution with auto-publish.

VS version: Version 16.10.3
Sitecore Helix Visual Studio Templates version: 22.12.1314

My steps:

  1. Create a new solution using Simple "legacy" Helix Solution - Support for "CLASSIC" project style(example)

  2. Check Auto-publish solution on local build

  3. Set Publish to file path to C:\Websites\my.sitecore.local
    image

  4. Add a new project to the feature folder use Sitecore Helix Module - "CLASSIC" project style (example from 2017)
    image

  5. Build solution

Actual result
Publishing project Feature.DefaultName2 to /. in build output.
And configuration of the new project should be published. However, when I wasn't able to where it was "published".

Expected result
Publishing project Feature.DefaultName2 to C:\Websites\my.sitecore.local in build output. Files are present in that folder.

  1. Create view and run solution build again

Actual result
Publishing project Feature.DefaultName2 to /. in build output.
An added view should be published. However, when I wasn't able to where it was "published".

Expected result
Publishing project Feature.DefaultName2 to C:\Websites\my.sitecore.local in build output. Files are present in that folder.

  1. Add a new project to the feature folder use Sitecore Helix Module with Unicorn - SDK PROJECT STYLE (example)
    image

  2. Build the solution. It is failed, but once comment line 5 in Templates.cs using Sitecore.Data; - it starts to work.

Actual result

Rebuild started...
1>------ Rebuild All started: Project: Feature.DefaultName2, Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: Feature.DefaultName3, Configuration: Debug Any CPU ------
Restored c:\source\helixtest\7\defaultname1\src\Feature\DefaultName3\platform\Feature.DefaultName3.csproj (in 2 ms).
1>c:\source\helixtest\7\defaultname1\src\Feature\DefaultName2\code\Feature.DefaultName2.csproj(122,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" cannot be imported again. It was already imported at "c:\source\helixtest\7\defaultname1\Directory.Build.targets (16,3)". This is most likely a build authoring error. This subsequent import will be ignored. 
2>Feature.DefaultName3 -> c:\source\helixtest\7\defaultname1\src\Feature\DefaultName3\platform\bin\Debug\net48\Feature.DefaultName3.dll
2>Publishing project Feature.DefaultName3 to /.
1>  Feature.DefaultName2 -> c:\source\helixtest\7\defaultname1\src\Feature\DefaultName2\code\bin\Feature.DefaultName2.dll
1>  Publishing project Feature.DefaultName2 to /.

Expected result
Files should be published to C:\Websites\my.sitecore.local

P.S.
I have tried different combinations of solution type and project type from Helix templates. But I wasn't able to find a working combination.

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

1 participant