Warum verwendet Visual Studio 2013 den falschen SdkToolsPath für lc.exe?
Ich verwende Visual Studio 2013 mit einem asp.net-Projekt. Eines der Projekte gibt den folgenden Fehler an. Warum sucht es nach LC.exe im falschen Pfad? Mein Windows 8.1 SDK ist installiert und ich habe eine lc.exe unter
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
und eine 64-Bit-Version und ich habe einen Registrierungsschlüssel bei
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1A
Ich suche bei Microsoft.Common.targets unterC:\Windows\Microsoft.NET\Framework\v4.0.30319
und dieser Schlüssel existiert:SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)"
. Dann schaute auf Microsoft.NetFramework.CurrentVersion.props unter
C:\Program Files (x86)\MSBuild\12.0\Bin
undTargetFrameworkSDKToolsDirectory
ist definiert bei$SDK40ToolsPath
. GemäßMSBuild /v:diag
,
SDK40ToolsPath = C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
was sieht gut aus. Das Ziel des Projekts in VS in .NET 4.0.
Also, warum sucht es immer noch im falschen Ordner oder Registrierungsschlüssel? Das Interessante ist, wenn ich das Projekt neu erstelle, nachdem ich die Fehlermeldung erhalten habe, funktioniert das Projekt einwandfrei.
Error 5
Task could not find "LC.exe" using the SdkToolsPath
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\"
or the registry key
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86".
Make sure the SdkToolsPath is set and the tool exists in the correct processor
specific location under the SdkToolsPath and that the Microsoft Windows SDK is
installed
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 2428 5 SuperReports