Windows 10 64位上的Visual Studio 2015,目標設置爲32位。visual studio 2015系統找不到指定的路徑
極力打造從系統中心2012 R2配置管理器SDK
的CustomTSActionControl樣本引用後,所有的DLL文件確定,當我嘗試建立它失敗:
------ Build started: Project: CustomTSActionControl, Configuration: Debug x86 ------
1> CustomTSActionControl -> C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\CustomTSActionControl.dll
1> The system cannot find the path specified.
1> The system cannot find the path specified.
1> The system cannot find the path specified.
1> The system cannot find the path specified.
1> The system cannot find the path specified.
1> The system cannot find the path specified.
1> The system cannot find the path specified.
1> The system cannot find the path specified.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: The command "copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\AdminUI.Common.dll" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\AdminUI.Common.dll"
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\AdminUI.Controls.dll" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\AdminUI.Controls.dll"
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\AdminUI.DialogFoundation.dll" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\AdminUI.DialogFoundation.dll"
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\AdminUI.OsdCommon.dll" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\AdminUI.OsdCommon.dll"
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\AdminUI.TaskSequenceEditor.dll" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\AdminUI.TaskSequenceEditor.dll"
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\Microsoft.ConfigurationManagement.exe" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\Microsoft.ConfigurationManagement.exe"
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\Microsoft.ConfigurationManagement.ManagementProvider.dll" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\Microsoft.ConfigurationManagement.ManagementProvider.dll"
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: copy "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\..\..\..\..\lib\Microsoft.ConfigurationManagement.DialogFramework.dll" "C:\Program Files (x86)\Microsoft System Center 2012 R2 Configuration Manager SDK\Samples\Admin UI\CustomTaskSequenceAction\VCSharp.Net\bin\x86\Debug\Microsoft.ConfigurationManagement.DialogFramework.dll"" exited with code 1.`
這是怪我因爲VS在添加它們時接受了所有對這些各種DLL的引用。我試着加入
C:\ Program Files文件(x86)的\ Microsoft配置管理器\ R2 \ AdminConsole \ BIN \
和
C:\ Program Files文件(x86)的\微軟系統中心2012 R2配置管理器SDK \ Samples \ Admin UI \ CustomTaskSequenceAction \ VCSharp.Net \ bin \ x86 \ Debug \
到參考路徑但結果相同。我猜它需要引用周圍的路徑,因爲空間,但我不知道在哪裏把這些報價,因爲我不知道VS有這些路徑存儲在哪裏。