我正在尝试使用以下方法将Cortana集成到Unity( Simon Jackson :https://www.codeproject.com/Articles/1094232/Making-your-game-stand-out-with-Cortana-on-Windows)。
不幸的是,我在Visual Studio上构建示例时遇到了一些问题,这里是错误消息:
C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\CortanaUnity.csproj(245,5): error MSB3073: The command ""C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\project.lock.json" -bits=32 -path="." -path="..\Players\UAP\x86\Debug" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\Assembly-CSharp.dll" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\UnityEngine.dll" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\UnityEngine.UI.dll" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\UnityEngine.Networking.dll"" exited with code 1.
项目的每个.dll文件似乎都有错误。我已经在论坛上阅读了一些方法来解决这个问题,但这些方法对我来说都不起作用。有人有解决方案吗?
修改
以下是整个控制台错误:
1>------ Build started: Project: CortanaUnity, Configuration: Debug x86 ------
1> UnityInstallationDir "C:\Program Files\Unity\Editor".
1> UnityWSAPlayerDir "C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport".
1> UnityProjectDir "C:\Users\P1057\Documents\CortanaUnity".
1> Copying unprocessed assemblies...
1> Running AssemblyConverter...
1> System.Exception: AssemblyConverter running on already processed assemblies. There is something wrong with your build.
1> at Unity.SanityCheckStep.Execute()
1> at Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
1> at Unity.Operation.Execute()
1> at Unity.Program.Main(String[] args)
1>C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\CortanaUnity.csproj(245,5): error MSB3073: The command ""C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\project.lock.json" -bits=32 -path="." -path="..\Players\UAP\x86\Debug" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\Assembly-CSharp.dll" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\UnityEngine.dll" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\UnityEngine.UI.dll" "C:\Users\P1057\Documents\CortanaUnity\Export\WindowsUniversal\CortanaUnity\UnityEngine.Networking.dll"" exited with code 1.
这就是.csproj文件的内容:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DeviceId>30F105C9-681E-420b-A277-7C086EAD8A4E</DeviceId>
<UseEmulator>false</UseEmulator>
<RemoteDebugMachine>192.168.1.21:4020 (DESKTOP-IJPSV59)</RemoteDebugMachine>
<RemoteDebugEnabled>true</RemoteDebugEnabled>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DeviceId>30F105C9-681E-420b-A277-7C086EAD8A4E</DeviceId>
<UseEmulator>false</UseEmulator>
<RemoteDebugMachine>DESKTOP-IJPSV59</RemoteDebugMachine>
<RemoteDebugEnabled>false</RemoteDebugEnabled>
<AuthenticationMode>Windows</AuthenticationMode>
<CreateCleanLayout>false</CreateCleanLayout>
</PropertyGroup>
</Project>