Microsoft.Cpp.props(47,89): error MSB4066: Attribute 'Sdk' in element<Import>is not recognized.

洪键 丘 0 Reputation points
2023-03-07T03:45:09.3533333+00:00

“msbuild ur_rtde.sln /property:Configuration=Debug /maxcpucount:8”

When I use this in the cmd ,An error occurred:Microsoft.Cpp.props(47,89): error MSB4066: Attribute 'Sdk' in element<Import>is not recognized**.**User's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,602 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,626 Reputation points Microsoft Vendor
    2023-03-07T08:01:18.6866667+00:00

    Hi @洪键 丘, 

    Welcome to Microsoft Q&A! 

    The Sdk is an optional attribute, please try to remove it from <Import> element. (Before modification, please back-up it)

    If it doesn’t work, please share me your <Import> entry from .vcxproj file. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.