C#运行时版本 [英] C# runtime version

查看:332
本文介绍了C#运行时版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试使用.NET 2.0工具开发一个使用.NET 1.1运行

的C#应用​​程序。运行。这可能吗?我只使用.NET 1.1兼容的方法和

属性。


我需要使用特定的构建选项吗?


是否有编写配置文件的样本来管理运行时

版本检查?是否可以将此配置文件附加到

可执行文件而不是将其作为边车(并排文件)?

是否可以使用编译器根据C#源自动生成

配置文件?


感谢您的帮助

问候

Marcus


PS我是C#DS的新手

Hi,

I''m trying to get a C# application developed with .NET 2.0 tools to run
with .NET 1.1. runtime. Is this possible? I have only used methods and
properties compatible on .NET 1.1.

Are there specific build options that I need to use?

Are there samples on writing configure files that manage the runtime
version checks? Is it possible to append this configuration file to the
executable file instead of having it as a sidecar (side-by-side file)?
Is it possible to have the compiler automatically generate the
configuration file depending on the C# sources?

Thanks for any help
Regards
Marcus

P.S. I''m new to C# D.S.

推荐答案

马库斯,


来自我听到,你可以做到,但与此同时,我不认为它是一个好主意。这将是不受支持的,并且很多工具将不再有效,因为它们依赖于框架中的新类,这对于b
$ b不存在.NET 1.1。


如果您在google上搜索此论坛,

主题上会有一些帖子,其中有关于如何操作的资源的链接它。


希望这会有所帮助。

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


"马库斯" <毫安******** @ netscape.net>在消息中写道

news:11 ********************** @ o13g2000cwo.googlegr oups.com ...
marcus,

From what I hear, you can do it, but at the same time, I don''t think it
is a good idea. It would be unsupported, and a good number of the tools
would no longer work, since they rely on new classes in the framework, which
don''t exist for .NET 1.1.

If you search the google for this group, there are a few posts on the
topic, with links to resources on how to do it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"marcus" <ma********@netscape.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...


我正在尝试使用.NET 2.0工具开发一个用.NET 1.1运行的C#应用​​程序。运行。这可能吗?我只使用了与.NET 1.1兼容的方法和
属性。

我是否需要使用特定的构建选项?

是否有编写配置的示例管理运行时
版本检查的文件?是否可以将此配置文件附加到
可执行文件而不是将其作为sidecar(并排文件)?
是否可以让编译器自动生成
配置文件取决于C#源?

感谢您的帮助
问候
Marcus

PS我是C#DS的新手
Hi,

I''m trying to get a C# application developed with .NET 2.0 tools to run
with .NET 1.1. runtime. Is this possible? I have only used methods and
properties compatible on .NET 1.1.

Are there specific build options that I need to use?

Are there samples on writing configure files that manage the runtime
version checks? Is it possible to append this configuration file to the
executable file instead of having it as a sidecar (side-by-side file)?
Is it possible to have the compiler automatically generate the
configuration file depending on the C# sources?

Thanks for any help
Regards
Marcus

P.S. I''m new to C# D.S.



你的意思是将这些信息附加到可执行文件中是个坏主意

文件?


谢谢,

马库斯

You mean that it is a bad idea to append this info into the executable
file?

Thanks,
Marcus


>我是试图用.NET 2.0工具开发一个C#应用程序,用.NET 1.1运行
>I''m trying to get a C# application developed with .NET 2.0 tools to run
。运行。这可能吗?


No.


我只使用.NET 1.1兼容的方法和属性。
with .NET 1.1. runtime. Is this possible?
No.

I have only used methods and properties compatible on .NET 1.1.



仍有元数据模式的cahnegs导致

程序集无法在v1.x上加载。

Mattias

-

Mattias Sj?gren [C#MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com

请回复到新闻组。



Still there are cahnegs to the metadata schema that causes the
assembly to fail to load on v1.x.
Mattias

--
Mattias Sj?gren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


这篇关于C#运行时版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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