Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win10下编译报错 APPX3217 ,以及Tuple报错 #154

Closed
2 tasks done
asuper0 opened this issue Mar 5, 2024 · 2 comments
Closed
2 tasks done

Win10下编译报错 APPX3217 ,以及Tuple报错 #154

asuper0 opened this issue Mar 5, 2024 · 2 comments

Comments

@asuper0
Copy link

asuper0 commented Mar 5, 2024

描述一下这个bug / Describe the bug

1.Win10编译报错

APPX3217 无法找到包含“UAP 10.0.22000.0”中的“UAP.props”的 SDK 文件夹

折腾了很久,发现是WapProj这个项目的目标版本是Win11,我修改为Win10后可以编译了,建议默认修改为Win10。

  1. MainWindow.xaml.csOnlineScriptsPage.xaml.cs 我这里编译会报错

error CS0121: 以下方法或属性之间的调用具有二义性:“System.TupleExtensions.Deconstruct<T1, T2>(System.Tuple<T1, T2>, out T1, out T2)”和“System.TupleExtensions.Deconstruct<T1, T2>(System.Tuple<T1, T2>, out T1, out T2)”

修改成这样的写法 就可以了,不知道你那边怎么可以编译,我的VS是2022且更新到最新了,框架是.Net Framework 4.8

复现步骤 / To Reproduce

克隆,编译

预期的行为 / Expected behavior

编译通过

截图 / Screenshots

No response

日志 / Logs

生成开始于 10:32...
1>------ 已启动生成: 项目: llcom, 配置: Debug x64 ------
1>CSC : warning CS2002: 源文件“D:\Code\CSharp\git-repo\llcom\packages\Walterlv.Environment.Source.7.2.0\src\NdpInfo.cs”指定了多次
1>D:\Code\CSharp\git-repo\llcom\packages\Walterlv.Environment.Source.7.2.0\src\NdpInfo.cs(182,29,182,30): warning CS8632: 只能在 "#nullable" 注释上下文内的代码中使用可为 null 的引用类型的注释。
1>D:\Code\CSharp\git-repo\llcom\packages\Walterlv.Environment.Source.7.2.0\src\NdpInfo.cs(103,51,103,52): warning CS8632: 只能在 "#nullable" 注释上下文内的代码中使用可为 null 的引用类型的注释。
1>D:\Code\CSharp\git-repo\llcom\packages\Walterlv.Environment.Source.7.2.0\src\NdpInfo.cs(264,43,264,44): warning CS8632: 只能在 "#nullable" 注释上下文内的代码中使用可为 null 的引用类型的注释。
1>D:\Code\CSharp\git-repo\llcom\packages\Walterlv.Environment.Source.7.2.0\src\NdpInfo.cs(298,43,298,44): warning CS8632: 只能在 "#nullable" 注释上下文内的代码中使用可为 null 的引用类型的注释。
1>D:\Code\CSharp\git-repo\llcom\packages\Walterlv.Environment.Source.7.2.0\src\NdpInfo.cs(239,68,239,69): warning CS8632: 只能在 "#nullable" 注释上下文内的代码中使用可为 null 的引用类型的注释。
1>D:\Code\CSharp\git-repo\llcom\llcom\Pages\OnlineScriptsPage.xaml.cs(140,42,143,88): error CS0121: 以下方法或属性之间的调用具有二义性:“System.TupleExtensions.Deconstruct<T1, T2>(System.Tuple<T1, T2>, out T1, out T2)”和“System.TupleExtensions.Deconstruct<T1, T2>(System.Tuple<T1, T2>, out T1, out T2)”
1>D:\Code\CSharp\git-repo\llcom\llcom\Pages\OnlineScriptsPage.xaml.cs(140,22,140,28): error CS8130: 无法推断隐式类型的析构变量“result”的类型。
1>D:\Code\CSharp\git-repo\llcom\llcom\Pages\OnlineScriptsPage.xaml.cs(140,30,140,38): error CS8130: 无法推断隐式类型的析构变量“fileName”的类型。
1>D:\Code\CSharp\git-repo\llcom\llcom\Pages\tcpTest.xaml.cs(297,34,297,35): warning CS0168: 声明了变量“e”,但从未使用过
1>D:\Code\CSharp\git-repo\llcom\llcom\View\MainWindow.xaml.cs(1331,33,1332,77): error CS0121: 以下方法或属性之间的调用具有二义性:“System.TupleExtensions.Deconstruct<T1, T2>(System.Tuple<T1, T2>, out T1, out T2)”和“System.TupleExtensions.Deconstruct<T1, T2>(System.Tuple<T1, T2>, out T1, out T2)”
2>------ 已启动生成: 项目: WapProj, 配置: Debug x64 ------
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(1150,5): error APPX3217: 无法找到包含“UAP 10.0.22000.0”中的“UAP.props”的 SDK 文件夹。请参阅 http://go.microsoft.com/fwlink/?LinkID=798187 了解详细信息。
2>已完成生成项目“WapProj.wapproj”的操作 - 失败。
========== 生成: 0 成功,2 失败,0 最新,0 已跳过 ==========
========== 生成 于 10:32 完成,耗时 04.622 秒 ==========

系统 / System

Win10 22H2

软件版本 / Version

1.1.3.3

验证

  • 检查该问题是否已被提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
@LuaRobot
Copy link

LuaRobot commented Mar 5, 2024

⚠ 你的Issue可能缺少了一些信息,请自觉补全,以证明issue内容的真实性:

⚠ Your issue may be missing some information, please complete it to prove the authenticity of the content of the issue:

  • ❌未提供出错时需要的日志文件 does not provide logs when bug happening

@chenxuuu
Copy link
Owner

chenxuuu commented Mar 5, 2024

WapProj无需编译,是微软商店的打包工程

新版(从五年前开始吧大概).net框架和语法自带tuple支持,无需手动声明可以自动推断类型

ci编译完全无问题,所以查查你的环境吧

@chenxuuu chenxuuu closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants