Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Having problem with dotnet core rc2 using net451 on linux

$
0
0

Hi,

I am trying to migrate my website from dotnet core rc1 to dotnet core rc2, but I faced an error, then I tried to run a small test and it also didn't work for me.

This is my teste: https://github.com/ricardoalcantara/WebApplicationBasic

My environment is:

Debian 8.4

Mono 4.2.3

dotnet 1.0.0-preview1-002702

I need to run it on top of the "framework": "net451" because my main project needs few libs which still just run on that platform, so I am running with this command line:

dotnet run --framework .NETFramework,Version=v4.5.1

But I got a log stack error mainly with that message:

z2cw6v06.4ja(43,10): error CS0518: Predefined type 'System.Object' is not defined or imported
z2cw6v06.4ja(43,50): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
z2cw6v06.4ja(43,10): error CS0518: Predefined type 'System.Void' is not defined or imported
z2cw6v06.4ja(45,10): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
z2cw6v06.4ja(45,10): error CS0518: Predefined type 'System.Object' is not defined or imported
z2cw6v06.4ja(45,50): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
z2cw6v06.4ja(45,10): error CS0518: Predefined type 'System.Void' is not defined or imported
z2cw6v06.4ja(47,10): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
z2cw6v06.4ja(47,10): error CS0518: Predefined type 'System.Object' is not defined or imported
z2cw6v06.4ja(47,50): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
z2cw6v06.4ja(47,10): error CS0518: Predefined type 'System.Void' is not defined or imported
z2cw6v06.4ja(27,192): error CS0518: Predefined type 'System.String' is not defined or imported
z2cw6v06.4ja(27,255): error CS0518: Predefined type 'System.String' is not defined or imported
z2cw6v06.4ja(27,203): error CS0518: Predefined type 'System.Void' is not defined or imported
z2cw6v06.4ja(27,127): error CS0518: Predefined type 'System.Void' is not defined or imported
z2cw6v06.4ja(28,192): error CS0518: Predefined type 'System.String' is not defined or imported
z2cw6v06.4ja(28,255): error CS0518: Predefined type 'System.String' is not defined or imported
z2cw6v06.4ja(28,203): error CS0518: Predefined type 'System.Void' is not defined or imported
z2cw6v06.4ja(28,127): error CS0518: Predefined type 'System.Void' is not defined or imported
z2cw6v06.4ja(29,192): error CS0518: Predefined type 'System.String' is not defined or imported
z2cw6v06.4ja(29,257): error CS0518: Predefined type 'System.String' is not defined or imported

Can someone help me to solve that problem?

Obs.: It works on windows.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>