RazorGenerator icon indicating copy to clipboard operation
RazorGenerator copied to clipboard

Casing conflict on mono / .net core on Linux/OSX

Open pruiz opened this issue 9 years ago • 3 comments

RazorGenerator does work fine under mono on OSX/Linux, however when using existing nuget packages and msbuild targets, generation of precompiled views fails due to a casing conflict.

As you can see here:

packages/RazorGenerator.MsBuild.2.4.0/tools/v1/RazorGenerator.Core.v1.dll packages/RazorGenerator.MsBuild.2.4.0/tools/v2/RazorGenerator.Core.V2.dll packages/RazorGenerator.MsBuild.2.4.0/tools/v3/RazorGenerator.Core.V3.dll

Version 2 and Version 3 assemblies have an uppercase 'V' on it's name. However GetAssembly() method inside RazorGenerator.Core/HostManager.cs, is using a lowercase 'v' while composing the name of final assembly to load. Thus failing on linux/osx and other OS where the filesystem is case-dependant.

pruiz avatar Feb 23 '16 23:02 pruiz

Pretty cool to know it works on Linux. Would you care to send a PR for this? My guess it's fixing the value here - https://github.com/RazorGenerator/RazorGenerator/blob/master/RazorGenerator.Core.v1/RazorGenerator.Core.v1.csproj#L12

pranavkm avatar Feb 23 '16 23:02 pranavkm

Well, the issue is actually the opposite, v1 (as it is lowecase) does work. But V2 & V3 do not work..

I'll try to make a pull-req tonite.

pruiz avatar Feb 24 '16 00:02 pruiz

Hopefully this pull-req should fix the issue.

pruiz avatar Feb 24 '16 00:02 pruiz