Can I use razor with framework 4.0? - asp.net-mvc

I have an aplication using MVC 4 with the framework 4.5, need to downgrade the framework to 4.0, but it seems like razor won't work with the framework 4.0

Here is the information of .Net FrameWork support razor:
.NETFramework 4.0
Microsoft.AspNet.Razor (= 2.0.30506)
.NETFramework 4.5
Microsoft.AspNet.Razor (>= 3.0.0)
To install RazorEngine, run the following command in the Package Manager Console:
Install-Package RazorEngine -Version 3.9.3

Related

emgu.cv framework 'Microsoft.WindowsDesktop.App'

Hi All,
I deploy emgu.cv on CentOS 7, I got The framework 'Microsoft.WindowsDesktop.App', version '3.1.0' was not found ..
below what I have:
[root#demo Microsoft.AspNetCore.App]# dotnet --list-runtimes
Microsoft.AspNetCore.App 3.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
I am not using Microsoft.WindowsDesktop.App in my ASP Net Core project..
Seems to be a know issue for .NETCore-Apps on a non Windows-Machine.
Will be fixed with v4.4
https://github.com/emgucv/emgucv/issues/339
update:
v4.4 is released and compiles with .NET Standard 2.0 projects on all platforms

What is the best way to deal with package incompatibility?

Installing the package XPlot.Plotly (v. 1.4.2) using Nuget failed with a message that there was incompatibility with the latest version (v. 10.0.3) of Newtonsoft.Json, which I had installed previously. The message also indicated that version 9.0.1 of Newtonsoft.Json would work. So I uninstalled the latest version of Newtonsoft.Json, installed version 9.0.1, and then was able to install XPlot.Plotly.
Is this the correct way to deal with this type of incompatibility?
Will I eventually be able to use the latest versions of both packages?

Nuget Breeze Server for Web API 2.0 install error

I'm getting the following error while installing the Breeze Server for Web API 2.0.
Updating 'Microsoft.AspNet.WebApi.Core 5.2.0' to
'Microsoft.AspNet.WebApi.Core 5.1.0' failed. Unable to find a version
of 'Microsoft.AspNet.WebApi.WebHost' that is compatible with
'Microsoft.AspNet.WebApi.Core 5.1.0'.
Any help is appreciated.
I had similar issue with Visual Studio 2013 Update 3.
Installed Microsoft.AspNet.WebApi.OData first and Breeze.Server.WebApi2 both via NuGet
That issue did not appear. For now lets take that as a quick fix.
You must install Breeze.Server.WebApi2 before installing Microsoft.AspNet.WebApi.WebHost.
* EDIT *
This NuGet versioning issue has been fixed in Breeze v1.4.17 (i.e. for the current Microsoft.AspNet... NuGet packages)
* EDIT *
The issue is not with Breeze.Server.WebApi2, but with the Microsoft.AspNet.WebApi.OData package.
Breeze.Server.WebApi2 NuGet package requires Microsoft.AspNet.WebApi.OData with version ≥ 5.1 && < 6.0.
If you install the Breeze.Server.WebApi2 and Microsoft.AspNet.WebApi.OData is not already installed, it will install the base version (5.1) and not the latest.
The issue is that Microsoft.AspNet.WebApi.OData 5.1 depends on Microsoft.AspNet.WebApi.Core version ≥ 5.1.0 && < 5.2.0.
That conflicts with Microsoft.AspNet.WebApi.WebHost 5.2 (which you have installed in your solution) as it depends on Microsoft.AspNet.WebApi.Core version >=5.2 and <5.3.
So, when Microsoft.AspNet.WebApi.OData is trying to be installed, it will try to roll Microsoft.AspNet.WebApi.Core version to 5.1 and that will fail because Microsoft.AspNet.WebApi.WebHost depends on a newer version.
All this is happening because Breezejs 1.4.16 was tested with Microsoft.AspNet.WebApi 5.1 as version 5.2 had not yet been released at the time.
We will update version dependencies on our NuGet packages in the coming release, but this problem is still meant to reoccur in the future as we have no control as to how Microsoft will set their packages dependencies in their coming releases.
The previous workaround is overwork though, as you can simply install the latest Microsoft.AspNet.WebApi.OData package (5.2) before installing Breeze.Server.WebApi2.
Microsoft.AspNet.WebApi.OData 5.2 will fulfill the Breeze.Server.WebApi2 dependency and you won’t have installation errors or to deal with the hassle of uninstalling/installing a bunch of packages.

How to download GGTS 3.2.0 with grails 2.2.1

i was trying so many links for downloading GGTS but i was not able to find a link, can anyone provide me a link for downloading GGTS 3.2.0 with grails 2.2.1 for windows7 32bits
GGTS 3.2.0 Installer
http://dist.springsource.com/release/STS/3.2.0/dist/e3.8/groovy-grails-tool-suite-3.2.0.RELEASE-e3.8.2-win32-installer.exe
or zip file if you prefer:
http://dist.springsource.com/release/STS/3.2.0/dist/e3.8/groovy-grails-tool-suite-3.2.0.RELEASE-e3.8.2-win32.zip
Grails 2.2.1 (uncompress and setup path from GGTS)
http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.1.zip

Does Grails 2.1.0 Require Groovy 1.8?

I recently updated a Grails app to 2.1.0, but when I war the project I get the following error:
java.lang.NoClassDefFoundError: org/codehaus/groovy/transform/powerassert/ValueRecorder
Groovy Version 1.7.5
Grails Version 2.1.0
Are these two versions compatible?
No. Grails 1.3.x uses Groovy 1.7, Grails 2.0.x and 2.1.x use Groovy 1.8, Grails 2.2 uses Groovy 2.0 and Grails 2.3 will use Groovy 2.1. You should probably do a grails dependency-report to see what is pulling in Groovy 1.7, and put the appropriate excludes in your BuildConfig dependency declarations.

Resources