第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在創(chuàng)建新頁面時修復此錯誤?

如何在創(chuàng)建新頁面時修復此錯誤?

C#
蕪湖不蕪 2021-11-07 18:59:49
我有一個 Xamarin.Forms 項目。在這個項目中,我已經(jīng)有一個空白頁面,但我添加了一個新頁面,這是錯誤開始顯示的時候。顯示的錯誤是:Error XLS0414The type 'ContentPage' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.TaskX.Android New.xaml1 Error XLS0414  The type 'StackLayout' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.TaskX.Android New.xaml10 編輯這是代碼:<ContentPage>    x:Class="TaskX.New"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:TaskX"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    <StackLayout>    </StackLayout></ContentPage>
查看完整描述

2 回答

?
紅糖糍粑

TA貢獻1815條經(jīng)驗 獲得超6個贊

不久前我遇到了這個問題。試試下面的這些步驟,它們對我有用。

  1. 刪除 Xamarin.Forms 并重新安裝 Xamarin.forms。

  2. 更新所有 Nugets 包。

  3. 清潔和構建解決方案。

如果問題仍然存在:

  1. 重新啟動您的 Visual Studio 和/或您的 PC。

  2. 確保您的 Visual Studio 是最新的,并且您沒有任何待處理的 Windows 更新要做。

  3. 修復 Visual Studio。

  4. 您還可以從“C:\Users{User}\AppData\Local\NuGet\Cache”清除 NuGet 緩存


查看完整回答
反對 回復 2021-11-07
?
呼如林

TA貢獻1798條經(jīng)驗 獲得超3個贊

試試這個:

所有的引用都在<contentPage>標簽內(nèi)。


<ContentPage

   x:Class="TaskX.New"

   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

   xmlns:local="using:TaskX"

   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

   mc:Ignorable="d">


   <StackLayout>


   </StackLayout>


</ContentPage>


查看完整回答
反對 回復 2021-11-07
  • 2 回答
  • 0 關注
  • 224 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號