将托管c ++从vs2003移植到vs2008的问题

时间:2021-07-05 19:49:38

In trying to port my managed c++ project from vs2003 to vs2008. I have added oldSyntax flag. But I still get error sourceanotations.h.

尝试将我的托管c ++项目从vs2003移植到vs2008。我添加了oldSyntax标志。但我仍然得到错误sourceanotations.h。

1 个解决方案

#1


1  

We have a project that was written with the managed extensions for C++ that simply doesn't compile in VS2005 using /clr:oldSyntax.

我们有一个用C ++的托管扩展编写的项目,它不能使用/ clr:oldSyntax在VS2005中编译。

Unfortunately your choices are either to keep building it with VS2003 or translate it to C++/CLI (or complaining the Microsoft, but I wouldn't hold out too much hope there).

不幸的是,您的选择要么是继续使用VS2003构建它,要么将其转换为C ++ / CLI(或抱怨微软,但我不会抱太大希望)。

We've done the translation on a number of projects and it is tedious, but fairly straight forward.

我们已经完成了许多项目的翻译工作,这很乏味,但相当直接。

Or if there is another solution out there I'd like to here it so we can retire the build machine we still have running VS2003 just for this purpose!

或者,如果有另一个解决方案,我想在这里,所以我们可以退出构建机器,我们仍然运行VS2003只是为了这个目的!

#1


1  

We have a project that was written with the managed extensions for C++ that simply doesn't compile in VS2005 using /clr:oldSyntax.

我们有一个用C ++的托管扩展编写的项目,它不能使用/ clr:oldSyntax在VS2005中编译。

Unfortunately your choices are either to keep building it with VS2003 or translate it to C++/CLI (or complaining the Microsoft, but I wouldn't hold out too much hope there).

不幸的是,您的选择要么是继续使用VS2003构建它,要么将其转换为C ++ / CLI(或抱怨微软,但我不会抱太大希望)。

We've done the translation on a number of projects and it is tedious, but fairly straight forward.

我们已经完成了许多项目的翻译工作,这很乏味,但相当直接。

Or if there is another solution out there I'd like to here it so we can retire the build machine we still have running VS2003 just for this purpose!

或者,如果有另一个解决方案,我想在这里,所以我们可以退出构建机器,我们仍然运行VS2003只是为了这个目的!