2014-11-30 5 views
2

VS2015 미리보기 사용 테스트 프로젝트 (vnext 라이브러리 (dll))를 만들려고했습니다. herevnext를 만들 때의 오류 테스트 프로젝트

//Test Class 
    using System; 
    using Xunit; 
    namespace testproject.Tests 
    { 

     public class Class1 
     { 
      [Fact] 
      public void TrueisTrue() 
      { 
       Assert.True(true); 
      } 
      [Fact] 
      public void OnePlusOneIsTwo() 
      { 
       Assert.Equal(2, 1 + 1); 
      } 
     } 
    } 

//project.json

 { 
     "version": "1.0.0-*", 
     "dependencies": { 
      "Xunit.KRunner": "1.0.0-beta1" 
     }, 
     "commands": { 
      "test": "Xunit.KRunner" 
     }, 
     "frameworks": { 
      "aspnet50": { 
       "dependencies": { 
        "System.Runtime": "4.0.20-beta-22231" 
       } 
      }, 
      "aspnetcore50": { 
       "dependencies": { 
        "System.Runtime": "4.0.20-beta-22231" 
       } 
      }, 
      "k10": { 
       "dependencies": { 
        "System.Runtime": "4.0.20-beta-22231" 
       } 
      } 

     } 
    } 

에서 예제를 사용하여 나는 오류 창에서 이러한 오류를 받고 있어요,하지만 테스트가 제대로 실행 않습니다. 이 버그가 베타 버전에 있습니까? 아니면 구성에서 누락 된 부분이 있습니까?

Error List

답변

2
  • k10 섹션은 더 이상 사용되지 않으며 System.Runtime
+0

이 덕분에 일이 필요하지 않습니다 project.json

  • aspnet50에 있으면 안됩니다! – Tim