Git Product home page Git Product logo

Comments (15)

ariacom avatar ariacom commented on June 10, 2024

I just made the move (Microsoft.AspNetCore.Razor.Language" Version="6.0.8"), if you get the last source code, you might validate the change...
thanks.

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Wow thanks so much for that ! we test the change and come back to you ;)

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Hi, we are looking forward to integrate this Razor.Language version update in our developments to test it.
Do you know when the next Seal Report build will be available?
Thank you very much for your time, sorry for being in such a hurry, this issue is very blocking for us and we have to consider a plan B if we can't integrate your fix.
Best regards
Pierre

from seal-report.

ariacom avatar ariacom commented on June 10, 2024

Perhaps a 6.7 will come in October....

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Thanks, that would be great ! have a nice day

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Hi, thanks for this new version 6.7.0 !
We tried to integrate it in our project, but we faced some issues.

  • The Razor.Language dll that we get with v.6.7.0 is v.2.2.0 (from RazorEngine.NetCore 2.2.4), but we were expecting an upgrade (Razor.Language 6.0.9) according to our last exchanges and this commit: a6dec89
    Maybe we are making a mistake somewhere in the import ?

  • Before the release of v6.7.0, we have been able to compile a version of SealReport, integrating your changes following our exchanges. However this error appeared when calling the method Seal.Model.Report.Create(_repository);

    Message: 
    System.Exception : Unable to find view template named 'Model'

    Procedure call tree: 
    RepositoryServer.GetViewTemplate(String name)
    Report.AddView(String templateName)
    Report.Create(Repository repository)
    ReportBuilderBase.CreateReport() line 238
    ReportBuilderDirector.BuildReport(IReportBuilder builder) line 16
    ReportBuilderTests.GenerateCSVResult_TestTableReportBuilder_DataExportInCSVFile() line 20

Do you know where this error comes from?

Thank you very much, have a nice day
Pierre

from seal-report.

ariacom avatar ariacom commented on June 10, 2024

Hi, the dependencies of the RazorEngine project are:
PackageReference Include="Microsoft.AspNetCore.Razor" Version="2.2.0" />
PackageReference Include="Microsoft.AspNetCore.Razor.Runtime" Version="2.2.0" />
PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="6.0.9" />
PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.1" />
PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
PackageReference Include="Microsoft.CSharp" Version="4.7.0" />

The second error you mention appears when the Repository is not set (it cannot find the Model template in the Views directory). Check that the repository location is correct.

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Hello, thanks for your answer,
I checked the Seal Report package we get from nuget.org, it comes with RazorEngine >= 2.2.3.6. Visual Studio will take the v.2.2.4 just above, with RazorLanguage v.2.2.0.

2022-11-04_09h15_42

Our project that hosts Seal Report is a net6.0 one. Maybe we can force a dependency to RazorEngine 3 or above ?

from seal-report.

ariacom avatar ariacom commented on June 10, 2024

RazorEngine.NetCore is a local project compiled in the Seal solution. The version 2.2.3.6 is just in the project file,
RootNamespace>RazorEngine
AssemblyName>RazorEngine.NetCore
PackageTags>RazorEngine;aspnetcore;NetCore
Authors>Connie Yau, HermanHo, Fouad Messaia,Zuliang Liu(China)
Description>Fork from https://github.com/hermanho/RazorEngine, But Fixed Bug that Razor string does not support @using and @inherits and @functions and @section, etc.
RepositoryType>git
Version>2.2.3.6
Copyright>RazorEngine Copyright © RazorEngine Project 2011-2018

the true dependencies are
PackageReference Include="Microsoft.AspNetCore.Razor" Version="2.2.0" />
PackageReference Include="Microsoft.AspNetCore.Razor.Runtime" Version="2.2.0" />
PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="6.0.9" />
PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.1" />
PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
PackageReference Include="Microsoft.CSharp" Version="4.7.0" />

if you have problems, you might consider to include the Seal Library in your project (it is open source)

from seal-report.

ariacom avatar ariacom commented on June 10, 2024

perhaps there is is mismatch during the nutget package generation, it wants to depends on RazorEngine.NetCore project...
we will check in a future release if we can stick again to the original package.

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Dear Ariacom, we are facing an issue with the last nuget package available on nuget.org.
SealLibrary 6.7.2 needs RazorEngine 6.7.2, but this version doesn't exist on the nuget.org server.
Can you push this nuget ?
Thanks !
Pierre

from seal-report.

ariacom avatar ariacom commented on June 10, 2024

yes, the dependency is incorrect, we hope to fix this soon with the 6.8

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Thanks

from seal-report.

ariacom avatar ariacom commented on June 10, 2024

hello, the 6.8 is published, and it comes with the RazorEngine package.

from seal-report.

pacharbit avatar pacharbit commented on June 10, 2024

Thanks a lot, this will help !
Best regards
Pierre

from seal-report.

Related Issues (20)

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.