From 0ad34b0c5579793b9cf40a30ff5223be735a6431 Mon Sep 17 00:00:00 2001 From: buildsrv Date: Fri, 13 May 2016 11:30:35 +1000 Subject: [PATCH 1/3] fix loading dlls with bad paths like edgejs --- Source/Xipton.Razor/Config/RazorConfig.cs | 2 +- .../Xipton.Razor/Extension/AssemblyExtension.cs | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Source/Xipton.Razor/Config/RazorConfig.cs b/Source/Xipton.Razor/Config/RazorConfig.cs index f5539dd..4350d5f 100644 --- a/Source/Xipton.Razor/Config/RazorConfig.cs +++ b/Source/Xipton.Razor/Config/RazorConfig.cs @@ -325,7 +325,7 @@ private void FindAssemblyFileNamesByPattern(string pattern, IEnumerable assembly.GetFileName()) - .Where(filename => filename.EndsWith(pattern.Substring(1), StringComparison.OrdinalIgnoreCase)) + .Where(filename => filename != null && filename.EndsWith(pattern.Substring(1), StringComparison.OrdinalIgnoreCase)) ); } } diff --git a/Source/Xipton.Razor/Extension/AssemblyExtension.cs b/Source/Xipton.Razor/Extension/AssemblyExtension.cs index 7391760..f58b9d0 100644 --- a/Source/Xipton.Razor/Extension/AssemblyExtension.cs +++ b/Source/Xipton.Razor/Extension/AssemblyExtension.cs @@ -15,17 +15,24 @@ public static class AssemblyExtension { public static string GetFileName(this Assembly assembly) { - + try + { #if __MonoCS__ return assembly == null ? null : new DirectoryInfo(IsNotWindows ? assembly.CodeBase.Replace("file:///", "/") : assembly.CodeBase.Replace("file:///", string.Empty)).FullName; #else - return assembly == null - ? null - : new DirectoryInfo(assembly.CodeBase.Replace("file:///", string.Empty)).FullName; + return assembly == null || assembly.CodeBase.Contains("?") + ? null + : new DirectoryInfo(assembly.CodeBase.Replace("file:///", string.Empty)).FullName; #endif + } + catch(Exception ex) + { + throw new Exception(assembly.CodeBase); + } + } public static bool IsNotWindows From d07d3a64d58203814b811609149e39d37cb248fd Mon Sep 17 00:00:00 2001 From: buildsrv Date: Fri, 13 May 2016 11:41:28 +1000 Subject: [PATCH 2/3] add nuspec --- Source/Xipton.Razor.nuspec | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Source/Xipton.Razor.nuspec diff --git a/Source/Xipton.Razor.nuspec b/Source/Xipton.Razor.nuspec new file mode 100644 index 0000000..b970981 --- /dev/null +++ b/Source/Xipton.Razor.nuspec @@ -0,0 +1,16 @@ + + + + reactiveui-core + 3.1.0 + Razor machine + jlamfers + https://github.com/jlamfers/RazorMachine + http://opensource.org/licenses/ms-pl.html + en-us + false + + + + + From 2ba0f5bc9c2713b6e1a315e97532b07225d0607f Mon Sep 17 00:00:00 2001 From: david Date: Fri, 11 May 2018 14:45:03 +1000 Subject: [PATCH 3/3] recompile 4.6.1 --- .gitignore | 2 +- Source/Xipton.Razor.Example/App.config | 2 +- Source/Xipton.Razor.Example/Xipton.Razor.Example.csproj | 5 ++--- Source/Xipton.Razor.Example/packages.config | 2 +- Source/Xipton.Razor.UnitTest/App.config | 2 +- Source/Xipton.Razor.UnitTest/Xipton.Razor.UnitTest.csproj | 7 +++---- Source/Xipton.Razor.UnitTest/packages.config | 2 +- Source/Xipton.Razor.nuspec | 2 +- Source/Xipton.Razor/Xipton.Razor.csproj | 7 +++---- Source/Xipton.Razor/packages.config | 2 +- 10 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 308ffd5..43af752 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ TestResults ################### *.user *.suo - +*.vs # Logs and databases # ###################### diff --git a/Source/Xipton.Razor.Example/App.config b/Source/Xipton.Razor.Example/App.config index 0a3d8a2..bd42141 100644 --- a/Source/Xipton.Razor.Example/App.config +++ b/Source/Xipton.Razor.Example/App.config @@ -45,4 +45,4 @@ - + diff --git a/Source/Xipton.Razor.Example/Xipton.Razor.Example.csproj b/Source/Xipton.Razor.Example/Xipton.Razor.Example.csproj index 8644dc5..d3d4ab1 100644 --- a/Source/Xipton.Razor.Example/Xipton.Razor.Example.csproj +++ b/Source/Xipton.Razor.Example/Xipton.Razor.Example.csproj @@ -10,7 +10,7 @@ Properties Xipton.Razor.Example Xipton.Razor.Example - v4.5 + v4.6.1 512 @@ -40,8 +40,7 @@ - False - ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + ..\packages\Microsoft.AspNet.Razor.3.2.5\lib\net45\System.Web.Razor.dll diff --git a/Source/Xipton.Razor.Example/packages.config b/Source/Xipton.Razor.Example/packages.config index 1bb61c4..6da9899 100644 --- a/Source/Xipton.Razor.Example/packages.config +++ b/Source/Xipton.Razor.Example/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/Source/Xipton.Razor.UnitTest/App.config b/Source/Xipton.Razor.UnitTest/App.config index ec7165a..779afbc 100644 --- a/Source/Xipton.Razor.UnitTest/App.config +++ b/Source/Xipton.Razor.UnitTest/App.config @@ -40,4 +40,4 @@ - + diff --git a/Source/Xipton.Razor.UnitTest/Xipton.Razor.UnitTest.csproj b/Source/Xipton.Razor.UnitTest/Xipton.Razor.UnitTest.csproj index af9f375..2954f0f 100644 --- a/Source/Xipton.Razor.UnitTest/Xipton.Razor.UnitTest.csproj +++ b/Source/Xipton.Razor.UnitTest/Xipton.Razor.UnitTest.csproj @@ -10,7 +10,7 @@ Properties Xipton.Razor.UnitTest Xipton.Razor.UnitTest - v4.5 + v4.6.1 512 @@ -40,8 +40,7 @@ - False - ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + ..\packages\Microsoft.AspNet.Razor.3.2.5\lib\net45\System.Web.Razor.dll @@ -62,10 +61,10 @@ Designer - Always + diff --git a/Source/Xipton.Razor.UnitTest/packages.config b/Source/Xipton.Razor.UnitTest/packages.config index 1bb61c4..6da9899 100644 --- a/Source/Xipton.Razor.UnitTest/packages.config +++ b/Source/Xipton.Razor.UnitTest/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/Source/Xipton.Razor.nuspec b/Source/Xipton.Razor.nuspec index b970981..e1c0f28 100644 --- a/Source/Xipton.Razor.nuspec +++ b/Source/Xipton.Razor.nuspec @@ -2,7 +2,7 @@ reactiveui-core - 3.1.0 + 3.1.1 Razor machine jlamfers https://github.com/jlamfers/RazorMachine diff --git a/Source/Xipton.Razor/Xipton.Razor.csproj b/Source/Xipton.Razor/Xipton.Razor.csproj index 9d7a753..2c98a6f 100644 --- a/Source/Xipton.Razor/Xipton.Razor.csproj +++ b/Source/Xipton.Razor/Xipton.Razor.csproj @@ -10,7 +10,7 @@ Properties Xipton.Razor Xipton.Razor - v4.5 + v4.6.1 512 @@ -45,8 +45,7 @@ - False - ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + ..\packages\Microsoft.AspNet.Razor.3.2.5\lib\net45\System.Web.Razor.dll @@ -110,10 +109,10 @@ Always Designer - Designer + diff --git a/Source/Xipton.Razor/packages.config b/Source/Xipton.Razor/packages.config index 1bb61c4..6da9899 100644 --- a/Source/Xipton.Razor/packages.config +++ b/Source/Xipton.Razor/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file