实际上我没有安装Visual Studio,也不想安装它。因此,我创建了一个批处理文件来编译我的.csproj文件和所有源代码文件。
问题是我不知道如何包含.dll文件。这是我的.csproj文件的当前代码:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyName>Project</AssemblyName>
<OutputPath>Bin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<!-- .cs files -->
<Compile Include="program.cs" />
</ItemGroup>
<Target Name="Build">
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
<Csc Sources="@(Compile)" OutputAssembly="$(OutputPath)$(AssemblyName).exe" />
</Target>
</Project>
我需要改变什么才能将一个dll文件包含/引用到编译过程中?