VS2012项目不能使用以数字而不是字母开头的环境变量. [英] VS2012 projects can't use environment variables that begin with a number instead of a letter.

查看:91
本文介绍了VS2012项目不能使用以数字而不是字母开头的环境变量.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前,我们使用Visual Studio 2008,并使用环境变量指定了一些包含路径,例如:

Previously we used Visual Studio 2008 and specified some include paths using an environment variable such as:

3RDPARTYLIB = C:\ dev \ 3rdPartyLib \

3RDPARTYLIB=C:\dev\3rdPartyLib\

然后在项目中包含我们可以指定类似$(3RDPARTYLIB)\ include

Then in the project include paths we could specify something like $(3RDPARTYLIB)\include

现在,我们要切换到Visual Studio 2012,我发现我必须用不以数字开头的东西替换3RDPARTYLIB,例如THIRDPARTYLIB.显然,2012年不接受数字作为第一个字符 的名称,即使以前的VS做到了!

Now that we are switching over to Visual Studio 2012 I have discovered that I have to replace 3RDPARTYLIB with something that doesn't start with a number, like THIRDPARTYLIB.  Evidently 2012 doesn't accept a number as the first character of the name even though previous versions of VS did!

2012年是否有补丁程序可以解决此问题?

Is there a patch for 2012 to fix this oversight?

戴维·罗宾逊

推荐答案

嗨dlr333,

Hi dlr333,

是的,我可以在Visual Studio 2010和2012中复制它.

Yes, I can reproduce it in Visual Studio 2010 and 2012.

报告:名称不能以'3'字符开头.

It reported: Name cannot begin with the '3' character.

我也找不到修补程序来修复它.

I also fail to find a patch to fix it.

我将请一些专家来解决这个问题,以查看他们是否可以为您提供帮助.可能会有一些时间延迟,感谢您的耐心配合.
 
感谢您的理解和支持.
 
最好的问候,

I will involve some experts into this issue to see whether they can help you out. There might be some time delay, appreciate for your patience.
 
Thank you for your understanding and support.
 
Best regards,


这篇关于VS2012项目不能使用以数字而不是字母开头的环境变量.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆