This is a migrated thread and some comments may be shown as answers.

Can't compile with PrecompileBeforePublish

1 Answer 1503 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 21 May 2020, 01:55 PM

I've installed lastest Kend version, locally everything work as expected, but when I've launched DevOps build, i receive errors like this

AspNetPreCompile:
         C:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v / -p d:\a\8\s\Source\ABB.cBOL.Web.Application\obj\x64\Release\AspnetCompileMerge\Source -c d:\a\8\s\Source\ABB.cBOL.Web.Application\obj\x64\Release\AspnetCompileMerge\TempBuildDir 
##[error]/Content/kendo/2020.1.406/ascx/String.ascx(1,0): Error ASPPARSE: Could not load type 'System.Web.Mvc.ViewUserControl<object>'.
    95>/Content/kendo/2020.1.406/ascx/String.ascx(1): error ASPPARSE: Could not load type 'System.Web.Mvc.ViewUserControl<object>'.

Same error for all kendo ascx file. The issue is cause from ASP.NET precompilation, done with PrecompileBeforePublish msbuild parameter, after found issue on DevOps I've exactly same issue locally compiling with commad line and PrecompileBeforePublish argument.

Seams that for some reason, Asp:net precompialtion do not search dll in the right place (of course MVC is referenced)

Any idea about how to solve this issue?

1 Answer, 1 is accepted

Sort by
1
Veselin Tsvetanov
Telerik team
answered on 25 May 2020, 08:11 AM

Hi Diego,

The observed is a known issue with the NuGet distribution of the Telerik UI for ASP.NET MVC package. You could find further information on that in the following GitHub issue:

https://github.com/telerik/kendo-ui-core/issues/3793

In short, in order to resolve the above, you will need to:

- Delete the Content\kendo\2020.2.513\ascx folder;

- Move the Content\kendo\2020.2.513\razor\ folder contents to Views\Shared\EditorTemplates\ folder;

Regards,
Veselin Tsvetanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Diego
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or