In Microsoft Visual Studio 2015 I have two projects: the first is created on the basis of ASP.NET 5 Preview templates (Web Application), the second is Unit Test project. In order to test some methods in the first project, I want to add a reference to it in my TestProject. However, I get an error "A reference to "MVCProject" could not be added". How can I resolve this problem?
UPD: Target platform for TestProject is .NET 4.5.2 (I tried also swith to .NET 4.6, didn't get any difference in terms of my question). In MVCProject I find only the following info: Solution DNX SDK Version: Version=1.0.0 beta5, Platform= .NET Framework, Architecture=x86 - and that's all.
for asp.net 5 you should not add "Test Projects", instead you add a class library package project for testing with xunit. this article should help you
then you should have no problem adding a reference
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.