Created
August 15, 2018 08:43
-
-
Save commel/d117b5973ae3014ce7de61501a8789a7 to your computer and use it in GitHub Desktop.
msbuild example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<AssemblyName>DtExample</AssemblyName> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="Main.cs" /> | |
</ItemGroup> | |
<Target Name="Build"> | |
<Message Text="Hello World! A"/> | |
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> | |
<Csc Sources="@(Compile)" References="TextLib.dll" OutputAssembly="$(OutputPath)$(AssemblyName).exe" /> | |
</Target> | |
<Target Name="Clean"> | |
<Delete Files="$(OutputPath)$(AssemblyName).exe" /> | |
</Target> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<AssemblyName>TextLib</AssemblyName> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="TextLib.cs" /> | |
</ItemGroup> | |
<Target Name="Build"> | |
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> | |
<Csc Sources="@(Compile)" TargetType="library" OutputAssembly="$(OutputPath)$(AssemblyName).dll" /> | |
</Target> | |
<Target Name="Clean"> | |
<Delete Files="$(OutputPath)$(AssemblyName).dll" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment