Target元素中不允许使用文本内容

时间:2017-10-01 16:58:16

标签: xamarin.forms xcode9 visual-studio-mac

升级Visual Studio for Mac和Xcode版本9后,我在加载现有iOS项目时遇到错误。错误是“Target元素内不允许文本内容”。我已经验证了.csproj元素中没有文本浮动无效。我通过https://www.xmlvalidation.com/index.php?id=1&L=0测试了xml,但没有返回任何错误。有什么想法吗?

<?xml version="1.0" encoding="UTF-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
   <PropertyGroup>
      <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
      <Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
      <ProjectGuid>{7657B753-FFF4-475C-AABD-5E9ACA147172}</ProjectGuid>
      <ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
      <OutputType>Exe</OutputType>
      <RootNamespace>containerz.iOS</RootNamespace>
      <AssemblyName>containerz.iOS</AssemblyName>
      <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
      <DebugSymbols>true</DebugSymbols>
      <DebugType>full</DebugType>
      <Optimize>false</Optimize>
      <OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
      <DefineConstants>DEBUG;ENABLE_TEST_CLOUD;</DefineConstants>
      <ErrorReport>prompt</ErrorReport>
      <WarningLevel>4</WarningLevel>
      <CodesignKey>iPhone Developer</CodesignKey>
      <MtouchDebug>true</MtouchDebug>
      <MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
      <MtouchFastDev>true</MtouchFastDev>
      <IOSDebuggerPort>30967</IOSDebuggerPort>
      <MtouchLink>None</MtouchLink>
      <MtouchArch>x86_64</MtouchArch>
      <MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
      <PlatformTarget>x86</PlatformTarget>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
      <DebugType>pdbonly</DebugType>
      <Optimize>true</Optimize>
      <OutputPath>bin\iPhone\Release</OutputPath>
      <ErrorReport>prompt</ErrorReport>
      <WarningLevel>4</WarningLevel>
      <CodesignKey>iPhone Developer</CodesignKey>
      <MtouchFloat32>true</MtouchFloat32>
      <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
      <MtouchLink>SdkOnly</MtouchLink>
      <MtouchArch>ARM64</MtouchArch>
      <MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
      <PlatformTarget>x86</PlatformTarget>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
      <DebugType>pdbonly</DebugType>
      <Optimize>true</Optimize>
      <OutputPath>bin\iPhoneSimulator\Release</OutputPath>
      <ErrorReport>prompt</ErrorReport>
      <WarningLevel>4</WarningLevel>
      <CodesignKey>iPhone Developer</CodesignKey>
      <MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
      <MtouchLink>None</MtouchLink>
      <MtouchArch>x86_64</MtouchArch>
      <MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
      <PlatformTarget>x86</PlatformTarget>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
      <DebugSymbols>true</DebugSymbols>
      <DebugType>full</DebugType>
      <Optimize>false</Optimize>
      <OutputPath>bin\iPhone\Debug</OutputPath>
      <DefineConstants>DEBUG;ENABLE_TEST_CLOUD;</DefineConstants>
      <ErrorReport>prompt</ErrorReport>
      <WarningLevel>4</WarningLevel>
      <CodesignKey>iPhone Developer</CodesignKey>
      <DeviceSpecificBuild>true</DeviceSpecificBuild>
      <MtouchDebug>true</MtouchDebug>
      <MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
      <MtouchFastDev>true</MtouchFastDev>
      <MtouchFloat32>true</MtouchFloat32>
      <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
      <IOSDebuggerPort>49784</IOSDebuggerPort>
      <MtouchLink>SdkOnly</MtouchLink>
      <MtouchArch>ARM64</MtouchArch>
      <MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
      <PlatformTarget>x86</PlatformTarget>
   </PropertyGroup>
   <ItemGroup>
      <Reference Include="System" />
      <Reference Include="System.Xml" />
      <Reference Include="System.Core" />
      <Reference Include="Xamarin.iOS" />
      <Reference Include="Xamarin.Forms.Core">
         <HintPath>..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
      </Reference>
      <Reference Include="Xamarin.Forms.Platform">
         <HintPath>..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll</HintPath>
      </Reference>
      <Reference Include="Xamarin.Forms.Platform.iOS">
         <HintPath>..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll</HintPath>
      </Reference>
      <Reference Include="Xamarin.Forms.Xaml">
         <HintPath>..\packages\Xamarin.Forms.2.3.4.247\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
      </Reference>
   </ItemGroup>
   <ItemGroup>
      <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json" />
      <ImageAsset Include="Assets.xcassets\Contents.json" />
   </ItemGroup>
   <ItemGroup>
      <Folder Include="Resources\" />
   </ItemGroup>
   <ItemGroup>
      <InterfaceDefinition Include="LaunchScreen.storyboard" />
   </ItemGroup>
   <ItemGroup>
      <None Include="Info.plist" />
      <None Include="Entitlements.plist" />
      <None Include="packages.config" />
   </ItemGroup>
   <ItemGroup>
      <Compile Include="Main.cs" />
      <Compile Include="AppDelegate.cs" />
   </ItemGroup>
   <Import Project="..\containerz\containerz.projitems" Label="Shared" Condition="Exists('..\containerz\containerz.projitems')" />
   <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
   <Import Project="..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\packages\Xamarin.Forms.2.3.4.247\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
</Project>

0 个答案:

没有答案