---
title: "生成.dll文件"
author: "suky"
date: "2011-05-14T23:25:27Z"
tags: []
categories: ["编程语言"]
slug: "dll"
draft: false
lastmod: "2011-05-14T23:25:27Z"
id: 1044445
url: "https://suky.iteye.com/blog/1044445"
---

方法1.用c盘windows下的Microsoft.NET目录中csc.exe生成  
命令行csc /target:library /out:SampleLibrary.DLL Sample1.cs Sample2.cs 可以生成DLL文件.

方法2.新建一个类库的项目  
项目属性的application设置中将output type 设置为Class Library .