IntelliSense: “#using” requires C++/CLI to be enabled

前端 未结 4 1000
花落未央
花落未央 2020-12-15 22:12
#using 
#using 
using namespace System;
using namespace System::Text;
using namespace System::IO;
using namespace System::Net;
         


        
4条回答
  •  攒了一身酷
    2020-12-15 22:40

    Choose Project -> Properties from the menu bar. In the Project properties window, under Configuration Properties -> General, make sure that Common Language Runtime Support is set to Common Language Runtime Support (/clr)

    In VS2019 it the steps would be :

    • 1/ Right click on the project

    • 2/ Project

    • 3/ Properties

    • 4/ Configuration Properties

    • 5/ Advanced

    • 6/ Common Language Runtime Support change it to Common Language Runtime Support(/clr)

提交回复
热议问题