使用命令行csc.exe创建C#可移植类库? [英] Creating a C# Portable Class Library using command line csc.exe?

查看:69
本文介绍了使用命令行csc.exe创建C#可移植类库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有找到任何有关如何执行此操作的信息,即使有可能也没有找到任何信息。

I have not found any information on how to do this, or even if it's possible at all.

http:// msdn。 microsoft.com/en-us/library/e13syb43

没有提及有关构建可移植类库的任何内容,并且

does not mention anything about building a portable class library, and

http://msdn.microsoft.com/zh- us / library / gg597391.aspx

没有提及命令行界面。

是否还有其他人试图这样做并找到解决方案/发现它不可能?

Has anyone else tried to do this and found a solution/found it to be impossible?

推荐答案

通过命令构建可移植库-line是可能的,您只需要传递正确的框架引用即可。这些决定了您将支持的平台。

Building portable libraries via the command-line is possible, you just need to pass the correct framework references. These determine what platforms you will support.

首先,是因为您没有Visual Studio Pro而要通过命令行执行此操作的原因吗?如果是这样,它将变得有些棘手。

First, is the reason you want to do this via the command-line because you don't have Visual Studio Pro? If so, it gets a little tricky.

这篇关于使用命令行csc.exe创建C#可移植类库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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