Skip to content

Commit

Permalink
Merge pull request #60 from xenoinc/feature/MSBuildFixes
Browse files Browse the repository at this point in the history
Merge feature/MSBuildFixes into develop
  • Loading branch information
DamianSuess authored Jan 2, 2019
2 parents 1c34aa2 + 266bd41 commit f5e712d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
8 changes: 8 additions & 0 deletions BuildProperties.resx
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyCompany>Xeno Innovations</AssemblyCompany>
<AssemblyCopyright>Copyright (c) Xeno Innovations, Inc. 2018-2019</AssemblyCopyright>

<ProjectBase>$(MSBuildProjectDirectory)</ProjectBase>
<LibraryPath>$(ProjectBase)\libs</LibraryPath>
<OutputFolder>$(ProjectBase)\output</OutputFolder>
</PropertyGroup>
</Project>
26 changes: 18 additions & 8 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,31 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Import Project="BuildProperties.resx" />


<Target Name="Test">
<Message Text="Property Data:" />
<Message Text=" - AssemblyCompany: '$(AssemblyCompany)'" />
<Message Text=" - AssemblyCopyright: '$(AssemblyCopyright)'" />
<Message Text=" - LibraryPath: '$(LibraryPath)'" />
<Message Text=" - OutputFolder: '$(OutputFolder)'" />
</Target>

<Target Name="Clean">
<!--
Directories="**\obj\**;**\bin\**"
https://stackoverflow.com/questions/5080856/how-to-delete-all-file-and-folders-with-msbuild
-->
<RemoveDir Directories="output"/>
</Target>


<!--
<Target Name="Compile" DependsOnTargets="Clean">
<!--<MSBuild Projects="@(ProjectFiles)" />-->
<MSBuild Projects="@(ProjectFiles)" />
</Target>
<Target Name="CompileCode" DependsOnTargets="CleanOutput;CompileDevCode">
<Message Text="*** CompileCode complete ***" />
</Target>
<Message Text="*** CompileCode complete ***" />
</Target>
<Target Name="CompileDevCode">
<MSBuild Projects="$(SourcePath)\$(SolutionName)"
Expand All @@ -27,14 +36,15 @@
</Target>
<Target Name="CleanOutput">
<Message Text="Cleaning out $(OutputFolder)" />
<Message Text="Cleaning out $(OutputFolder)" />
<ItemGroup>
<FilesToDelete Include="$(OutputFolder)\**\*" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
<RemoveDir Directories="$(OutputFolder)" />
<MakeDir Directories="$(OutputFolder)"/>
<Message Text="Cleanup completed." />
<Message Text="Cleanup completed." />
</Target>
-->

</Project>

0 comments on commit f5e712d

Please # to comment.