Giter Club home page Giter Club logo

Comments (4)

Algorithman avatar Algorithman commented on June 9, 2024

That's probably just an issue with VS2022.
After the last update I had to embed a library for timezone conversion (TZConvert, had it added via nuget) since I got the same error.
Odd thing is it worked just fine before updating and I didn't make any changes to this part.

from smartstore.

muratcakir avatar muratcakir commented on June 9, 2024

Most likely caused by missing ICompilationReferencesProvider implementation for the host part. I'll have to take a closer look.

from smartstore.

suatsuphi avatar suatsuphi commented on June 9, 2024

I added <RazorCompileOnBuild>false</RazorCompileOnBuild> in Smartstore.Web.csproj
problem solved!

<Project Sdk="Microsoft.NET.Sdk.Web">

	<Import Project="..\Smartstore.Build\Smartstore.Common.props" />
	<Import Project="..\Smartstore.Build\Smartstore.Razor.props" />
    <Import Project="..\Smartstore.Build\Smartstore.Data.targets" />

	<PropertyGroup>
		<UserSecretsId>b35c0f56-dfa8-4120-b29b-a677578afcd1</UserSecretsId>
		<CopyRefAssembliesToPublishDirectory>true</CopyRefAssembliesToPublishDirectory>
		<RuntimeIdentifiers>win-x64; win-x86; linux-x64; osx-x64</RuntimeIdentifiers>
        <ProvideApplicationPartFactoryAttributeTypeName>Smartstore.Engine.Modularity.ApplicationParts.HostRazorAssemblyPartFactory, Smartstore</ProvideApplicationPartFactoryAttributeTypeName>
		<!--<PublishReadyToRun>true</PublishReadyToRun>-->
        <RazorCompileOnBuild>false</RazorCompileOnBuild>
    </PropertyGroup>
....

from smartstore.

muratcakir avatar muratcakir commented on June 9, 2024

RazorCompileOnBuild is already defined in Smartstore.Razor.props and conditionally turns off razor build compilation. So your fix is not a solution, because runtime compilation is broken and you have just turned it off.

Side note: If you select the build configuration DebugNoRazorCompile you will get the same result.

from smartstore.

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.