好吧,问题是我没有安装 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 文件包含/引用到编译过程中?