Unity 社区

微信小游戏转换工具:生成并转换报错:

,1 年前
发布于小游戏
0

微信小游戏转换工具:生成并转换报错:

Tuanjie 1.1.0

Windows 11

相关代码

错误日志

429 次浏览
评论 0
4个回答
0
这个问题已经解决:
C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(870,5): warning MSB3539: The value of the property "BaseIntermediateOutputPath" was modified after it was used by MSBuild which can lead to unexpected build results. Tools such as NuGet will write outputs to the path specified by the "MSBuildProjectExtensionsPath" instead. To set this property, you must do so before Microsoft.Common.props is imported, for example by using Directory.Build.props. For more information, please visit https://go.microsoft.com/fwlink/?linkid=869650 [D:\Works\Code\Music-Portrait\Music-Portrait-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj] C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(4911,5): error MSB3021: 无法将文件“C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0\runtimes\browser-wasm\lib\net8.0\System.Diagnostics.TextWriterTraceListener.dll”复制到“../../PlayerBrowserWasm_k5x1g/net8/MSBuild/Outputs\Release\net8\System.Diagnostics.TextWriterTraceListener.dll”。系统找不到指定的路径。 (0x80070003) [D:\Works\Code\Music-Portrait\Music-Portrait-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj]
文件是存在的,但是拷贝失败。 需要修改系统注册表参数: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\下: LongPathsEnabled=1
1 年前回答
评论 0
0
发布问题的时候,附上了报错堆栈信息,不知道为什么没显示出来?! Building D:\Works\Code\MyProject\Build\WXMiniGameExported\webgl\Code failed with output: C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(870,5): warning MSB3539: The value of the property "BaseIntermediateOutputPath" was modified after it was used by MSBuild which can lead to unexpected build results. Tools such as NuGet will write outputs to the path specified by the "MSBuildProjectExtensionsPath" instead. To set this property, you must do so before Microsoft.Common.props is imported, for example by using Directory.Build.props. For more information, please visit https://go.microsoft.com/fwlink/?linkid=869650 [D:\Works\Code\MyProject\MyProject-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj] C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(4911,5): error MSB3021: 无法将文件“C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0\runtimes\browser-wasm\lib\net8.0\System.Diagnostics.TextWriterTraceListener.dll”复制到“../../PlayerBrowserWasm_k5x1g/net8/MSBuild/Outputs\Release\net8\System.Diagnostics.TextWriterTraceListener.dll”。系统找不到指定的路径。 (0x80070003) [D:\Works\Code\MyProject\MyProject-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj] C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(4911,5): error MSB3030: 无法复制文件“C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0\runtimes\browser-wasm\lib\net8.0\System.Private.DataContractSerialization.dll”,原因是找不到该文件。 [D:\Works\Code\MyProject\MyProject-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj] C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(4911,5): error MSB3021: 无法将文件“C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0\runtimes\browser-wasm\lib\net8.0\System.Runtime.InteropServices.RuntimeInformation.dll”复制到“../../PlayerBrowserWasm_k5x1g/net8/MSBuild/Outputs\Release\net8\System.Runtime.InteropServices.RuntimeInformation.dll”。系统找不到指定的路径。 (0x80070003) [D:\Works\Code\MyProject\MyProject-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj] C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(4911,5): error MSB3021: 无法将文件“C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0\runtimes\browser-wasm\lib\net8.0\System.Runtime.InteropServices.JavaScript.dll”复制到“../../PlayerBrowserWasm_k5x1g/net8/MSBuild/Outputs\Release\net8\System.Runtime.InteropServices.JavaScript.dll”。系统找不到指定的路径。 (0x80070003) [D:\Works\Code\MyProject\MyProject-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj] C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\sdk\8.0.100\Microsoft.Common.CurrentVersion.targets(4911,5): error MSB3021: 无法将文件“C:\Program Files\Tuanjie\Hub\Editor\2022.3.2t8\Editor\Data\PlaybackEngines\WeixinMiniGameSupport\BuildTools\DotNetWithWasm\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\8.0.0\runtimes\browser-wasm\lib\net8.0\System.Security.Cryptography.X509Certificates.dll”复制到“../../PlayerBrowserWasm_k5x1g/net8/MSBuild/Outputs\Release\net8\System.Security.Cryptography.X509Certificates.dll”。系统找不到指定的路径。 (0x80070003) [D:\Works\Code\MyProject\MyProject-Client\Library\Bee\artifacts\WeixinMiniGame\PlayerBrowserWasm\PlayerBrowserWasm.gen.csproj]
1 年前回答
评论 1
0
您好,方便把报错信息发一下嘛
1 年前回答
评论 1
0
本回答由团结MuseChat(Beta)生成,请酌情参考。
根据您提供的信息,我无法确定具体的错误原因。但是,我可以给您一些常见的解决方案来处理微信小游戏转换工具生成并转换报错的问题:
  1. 确保您使用的是最新版本的微信小游戏转换工具和团结引擎。您可以从官方网站下载最新版本的工具和引擎。
  2. 检查您的代码是否符合微信小游戏的要求。微信小游戏有一些限制和规范,例如文件大小限制、API使用限制等。请确保您的代码符合这些要求。
  3. 检查您的项目设置和配置。确保您已正确配置微信小游戏的相关参数,例如小游戏的appid、项目路径等。
  4. 检查您的网络连接。有时,转换工具可能需要从互联网上下载一些文件或资源。请确保您的网络连接正常,并且没有被防火墙或代理服务器阻止。
如果您仍然遇到问题,请提供更详细的错误日志或报错信息,以便我能够更准确地帮助您解决问题。
[1] 常见问题 | 团结小游戏 https://docs.unity.cn/cn/tuanjie/WechatMinigame/FAQ/ [2] 技术常见问题QA | 微信小游戏适配方案 https://gitee.com/wechat-minigame/minigame-unity-webgl-transform [3] 团结引擎 - 手册: 快速上手 https://docs.unity.cn/cn/tuanjiemanual/Manual/AutoStreamingDemo.html [4] 简介 | 团结引擎 https://unity.cn/tuanjie/tuanjieyinqing [5] 案例: Endless Runner | 团结小游戏 https://docs.unity.cn/cn/tuanjie/WechatMinigame/Demo/
1 年前回答
评论 0
本答案由团结MuseChat(Beta)自动生成,申请使用,反馈渠道

AI

全新AI功能上线

1. 基于Unity微调:专为Unity优化,提供精准高效的支持。

2. 深度集成:内置于团结引擎,随时查阅与学习。

3. 多功能支持:全面解决技术问题与学习需求。

AI