版本之间的Visual Studio .NET转换 [英] Visual Studio .NET conversions between versions

查看:97
本文介绍了版本之间的Visual Studio .NET转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好.我处境艰难,迫切需要帮助.
我刚刚被分配了一项我不合格的任务,而且我不知道从哪里开始.我的专业知识是C ++,并且将近20年的开发工具一直是Visual Studio V6.0.很自然地,在分配盲人担任狙击手和聋哑人从事无线电工作的传统中,我的管理人员指示我参加一个在Visual Studio .NET 2003下开发的 C#项目,然后进行转换它用于维护和在Visual Studio .NET 2010下继续开发.

我已经安装了VS.NET 2010,将其启动,然后尝试打开该项目的解决方案.我被立即告知必须进行转换.因此,我运行了解决方案转换器,它给了我很多警告,尤其是有关.NET V2.0和.NET V4.0之间未指定的差异的警告.当我要求VS.NET 2010构建转换后的解决方案时,它报告了许多未解决的外部引用错误,所有这些错误均指向一个名为?.cctor @@ $$ FYMXXZ"的符号.

不用说,标记有该错误的源文件中不会出现这样的符号,甚至没有靠近它的任何符号.我的问题是双重的:
1.我应该从哪里着手研究这个问题?
2.是否有任何可用的有关如何在VS.NET的不同版本之间进行转换的文档?

提前谢谢.

附录:以下是我从解决方案转换器获得的一些警告:

1.您的项目以.NET Framework 2.0或3.0为目标.如果您的项目使用需要较新.NET Framework的程序集,则您的项目将无法构建.您可以通过在项目菜单上单击属性",然后选择".NET Framework"来更改.NET Framework. .NET Framework下拉框中的新版本."
2.此版本不支持"AssemblyReference"的"Attribute" CopyLocalDependencies"属性,并且在转换过程中已将其删除."
3.此版本不支持"AssemblyReference"的"Attribute" UseDependenciesInBuild"属性,并且在转换过程中已将其删除."
4."DLL的$(TargetPath)与项目配置"Release | Win32"中的链接器的OutputFile属性值不匹配.这可能会导致您的项目生成错误. (我应该提到发生警告的DLL是从C ++代码构建的.)

Good morning. I''m in a difficult situation and I''m desperate for help.
I''ve just been assigned a task for which I''m unqualified, and I have no idea where to begin. My expertise is in C++, and my development tool for nearly 20 years has been Visual Studio V6.0. So naturally, in the tradition of assigning blind men to be snipers and deaf men to work the radios, my management has directed me to take a C# project that was developed under Visual Studio .NET 2003, and convert it for maintenance and continued development under Visual Studio .NET 2010.

I''ve installed VS.NET 2010, fired it up, and tried to open the project''s solution. I was immediately told that it had to be converted. So I ran the Solution Converter, which gave me one hell of a lot of warnings, mainly about unspecified differences between .NET V2.0 and .NET V4.0. When I asked VS.NET 2010 to build the converted solution, it reported a slew of unresolved-external-reference errors, all of which pointed to a symbol named: "?.cctor@@$$FYMXXZ"

Needless to say, no such symbol, nor anything even close to it, appears in the source files flagged with that error. My questions are twofold:
1. Where should I look to begin investigating this problem?
2. Is there any usable documentation of any sort about how to perform conversions between the various editions of VS.NET?

Thanks in advance.

ADDENDUM: Here are some of the warnings I get from the Solution Converter:

1. "Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework by clicking Properties on the project menu and then selecting a new version in the .NET Framework dropdown box."
2. "Attribute ''CopyLocalDependencies'' of ''AssemblyReference'' is not supported in this version and has been removed during conversion."
3. "Attribute ''UseDependenciesInBuild'' of ''AssemblyReference'' is not supported in this version and has been removed during conversion."
4. "$(TargetPath) for a DLL does not match the Linker''s OutputFile property value in project configuration ''Release|Win32''. This may cause your project to build incorrectly." (I should mention that the DLL for which that warning occurs is built from C++ code.)

推荐答案

FYMXXZ"

不用说,标记有该错误的源文件中不会出现这样的符号,甚至没有靠近它的任何符号.我的问题是双重的:
1.我应该从哪里着手研究这个问题?
2.是否有任何可用的有关如何在VS.NET的不同版本之间进行转换的文档?

提前谢谢.

附录:以下是我从解决方案转换器获得的一些警告:

1.您的项目以.NET Framework 2.0或3.0为目标.如果您的项目使用需要较新.NET Framework的程序集,则您的项目将无法构建.您可以通过在项目菜单上单击属性",然后选择".NET Framework"来更改.NET Framework. .NET Framework下拉框中的新版本."
2.此版本不支持"AssemblyReference"的"Attribute" CopyLocalDependencies"属性,并且在转换过程中已将其删除."
3.此版本不支持"AssemblyReference"的"Attribute" UseDependenciesInBuild"属性,并且在转换过程中已将其删除."
4. DLL的"
FYMXXZ"

Needless to say, no such symbol, nor anything even close to it, appears in the source files flagged with that error. My questions are twofold:
1. Where should I look to begin investigating this problem?
2. Is there any usable documentation of any sort about how to perform conversions between the various editions of VS.NET?

Thanks in advance.

ADDENDUM: Here are some of the warnings I get from the Solution Converter:

1. "Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework by clicking Properties on the project menu and then selecting a new version in the .NET Framework dropdown box."
2. "Attribute ''CopyLocalDependencies'' of ''AssemblyReference'' is not supported in this version and has been removed during conversion."
3. "Attribute ''UseDependenciesInBuild'' of ''AssemblyReference'' is not supported in this version and has been removed during conversion."
4. "


(TargetPath)与项目配置"Release | Win32"中的链接器的OutputFile属性值不匹配.这可能会导致您的项目无法正确构建." (我应该提到发生警告的DLL是从C ++代码构建的.)
(TargetPath) for a DLL does not match the Linker''s OutputFile property value in project configuration ''Release|Win32''. This may cause your project to build incorrectly." (I should mention that the DLL for which that warning occurs is built from C++ code.)


您的代码可能利用了一个或多个混淆的第三方库,甚至可能使用了一些本机代码DLL. .您确定您的应用程序引用了所有文件吗? "2.0和4.0之间未指定的区别是什么意思?您能提供您收到的警告之一吗?(只需编辑您的原始问题并在其中添加警告.)
Your code probably utilizes one or more obfuscated 3rd party libraries, and maybe even some native-code DLLs. Are you sure you have all of the files referenced by your application? What do you mean by "unspecified differences between 2.0 and 4.0? Can you supply one of the warnings you''re getting? (Just edit your original question and add the warning there.)


这篇关于版本之间的Visual Studio .NET转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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