I am trying to reference a .NET 4.6.1 dll from my ASP.NET 5 RC1 Update1 project. I cannot, and I think the reason is that it's referencing DNX 4.5.1. I think it should be referencing DNX46... How do I change that? Do I need to install DNX46 myself?
Check your project.json
file, if you try and reference a .NET 4.6.1
class project or file, and your main project is set to .NET 4.5.1
, it wont let you. Just change it like this.
"frameworks": {
"dnx461": { }
},
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.