EcmaScript.NET | C # Port of the Java EcmaScript project
kandi X-RAY | EcmaScript.NET Summary
kandi X-RAY | EcmaScript.NET Summary
This is a port of the Java EcmaScript code, which was originally found under the Java YUICompressor code, circa 2011 or so. It was mainly used for the YUICompress.NET project.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of EcmaScript.NET
EcmaScript.NET Key Features
EcmaScript.NET Examples and Code Snippets
Community Discussions
Trending Discussions on EcmaScript.NET
QUESTION
The project is an ASP.NET MVC Web App targeting the .NET Framework 4.6.1.
All of a sudden (some NuGet packages were upgraded) I started to get the following error during runtime:
CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
In my main view Index.cshtml
, in a line where I make use of @Html.ActionLink
I do have .NET Core SDK 2.0 and .NET Framework 4.7.1 installed in my machine but I don't want to include a reference to it. This is a .NET Framework web app only, it's hosted on Windows IIS where the installed framework is 4.6.1, there's no NET Core installed in the server.
So why is it asking to add a reference to netstandard
? How can I fix it without referencing netstandard
but the full Windows .NET Framework 4.6.1?
I've checked out a previous commit which worked fine and I'm still getting this error. So it's not related to NuGet packages being upgraded. Seems to be something on my local dev machine.
If a publish the app to a directory and run it with IIS it works.
packages.config
...ANSWER
Answered 2018-Apr-24 at 20:14Might have todo with one of these:
- Install a newer SDK.
- In .csproj check for Reference Include="netstandard"
- Check the assembly versions in the compilation tags in the Views\Web.config and Web.config.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install EcmaScript.NET
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page