aspnet / MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1.3k stars 878 forks source link

errors to publish native images #557

Closed cheers00 closed 8 years ago

cheers00 commented 8 years ago

I am getting the following errors when I try to publish native images. dnu publish -o C:\Temp\MusicStore\MusicStore --no-source --runtime active --native

I don't get any of these when I publish without --native option.

Could not load file or assembly 'System.Linq.Expressions, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its depend
encies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) while compiling met
hod MusicStoreContext.set_Albums
Could not load file or assembly 'System.Linq.Expressions, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its depend
encies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) while compiling met
hod MusicStoreContext.get_Artists
Could not load file or assembly 'System.Linq.Expressions, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its depend
encies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) while compiling met
hod MusicStoreContext.set_Artists
Could not load file or assembly 'System.Linq.Expressions, Version=4.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its depend
encies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) while compiling met
hod MusicStoreContext.get_Orders
Eilon commented 8 years ago

We're changing from dnu publish to the new dotnet commands, which are being built here: https://github.com/dotnet/cli/