Well, the thing is, I donβt have Visual Studio installed, and I donβt want to install it, so I created a batch file that compiles my .csproj file and all my source files.
The problem is that I do not know how to include DLL files. Here is my current code for my .csproj file:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyName>Project</AssemblyName>
<OutputPath>Bin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="program.cs" />
</ItemGroup>
<Target Name="Build">
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
<Csc Sources="@(Compile)" OutputAssembly="$(OutputPath)$(AssemblyName).exe" />
</Target>
</Project>
What do I need to change to include / reference the dll file during compilation?
source
share