2013-05-30 2 views
2

Xamarin에서 테스트 프로젝트를 실행하면 시스템을 실행하려고 시도 할 때 System.Core를로드 할 수 없다는 메시지가 나타납니다. System.Core 참조 중 하나입니다.Xamarin/Mono가 System.Core를 찾을 수 없습니다.

무엇이 오류입니까?

(전체 세부 사항에서 볼 수있는 새 탭에서 이미지를 엽니)

xamarin test error

문제가 내 차 프로젝트가 아니라 테스트 프로젝트로 보인다. 내가 모든 참조를 보았을 때 그들은 빨갛다. 그래서 그들을 삭제하고 을 다시 시도했지만 추가 할 참조가 없습니다. 아래 이미지를 참조하십시오.

enter image description here

+0

내가 PCL 등의 프로젝트를 생성 생각을 고정. http://stackoverflow.com/questions/16747774/how-do-i-add-a-system-core-dll-reference-to-my-project-in-xamarin-studio-monodev는 문제가 무엇인지 제시합니다. 그들은 PCL을 지원하지 않는 Xamarin 버그입니다. 좋아,하지만 내 라이브러리를 PCL 해제하는 방법? – bradgonesurfing

답변

2

.csproj 파일에 다음의 편집은 문제

--- a/SketchSolveC#/SketchSolveC#.csproj 
+++ b/SketchSolveC#/SketchSolveC#.csproj 
@@ -6,12 +6,9 @@ 
    <ProductVersion>12.0.0</ProductVersion> 
    <SchemaVersion>2.0</SchemaVersion> 
    <ProjectGuid>{46D849FA-8E4B-4656-B494-290697EBD9EC}</ProjectGuid> 
- <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 
    <OutputType>Library</OutputType> 
    <RootNamespace>SketchSolveC</RootNamespace> 
    <AssemblyName>SketchSolveC#</AssemblyName> 
- <TargetFrameworkProfile>Profile1</TargetFrameworkProfile> 
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
    <DebugSymbols>true</DebugSymbols> 
@@ -30,15 +27,13 @@ 
    <ConsolePause>false</ConsolePause> 
    </PropertyGroup> 
    <ItemGroup> 
- <Reference Include="System" /> 
- <Reference Include="System.Xml" /> 
- <Reference Include="System.Core" /> 
- </ItemGroup> 
- <ItemGroup> 
    <Compile Include="Properties\AssemblyInfo.cs" /> 
    <Compile Include="SketchSolve.cs" /> 
+ <Reference Include="System.Xml" /> 
+ <Reference Include="System.Data.Linq" /> 
+ <Reference Include="System.Core" /> 
+ <Reference Include="System.Xml.Linq" /> 
    </ItemGroup> 
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> 
    <ProjectExtensions> 
    <MonoDevelop> 
     <Properties> 
@@ -49,4 +44,4 @@ 
     </Properties> 
    </MonoDevelop> 
    </ProjectExtensions> 
-</Project> 
\ No newline at end of file 
+</Project> 
관련 문제