1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 解决Unity3D 创建UWP应用出现Exception: Failed to build Visual Studio project using arguments

解决Unity3D 创建UWP应用出现Exception: Failed to build Visual Studio project using arguments

时间:2021-03-29 08:12:48

相关推荐

解决Unity3D 创建UWP应用出现Exception: Failed to build Visual Studio project using arguments

解决Unity3D 创建UWP应用出现Exception: Failed to build Visual Studio project using arguments

解决方案在下方

本人在使用Unity3D生成UWP的时候遇到了如下的报错:

Exception: Failed to build Visual Studio project using arguments 'G:\Microsoft Visual Studio\\Professional\MSBuild\15.0\Bin\MSBuild.exe "G:\VMA\其他\编程之美\\VMABot-Hololens\build\HoloBot.sln" /nologo /maxcpucount /p:Configuration=Master /p:Platform=x86 /p:SolutionDir="G:\\VMA\\其他\\编程之美\\\\VMABot-Hololens\\build\\" /t:Build /clp:Verbosity=minimal'.Output:App.cs(56,13): warning CS0618: ��ApplicationView.SuppressSystemOverlays.set���ѹ�ʱ:��Use the TryEnterFullScreen method and IsFullScreenMode property instead of SuppressSystemOverlays. For more info, see MSDN.�� [G:\VMA\����\����֮��\\VMABot-Hololens\build\HoloBot\HoloBot.csproj]HoloBot -> G:\VMA\����\����֮��\\VMABot-Hololens\build\HoloBot\bin\x86\Master\HoloBot.exeUnityWSAPlayerDir "G:\Unity5.6.2f1\Editor\Data\PlaybackEngines\MetroSupport\".UnityProjectDir "".Copying unprocessed assemblies...Running AssemblyConverter...AssemblyConverter done.Modifying AppxPackagePayloadG:\Microsoft Visual Studio\\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(,5): warning APPX0105: �޷�������Կ�ļ���VMABot_TemporaryKey.pfx������Կ�ļ����������뱣������Ҫ���������⣬�볢�Խ�֤���ֶ����뵱ǰ�û��ĸ���֤���洢�С� [G:\VMA\����\����֮��\\VMABot-Hololens\build\HoloBot\HoloBot.csproj]G:\Microsoft Visual Studio\\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(,5): warning APPX0107: ָ����֤����ǩ����Ч���й���Ч֤������ϸ��Ϣ�������� /fwlink/?LinkID=241478�� [G:\VMA\����\����֮��\\VMABot-Hololens\build\HoloBot\HoloBot.csproj]HoloBot -> G:\VMA\����\����֮��\\VMABot-Hololens\build\HoloBot\AppPackages\HoloBot_1.0.1.0_x86_Master_Test\HoloBot_1.0.1.0_x86_Master.appxG:\Microsoft Visual Studio\\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2696,5): error APPX0105: �޷�������Կ�ļ���VMABot_TemporaryKey.pfx������Կ�ļ����������뱣������Ҫ���������⣬�볢�Խ�֤���ֶ����뵱ǰ�û��ĸ���֤���洢�С� [G:\VMA\����\����֮��\\VMABot-Hololens\build\HoloBot\HoloBot.csproj]G:\Microsoft Visual Studio\\Professional\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsoft.AppXPackage.Targets(2696,5): error APPX0107: ָ����֤����ǩ����Ч���й���Ч֤������ϸ��Ϣ�������� /fwlink/?LinkID=241478�� [G:\VMA\����\����֮��\\VMABot-Hololens\build\HoloBot\HoloBot.csproj]ApplicationLauncherImpl.RunMSBuild (System.String args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:403)ApplicationLauncherImpl.Build () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:220)ApplicationLauncher.BuildAndRunOnSingle (BuildLaunchPlayerArgs args, WSASDK wsaSDK, WSABuildAndRunDeployTarget deployTarget) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:60)ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:50)UnityEditor.WSA.BuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:122)UnityEditor.PostprocessBuildPlayer.Launch (BuildTargetGroup targetGroup, BuildTarget target, System.String path, System.String productName, BuildOptions options) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:150)UnityEditor.HostView:OnGUI()

这个只是我个人遇到的错误,其他人的报错可能有所出入,但是都是在Unity3D生成UWP应用时产生的。验证是否是本问题的方法是查看是否有/fwlink/?LinkID=241478这个链接出现。

如果你真的进这个链接看了,并且尝试重做了,八成还是会失败的。因为问题很少是由于证书过期造成的,毕竟各位也不是傻子,都会看一下publish的参数。

问题其实也不在于是否在本地安装证书。

问题在于,不能设置密码!!!

没错,其实问题就在于证书的密码要为空。不要以为在导入的时候输入密码就可以了,实际上是不!可!以!的!

当你重新生成一个没有密码的测试证书后,你会发现,丫的不报错了。

我花了一个晚上+一个下午的时间研究,总计花了超过8个小时才发现这个问题。希望能解决大家的问题,不要在这个破BUG上耽搁时间了。

至于我怎么发现的,并不是偶然尝试无密码。而是在VS下编译的时候给出的提示。这个提示在Unity里是没有的,也没有几个人会去把Unity生成的工程再打开自己检查。。。

谢谢大家

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。