Giter VIP home page Giter VIP logo

rainbowcodegeneration's People

Contributors

heikof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rainbowcodegeneration's Issues

NugetPackage won't create SitecoreTemplates.tt

I'm trying to install the RainbowCodeGeneration from NuGet to my fresh Habitat project, but it does not create the sample .tt file. Am I missing something?

image

Here is the NugetPackage manager consol output:
`PM> Install-Package RainbowCodeGeneration -Version 0.3.0
Restoring packages for C:\MyData\Alex\Dev\Habitat\src\feature\Teasers\code\Sitecore.Feature.Teasers.csproj...
Committing restore...
Writing lock file to disk. Path: C:\MyData\Alex\Dev\Habitat\src\feature\Teasers\code\obj\project.assets.json
Restore completed in 81.44 ms for C:\MyData\Alex\Dev\Habitat\src\feature\Teasers\code\Sitecore.Feature.Teasers.csproj.
Successfully installed 'Rainbow.Core 1.4.1' to Sitecore.Feature.Teasers
Successfully installed 'Rainbow.Storage.Yaml 1.4.1' to Sitecore.Feature.Teasers
Successfully installed 'RainbowCodeGeneration 0.3.0' to Sitecore.Feature.Teasers
Restoring packages for C:\MyData\Alex\Dev\Habitat\src\Feature\Teasers\tests\Sitecore.Feature.Teasers.Tests.csproj...
Committing restore...
Writing lock file to disk. Path: C:\MyData\Alex\Dev\Habitat\src\Feature\Teasers\tests\obj\project.assets.json
Restore completed in 120.55 ms for C:\MyData\Alex\Dev\Habitat\src\Feature\Teasers\tests\Sitecore.Feature.Teasers.Tests.csproj.

NuGet Config files used:
C:\MyData\Alex\Dev\Habitat\NuGet.Config
C:\Users\Alex and Xenia\AppData\Roaming\NuGet\NuGet.Config
C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config

Feeds used:
https://www.nuget.org/api/v2
https://api.nuget.org/v3/index.json
https://sitecore.myget.org/F/sc-packages/
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages
Executing nuget actions took 2.6 sec
Time Elapsed: 00:00:04.8005105
PM> `

Unicorn RainbowCodeGeneration is not supporting Sitecore 10.2 for serializing model

We are upgrading Sitecore 9.2 to Sitecore 10.2, earlier we used Unicorn and RainbowCodeGeneration, which used to work fine. During upgrade to Sitecore 10.2, we upgraded the Sitecore.Kernal version and below dlls

Sitecore.Kernel โ€“ 10.2
Sitecore.Logging โ€“ 10.2
Microsoft.Extensions.DependencyInjection.Abstractions - 3.1.14
Microsoft.Extensions.DependencyInjection - 3.1.14
Rainbow.Core - 2.1.4
Rainbow.Storage.Yaml - 2.1.4
RainbowCodeGeneration - 0.3.0
So now when we are trying to generate code using .tt file, it throws error(PFA):

Failing at:RainbowCodeGeneration.RainbowReader.GetTemplates(Host.ResolvePath(physicalFileStore), treeName, treePath); Attaching .tt file for the reference.

It seems that the version RainbowCodeGenaration refers is not supported by Sitecore.Kernal(10.2). So there seems an ambiguity between these versions.

Exception: Running transformation: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=' or one of its dependencies. The system cannot find the file specified.

So I want to know which version of Rainbow assemblies can support similar code generation feature with Sitecore 10.2 as I am getting exceptions

I could see a similar issue was raised for Sitecore 9.x but there is nothing mentioned about Sitecore 10.2

Sitecore 9 support.

Could you please advise on the following issue?

I've installed Sitecore 9, Unicorn and Rainbow, items are synced.
However, when I try to add the latest RainbowCodeGeneration to my project,
after setting up default .tt template, it fails with exception:

Running transformation: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.

at the following line:

var templates = RainbowCodeGeneration.RainbowReader.GetTemplates(physicalFileStore, treeName, treePath); 

I use the following configuration:

<#@ template debug="true" hostspecific="true"#>
<#@ output extension=".cs" #>
<#@ assembly name="System.Core" #>
<# // NOTE - Reference your NuGet packages for Rainbow and RainbowCodeGeneration here #>
<#@ assembly name="$(SolutionDir)packages\Rainbow.Core.2.0.0\lib\net452\Rainbow.dll" #>
<#@ assembly name="$(SolutionDir)packages\Rainbow.Storage.Yaml.2.0.0\lib\net452\Rainbow.Storage.Yaml.dll" #>
<#@ assembly name="$(SolutionDir)packages\RainbowCodeGeneration.0.2.0\lib\net452\RainbowCodeGeneration.dll" #>
<# // NOTE - Reference your Sitecore.Kernel.dll and Sitecore.Logging.dll here #>
<#@ assembly name="$(SolutionDir)\packages\Sitecore.Kernel.9.0.171002\lib\net462\Sitecore.Kernel.dll" #>
<#@ assembly name="$(SolutionDir)\packages\Sitecore.Logging.9.0.171002\lib\net462\Sitecore.Logging.dll" #>

Unicorn item changes can make VS crash

Visual Studio can crash if Unicorn items used in the code generation change. Doesn't seem to be an issue when used in Habitat but can occur in non-Habitat solutions (that reference the Sitecore libraries differently)

Stack trace:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 14.0.24720.0
Problem Signature 03: 564ea97e
Problem Signature 04: Sitecore.Kernel
Problem Signature 05: 8.1.0.5526
Problem Signature 06: 573d7b1b
Problem Signature 07: 4fbf
Problem Signature 08: 16
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: d1d9
Additional Information 4: d1d94a13d3609d6b740644c12508f581
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Sitecore.Kernel.dll
Additional information: Could not load file or assembly 'Sitecore.Logging, Version=1.2.0.30715, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Fix: Sitecore.Logging.Dll needs to be referenced.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.