刚接触C#~~做了个类库项目,怎么生成.dll文件啊??
using System;
using System.Collections.Generic;
using System.Text;
namespace Veight
{
public class Veight
{
}
public class Train : Veight
{
}
public class Car : Veight
{
}
public interface IPassengerCarrier
{
}
public interface IHaverLoadCarrier
{
}
public class PassengerTrain : Train,IPassengerCarrier
{
}
public class FreightTrain : Train,IHaverLoadCarrier
{
}
public class T424DoubleBogey : Train
{
}
public class Compact : Car, IPassengerCarrier
{
}
public class SUV : Car, IHaverLoadCarrier
{
}
public class Pickup : Car, IHaverLoadCarrier, IPassengerCarrier
{
}
}
代码如上,想生成一个verght.dll
------解决方案--------------------假设存为veigth.cs,命令行运行
csc /t:library veigth.cs,将会生成veight.dll
------解决方案--------------------直接生成,事后在这个项目文件中有一个debug文件夹中就有了dll文件