使用VS Code 编译C# 为DLL 2023-08-08 作者 小莫 1. 新建项目2. 修改 csproj3. 编译代码4. 运行项目5. 打包项目 新建项目1dotnet new console 修改 csproj将 *.csproj文件里面的 OutputType 改成 library 1<OutputType>library</OutputType> 编译代码1dotnet restore 运行项目1dotnet run 打包项目12dotnet build -c releasedotnet run -c release 本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可 上一篇 下一篇