sif
sif

Reputation: 123

Converting from C++/CLI oldsyntax: How to and can this be automated?

In the transition from Visual Studio 2005 to Visual Studio 2008 I started getting this error for my (managed) c++ projects:

warning D9035 : option 'clr:oldsyntax' has been deprecated and will be removed in a future release.

How to I convert from the old syntax to the new one?

Does anybody know when the old syntax actually becomes obsolete and cannot be used anymore?

EDIT: (supplementary question)

Are there by any chance any tools for doing this conversion automatically?

Upvotes: 10

Views: 7996

Answers (1)

Simon Fischer
Simon Fischer

Reputation: 3876

To change the Common Language Runtime support you open the properties dialog for your c++ project and select the node Configuration Properties -> General. Here you can make the change:

alt text

For how to upgrade the syntax I can recommend these two excellent MSDN articles:

Upvotes: 16

Related Questions