为什么出现错误'GetTempPathA':不是'System :: IO :: Path'的成员]]

问题描述 投票:-1回答:1

我有一个托管的c ++ / CLI项目,正在VS2019中工作。当我输入该行时:

String^ TempPath = System::IO::Path::GetTempPath();

我得到标题中显示的错误。是什么在扩展我的方法调用,为什么VS2019将其“扩展”到一个不存在的方法?

Error box displayed when I hover my mouse over the GetTempPath() call

我有一个托管的c ++ / CLI项目,正在VS2019中工作。当我输入以下行时:String ^ TempPath = System :: IO :: Path :: GetTempPath();我得到标题中显示的错误。什么正在扩展我的方法...

.net c++-cli
1个回答
1
投票

我知道'A'的来源。我只是假定Visual Studio不会将宏应用于.NET Framework类方法。 (我错了!)

© www.soinside.com 2019 - 2024. All rights reserved.