Where "TargetFrameworkSDKToolsDirectory" is set

I used msbuild build my sln and received the error message "could not find" AxImp.exe ", which already exists in the% Program (x86)% \ Microsoft sdks \ windows \ v8.1A files, but it seems that it finds sdk from v8.0A, the output information indicates that the error was in the Microsoft.Common.targets file (see code below). I could not find where "TargetFrameworkSDKToolsDirectory" was defined, can anyone help me?

environment: winblue (4.5.1 sdk v8.1A) without visual studio.

    <ResolveComReference
      TypeLibNames="@(COMReference)"
      TypeLibFiles="@(COMFileReference)"
      ResolvedAssemblyReferences="@(ReferencePath)"
      WrapperOutputDirectory="$(InteropOutputPath)"
      IncludeVersionInInteropName="$(IncludeVersionInInteropName)"
      KeyContainer="$(KeyContainerName)"
      KeyFile="$(KeyOriginatorFile)"
      DelaySign="$(DelaySign)"
      StateFile="@(_ResolveComReferenceCache)"
      TargetFrameworkVersion="$(TargetFrameworkVersion)"
      TargetProcessorArchitecture="$(ProcessorArchitecture)"
      NoClassMembers="$(ComReferenceNoClassMembers)"
      Silent="$(ResolveComReferenceSilent)"
      EnvironmentVariables="$(ResolveComReferenceEnvironment)"
      **SdkToolsPath="$(ResolveComReferenceToolPath)"**
      ExecuteAsTool="$(ComReferenceExecuteAsTool)"
      MSBuildArchitecture="$(ResolveComReferenceMSBuildArchitecture)"
      ContinueOnError="$(ContinueOnError)">

  <**ResolveComReferenceToolPath** Condition="'$(ResolveComReferenceToolPath)' == ''">$(**TargetFrameworkSDKToolsDirectory**)</ResolveComReferenceToolPath>
+4
source share
2 answers

, , C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.NetFramework.CurrentVersion.props, , .. <Import Project=".targets" />. , MSBuild /v:diag, , .

+5

:

Windows (SDK) Windows 8

2016

https://developer.microsoft.com/en-us/windows/downloads/windows-8-sdk

, :

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2428, 5): MSB3086: "LC.exe" SdkToolsPath " " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDK\Windows\v8.0A\WinSDK-NetFx40Tools-x86". , SdkToolsPath , SdkToolsPath SDK Microsoft Windows.

+1

Source: https://habr.com/ru/post/1547129/


All Articles