From e1362149226c23c103ae8a2a6c161bc02e14ea58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Pa=C5=BEourek?= Date: Fri, 1 Apr 2022 08:19:43 +0200 Subject: [PATCH 1/2] Update packages and .NET to 4.8 --- .appveyor.yml | 2 +- README.md | 10 +-- .../RazorHtmlMinifier.Mvc5.csproj | 6 +- .../RazorHtmlMinifier.Sample.csproj | 28 ++++---- src/RazorHtmlMinifier.Sample/Web.config | 71 +++++++++---------- src/RazorHtmlMinifier.Sample/packages.config | 13 ++-- 6 files changed, 62 insertions(+), 68 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index e44f0fd..06b8b62 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,4 +1,4 @@ -image: Visual Studio 2019 +image: Visual Studio 2022 # Adds "+build.XXX" to MinVer's build metadata environment: diff --git a/README.md b/README.md index d146131..d62fe7c 100644 --- a/README.md +++ b/README.md @@ -20,20 +20,20 @@ The library is also [published on NuGet.org](https://www.nuget.org/packages/Razo PM> Install-Package RazorHtmlMinifier.Mvc5 ``` -RazorHtmlMinifier.Mvc5 is built for .NET v4.5 with a dependency on ASP.NET MVC 5.2.3 and `System.Web`. +RazorHtmlMinifier.Mvc5 is built for .NET v4.8 with a dependency on ASP.NET MVC 5.2.7 and `System.Web`. ### Configuration Find the **Web.config** with your Razor configuration (by default it's in `Views/Web.config`). You should see something like this inside: ```xml - + ``` In order to start minifying views and partial views, replace it with (after the NuGet package is installed): ```xml - + ``` Then rebuild your solution, which should also restart the app. @@ -41,13 +41,13 @@ Then rebuild your solution, which should also restart the app. If you're using Razor `@helper` functions placed inside the `App_Code` folder, you have to do additional configuration in order to minify those. In the root `Web.config`, you should see something like this: ```xml - + ``` Your `` element might have different attributes. Leave the current attributes as-is, and add `` like so: ```xml - + diff --git a/src/RazorHtmlMinifier.Mvc5/RazorHtmlMinifier.Mvc5.csproj b/src/RazorHtmlMinifier.Mvc5/RazorHtmlMinifier.Mvc5.csproj index 58c02db..34ba39e 100644 --- a/src/RazorHtmlMinifier.Mvc5/RazorHtmlMinifier.Mvc5.csproj +++ b/src/RazorHtmlMinifier.Mvc5/RazorHtmlMinifier.Mvc5.csproj @@ -1,7 +1,7 @@ - net45 + net48 7.3 true @@ -41,8 +41,8 @@ - - + + all runtime; build; native; contentfiles; analyzers diff --git a/src/RazorHtmlMinifier.Sample/RazorHtmlMinifier.Sample.csproj b/src/RazorHtmlMinifier.Sample/RazorHtmlMinifier.Sample.csproj index f374734..fd560f3 100644 --- a/src/RazorHtmlMinifier.Sample/RazorHtmlMinifier.Sample.csproj +++ b/src/RazorHtmlMinifier.Sample/RazorHtmlMinifier.Sample.csproj @@ -1,7 +1,6 @@  - - + Debug @@ -15,7 +14,7 @@ Properties RazorHtmlMinifier.Sample RazorHtmlMinifier.Sample - v4.5 + v4.8 false true @@ -47,8 +46,8 @@ 4 - - ..\..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + + ..\..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.3.6.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll @@ -61,22 +60,22 @@ - ..\..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll + ..\..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.Helpers.dll - - ..\..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll + + ..\..\packages\Microsoft.AspNet.Mvc.5.2.7\lib\net45\System.Web.Mvc.dll - ..\..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + ..\..\packages\Microsoft.AspNet.Razor.3.2.7\lib\net45\System.Web.Razor.dll - ..\..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll + ..\..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.dll - ..\..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll + ..\..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Deployment.dll - ..\..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll + ..\..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Razor.dll @@ -144,12 +143,13 @@ + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - + +